<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/tld/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/tld/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/tld/struts-logic.tld" prefix="logic"%>
<%@ page isELIgnored="false" %> 
<html:html locale="true">
	<head>
		<link href="${pageContext.request.contextPath}/css/style.css" rel="stylesheet" type="text/css">
		<title>添加开启关闭时间</title>
		<script language="javascript">
		<!--
		function onSubmit() {
       	    var form = document.CallTimeLimitForm;
       	    var msg = "";
       	    if (form.startTime.value == "") {
       	        msg = "开始时间不能为空!\r\n";
       	    }
       	    
       	    if (form.endTime.value == "") {
       	    	msg += "结束时间不能为空!"
       	    }
       	    
       	    if (msg != "") {
       	    	alert(msg);
       	    	return false;
       	    } else {
       	    	return true;
       	    }
   	    }
		//-->
		</script>
	</head>
	<body>
    	<form action="${pageContext.request.contextPath}/callTimeLimitAction.do" name="CallTimeLimitForm" method="post" onsubmit="return onSubmit()">
	   		<input type="hidden" name="method" value="insertCallTimeLimit" />
	   		<table width="98%" align="center" border="0" cellpadding="4" cellspacing="1" class="list">
           		<tr align="center"> 
          			<td colspan="2" width="100%" class="title_td" align="center"> 
          				<div class="title_font">添加开启关闭时间</div>
         			</td>
        		</tr>
        		<tr>
              		<td class="td_left">类型：</td>
              		<td class="td_right"> 
              			<select name="limitType">
		              		<option value="1">开启</option>
		              		<option value="0">关闭</option>
	              		</select>*
              		</td>
            	</tr>
        		<tr>
              		<td class="td_left">开始时间：</td>
              		<td class="td_right">
              			<input type="text" name="startTime" size="20" />*格式为：HHmmss
              		</td>
            	</tr>
            	<tr>
              		<td class="td_left">结束时间：</td>
              		<td class="td_right">
              			<input type="text" name="endTime" size="20" />*格式为：HHmmss
              		</td>
            	</tr>
	            <tr>
	            	<td align="center" colspan="2">
		            	<input type="submit" value="确定" class="btn_style"/>&nbsp;&nbsp;
		            	<input type="reset" value="重置" class="btn_style"/>&nbsp;&nbsp;
		            	<input type="button" value="返回" class="btn_style" onclick="history.go(-1)">
		            </td>
	            </tr>
			</table>
       </form>
	</body>
</html:html>