<%@ 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="${matchRule.id ==null }">
			添加参赛规则
		</c:if>
		<c:if test="${matchRule.id !=null }">
			修改参赛规则
		</c:if>
	</div>
		<c:if test="${matchRule.id ==null }">
			<form class="form-horizontal" action="<%=request.getContextPath() %>/ckuMatchRule/addMatchRule.do">
		</c:if>
		<c:if test="${matchRule.id !=null }">
			<form class="form-horizontal" action="<%=request.getContextPath() %>/ckuMatchRule/updateMatchRule.do">
		</c:if>
		<input type="text" name="id" value="${matchRule.id }" class="form-control">
		  <div class="form-group">
		    <label class="col-sm-2 control-label">参赛规则名称:</label>
		    <div class="col-sm-10">
		    	<input type="text" name="ruleName" value="${matchRule.ruleName }" class="form-control" placeholder="中英文参赛规则名称">
		    </div>
		  </div>
		  
		  <div class="form-group">
		    <label class="col-sm-2 control-label">参赛规则内容:</label>
		    <div class="col-sm-10">
	
		    	<textarea name="ruleInfo" placeholder="参赛规则内容">${matchRule.ruleInfo }</textarea>
		    </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>
<style type="text/css">
textarea{
height:300px;
width:1500px;
}
</style>
</body>
</html>
