⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 year_manager.jsp

📁 企业员工考勤系统
💻 JSP
字号:
<%@ page contentType="text/html;charset=GBK"%>
<%@ page errorPage="/public/errorBusy.jsp" %>
<%@ include file="/public/check_admin.jsp" %>
<jsp:include page="/public/Date.js"/>

<% 
  request.setCharacterEncoding("GBK");
%>

<script language="javascript">
function check_input(theForm){

   if(theForm.year_id.value==""){
     alert("学年代号不能为空!");
	 theForm.year_id.focus();
	 return (false);
	}

   if(theForm.year_name.value==""){
     alert("学年名称不能为空!");
	 theForm.year_name.focus();
	 return (false);
	}

   if(theForm.year_start.value==""){
     alert("学年开始时间不能为空!");
	 theForm.year_start.focus();
	 return (false);
	}
	
	if(theForm.year_end.value==""){
	  alert("学年结束时间不能为空!");
	  theForm.year_end.focus();
	  return false;
    }
	
 }
 </script>
<html>
  <head>
     <title>学年安排</title>
	 <link rel="stylesheet" href="../../public/style.css">
  </head>
  <body class="ss">
  <a href="javascript:window.location.reload()" class="a">刷新</a>&nbsp;
  <a href="javascript:history.back()" class="a">返回</a>
  <hr></hr>
  <center>
   <h3>添加学年</h3>
   <form action="year_add.jsp" method="post" onSubmit="return check_input(this)">
   <table width="30%">
     <tr>
       <td>学年代号:</td>
       <td><input type="text" size="20" name="year_id"></td>
     </tr>
     <tr>
       <td>学年名称:</td>
       <td><input type="text" size="20" name="year_name"></td>
     </tr>
     <tr>
       <td>开始时间:</td>
       <td><input type="text" size="20" name="year_start" onfocus="setday(this)"></td>
     </tr>
     <tr>
       <td>结束时间:</td>
       <td><input type="text" size="20" name="year_end" onfocus="setday(this)"></td>
     </tr>
     <tr>
       <td><center><input type="submit" value="添加"></center></td>
       <td><center><input type="reset" value="重填"></center></td>
     </tr>
     <% 
       String msg=request.getParameter("msg");
       if(msg!=null&&!msg.equals(""))
         {
      %>
      <tr>
         <td colspan="9"><div align="center"><font color="red" size="2"><%= msg %></font></div></td>
      </tr>
      <% 
         }
       %>
   </table>
   </form>
  </body>
</html>




⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -