<%@ page language="java" contentType="text/html;charset=UTF-8" %> 
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %> 
<%@ page isELIgnored="false" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
        "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<title>推荐赛事更新</title>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1">
	<link rel="stylesheet" href="<%=request.getContextPath() %>/js/bootstrap/css/bootstrap.min.css">
	<link rel="stylesheet" href="<%=request.getContextPath() %>/js/bootstrap/css/bootstrap-theme.min.css">
    <script type="text/javascript" charset="utf-8" src="<%=request.getContextPath() %>/js/jquery/jquery-1.11.2.min.js"></script>
    <script type="text/javascript" charset="utf-8" src="<%=request.getContextPath() %>/js/bootstrap/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container-fluid"> 
	<div class="alert alert-success" role="alert" style="text-align: center;">
		<c:if test="${item.id ==null }">
			添加推荐信息
		</c:if>
		<c:if test="${item.id !=null }">
			修改推荐信息
		</c:if>
	</div>
		<c:if test="${item.id ==null }">
			<form class="form-horizontal" action="<%=request.getContextPath() %>/message/addMessage.do">
		</c:if>
		<c:if test="${item.id !=null }">
			<form class="form-horizontal" action="<%=request.getContextPath() %>/message/updateMessage.do">
		</c:if>
		<input type="hidden" name="id" value="${item.id }" class="form-control">
			<input type="hidden" name="createTime" value="${item.createTime}" class="form-control">
		  <div class="form-group">
		    <label class="col-sm-2 control-label">类别:</label>
		    <div class="col-sm-10">
				<select name="type" value=""class="form-control">
					<option value="0" ${item.type==0?'selected':''}>宠爱推送</option>
					<option value="1" ${item.type==1?'selected':''}>业务办理</option>
					<option value="2" ${item.type==2?'selected':''}>会员通知</option>
					<option value="3" ${item.type==3?'selected':''}>邮寄信息</option>
					<option value="4" ${item.type==4?'selected':''}>我的订阅</option>
				</select>
		    </div>
		  </div>
		  </div>
		  <div class="form-group">
		    <label class="col-sm-2 control-label">标题:</label>
		    <div class="col-sm-10">
		    	<input type="text" name="title" value="${item.title }" class="form-control" placeholder="标题">
		    </div>
		  </div>
		  <div class="form-group">
		    <label class="col-sm-2 control-label">内容:</label>
		    <div class="col-sm-10">
		    	<input type="text" name="content" value="${item.content }" class="form-control" placeholder="内容">
		    </div>
		  </div>
		  <div class="form-group" style="text-align: center;">
			<button type="submit" class="btn btn-default">提交</button>
		  	<button type="reset" class="btn btn-default">重置</button>
		  	<a type="reset" class="btn btn-default">返回</a>
		  </div>
	</form>
</div>
</body>
</html>
