admin_res_cla_add.aspx
上传用户:szhf331
上传日期:2022-06-22
资源大小:1032k
文件大小:6k
源码类别:

行业应用

开发平台:

JavaScript

  1. <%@ page language="C#" autoeventwireup="true" inherits="Admin_admin_res_yea_add, App_Web_p9n__skl" enableeventvalidation="false" %>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head runat="server">
  5.     <title>学生系统后台管理</title>
  6.     <script src="inc/admin.js" type="text/javascript"></script>
  7.     <script src="inc/showpage.js" type="text/javascript"></script>
  8.     <script src="../Admin/js/jquery-1.3.2.min.js" type="text/javascript"></script>
  9.     <script src="js/hanshu.js" type="text/javascript"></script>
  10.     <script src="../Admin/js/jquery.validate.min.js" type="text/javascript"></script>
  11.     <script type="text/javascript">
  12.         function changeCol(bb) {
  13.             var data;
  14.             $.get("../Admin/handler/GetProByCol.ashx", { colid: bb.value }, GetColBind);
  15.         }
  16.         function abc() {
  17.      
  18.         
  19.         }
  20.     </script>
  21.     <link href="images/css.css" type="text/css" rel="stylesheet" />
  22.     <link href="images/admin_file_css.css" type="text/css" rel="stylesheet" />
  23. </head>
  24. <body>
  25.     <form id="form1" runat="server">
  26.         &nbsp;<h1>
  27.             班级信息添加</h1>
  28.         <h4>
  29.             <b>相关操作:</b> <a target="mainFrame" href="admin_res_cla_add.aspx">添加新班级</a> | <a target="mainFrame" href="admin_res_cla.aspx">
  30.                 班级列表管理</a>
  31.         </h4>
  32.         
  33.         <div style="height: 3px; width: 100%; background: #fff;">
  34.             
  35.         </div>
  36.         <table width="100%" cellspacing="1" cellpadding="0" class="info_tab">
  37.             <tr>
  38.                 <td class="zq" width="20%" style="height: 25px">
  39.                     所在年届
  40.                 </td>
  41.                 <td style="height: 25px">
  42.                     &nbsp;
  43.                     <asp:DropDownList ID="ddllj" runat="server">
  44.                     </asp:DropDownList>
  45.                     &nbsp;<span id="Span1">*</span><br>
  46.                 </td>
  47.             </tr>
  48.             <tr>
  49.                 <td class="zq" width="20%" style="height: 25px">
  50.                     所在系所
  51.                 </td>
  52.                 <td style="height: 25px">
  53.                     &nbsp;
  54.                     <asp:DropDownList ID="ddlCol" onchange="changeCol(this)" runat="server">
  55.                     </asp:DropDownList>
  56.                     &nbsp;<span id="Col_id_txt">*</span><br>
  57.                 </td>
  58.             </tr>
  59.             <tr>
  60.                 <td class="zq" width="20%" style="height: 25px">
  61.                     所在专业
  62.                 </td>
  63.                 <td style="height: 25px">
  64.                     &nbsp;<asp:HiddenField ID="hfddlPro_id" runat="server" />
  65.                     <select runat="Server" name="ddlPro_id" id="ddlPro_id">
  66.                         <option value="">请选择</option>
  67.                     </select>
  68.                     &nbsp;<span id="Span2">*</span><br>
  69.                     
  70.                 </td>
  71.             </tr>
  72.             <tr>
  73.                 <td class="zq" width="20%">
  74.                     班级:
  75.                 </td>
  76.                 <td>
  77.                     &nbsp;
  78.                     <asp:TextBox ID="txtCla" runat="server"></asp:TextBox>
  79.                     &nbsp;<span id="Span3"></span><br>
  80.                 </td>
  81.             </tr>
  82.             <tr>
  83.                 <td class="zq" width="20%">
  84.                     备注
  85.                 </td>
  86.                 <td>
  87.                     &nbsp;<textarea id="txtCon" runat="Server" name="con" />
  88.                     &nbsp;<span id="con_txt"></span><br>
  89.                 </td>
  90.             </tr>
  91.             <tr>
  92.                 <td>
  93.                     &nbsp;
  94.                 </td>
  95.                 <td>
  96.                     &nbsp;<input id="Submit1" runat="Server" type="submit" name="send" value=" 确 认 "
  97.                         onserverclick="Submit1_ServerClick1">
  98.                 </td>
  99.             </tr>
  100.         </table>
  101.         <h1>
  102.             &nbsp;</h1>
  103.     </form>
  104.     <!-- 验证 -->
  105.     <script type="text/javascript">
  106.         $(function() {
  107.         
  108. $("#form1").validate({// #formId为需要进行验证的表单ID
  109.   errorElement :"div",// 使用"div"标签标记错误, 默认:"label"
  110.   wrapper:"li",// 使用"li"标签再把上边的errorELement包起来
  111.   errorClass :"validate-error",// 错误提示的css类名"error
  112.   focusCleanup:false,// 当未通过验证的元素获得焦点时,并移除错误提示
  113.       rules: {
  114.                     ddlLj_id: {// 需要进行验证的输入框name
  115.                         required: true// 验证条件:必填
  116.                     },
  117.                     ddlCol_id: {// 需要进行验证的输入框name
  118.                         required: true
  119.                     },
  120.                     ddlPro_id: {// 需要进行验证的输入框name
  121.                         required: true
  122.                     },
  123.                      ddlPro_id: {// 需要进行验证的输入框name
  124.                         required: true
  125.                     }
  126.                 },
  127.                 messages: {
  128.                     ddlLj_id: {
  129.                         required: "请选择一个年届!"// 验证未通过的消息
  130.                     },
  131.                     ddlCol_id: {
  132.                         required: "请选择一个系所!"
  133.                     },
  134.                     ddlPro_id: {
  135.                         required: "请选择一个专业"
  136.                     },
  137.                        ddlClaid: {
  138.                         required: "请选择一个班级"
  139.                     }
  140.                 }
  141. });
  142.     
  143.         });
  144.     </script>
  145. </body>
  146. </html>