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

行业应用

开发平台:

JavaScript

  1. <%@ page language="C#" autoeventwireup="true" inherits="Admin_admin_StudentFileAdd, App_Web_moklqbh-" %>
  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.     <link href="images/css.css" type="text/css" rel="stylesheet" />
  9.     <link href="images/admin_file_css.css" type="text/css" rel="stylesheet" />
  10.     <script src="inc/admin_File_js.js" type="text/javascript"></script>
  11.     <script src="../Admin/js/jquery-1.3.2.min.js" type="text/javascript"></script>
  12.     <script src="inc/admin_stuid.js" type="text/javascript"></script>
  13.     <script src="../Admin/js/hanshu.js" type="text/javascript"></script>
  14.     <script src="../Admin/js/jquery.validate.min.js" type="text/javascript"></script>
  15.     <style type="text/css">
  16. #Button1{
  17. clear: left;
  18. float: left;
  19. border: 1px solid #ccc;
  20. width:120px;
  21.      height:50px;
  22. line-height: 40px;
  23. margin: 1px 10px;
  24. padding-top:3px;
  25. }
  26. #Button2{
  27. clear: left;
  28. float: left;
  29. border: 1px solid #ccc;
  30. width:120px;
  31.      height:50px;
  32. line-height: 40px;
  33. margin: 1px 10px;
  34. padding-top:3px;
  35. }
  36. </style>
  37.     <script type="text/javascript">
  38.         function changeCol(bb) {
  39.             var data;
  40.             $.get("../Admin/handler/GetProByCol.ashx", { colid: bb.value }, GetColBind1);
  41.         }
  42.         function ChangePro(bb) {
  43.             $.get("../Admin/handler/AddCal.ashx", { Proid: bb.value, Ljid: $("#ddlLj_id").val(), Colid: $("#ddlCol_id").val() }, GetColBindBanJi);
  44.         }
  45.         $(function() {
  46.         if ($("#hfProData").val()!="") {
  47.             BindSelectData1($("#hfProData").val(), "ddlPro_id");
  48.             $("#ddlPro_id").val($("#hfpro_id").val());
  49.             // if ($("#hfClaData").val()!="") {
  50.             BindSelectData($("#hfClaData").val(), "ddlClaid");
  51.             $("#ddlClaid").val($("#hfcla").val());
  52.                     }
  53.         });
  54.         $(function() {
  55.             $("#form1").validate({// #formId为需要进行验证的表单ID
  56.                 errorElement: "div", // 使用"div"标签标记错误, 默认:"label"
  57.                 wrapper: "li", // 使用"li"标签再把上边的errorELement包起来
  58.                 errorClass: "validate-error", // 错误提示的css类名"error
  59.                 focusCleanup: false, // 当未通过验证的元素获得焦点时,并移除错误提示
  60.                 rules: {
  61.                     ddlLj_id: {// 需要进行验证的输入框name
  62.                         required: true// 验证条件:必填
  63.                     },
  64.                     ddlCol_id: {// 需要进行验证的输入框name
  65.                         required: true// 验证条件:必填
  66.                     },
  67.                     ddlPro_id: {
  68.                         required: true
  69.                     },
  70.                     ddlClaid: {
  71.                         required: true
  72.                     }
  73.                 },
  74.                 messages: {
  75.                     ddlLj_id: {
  76.                         required: "请选择一个年届!"// 验证未通过的消息
  77.                     },
  78.                     ddlCol_id: {
  79.                         required: "请选择一个系所!"// 验证未通过的消息
  80.                     },
  81.                     ddlPro_id: {
  82.                         required: "请选择一个专业!"// 验证未通过的消息
  83.                     },
  84.                     ddlClaid: {
  85.                         required: "请输入班级名称!"// 验证未通过的消息
  86.                     }
  87.                 }
  88.             });
  89.         });
  90.       
  91.     </script>
  92. </head>
  93. <body>
  94.     <form id="form1" runat="server">
  95.         <h1>
  96.             学生档案信息添加</h1>
  97.         <h4>
  98.             <b>相关操作:</b><a href="?action=add">添加信息</a> | <a href="admin_StudentFile.aspx">信息列表</a></h4>
  99.         <div style="height: 3px; width: 100%; background: #fff;">
  100.         </div>
  101.         <div id="tabs0">
  102.             <ul class="menu0" id="menu0">
  103.                 <li onclick="setTab(0,0)" class="hover">基本资料</li>
  104.                 <%-- <li onclick="setTab(0,1)">基本资料二</li>--%>
  105.                 <%--<li onclick="setTab(0,2)">测评信息</li>
  106.             <li onclick="setTab(0,3)">阅历及关系</li>
  107.             <li onclick="setTab(0,4)">其它情况</li>
  108.             <li onclick="setTab(0,5)">学籍变动</li>
  109.             <li onclick="setTab(0,6)">备 注</li>--%>
  110.             </ul>
  111.             <div class="main" id="main0">
  112.                 <input type="hidden" name="action" value="stu">
  113.                 <input type="hidden" name="id" value="0">
  114.                 <ul class="block">
  115.                     <li>
  116.                         <table width="98%" cellspacing="0" cellpadding="0" class="filetab">
  117.                             <tr>
  118.                                 <td width="15%" align="center">
  119.                                     姓&nbsp;&nbsp;&nbsp;&nbsp;名
  120.                                 </td>
  121.                                 <td colspan="2" width="40%">
  122.                                     <input runat="Server" type="text" id="txtName" size="20">
  123.                                 </td>
  124.                                 <td rowspan="5" width="25%">
  125.                                     <img src="..uploaddefault.gif" id="imageurl" name="imageurl" width="90" height="120"><br>
  126.                                     像片规格:90*120
  127.                                 </td>
  128.                                 <td rowspan="14" width="20%" align="center" valign="top" style="padding-top: 10px;">
  129.                                     <div class="file_butt">
  130.                                         <asp:Button runat="server" ID="Button1" Text="确定" OnClick="Button1_Click"></asp:Button>
  131.                                         <input id="Button2" name="reset" type="reset" value="重 置"> 
  132.                                        <a href="admin_StudentFile.aspx"><span
  133.                                             class="t3">返 回</span></a></div>
  134.                                 </td>
  135.                                 </td></td>
  136.                             </tr>
  137.                             <tr>
  138.                                 <td align="center">
  139.                                     曾&nbsp;用&nbsp;名
  140.                                 </td>
  141.                                 <td colspan="2">
  142.                                     <input runat="Server" type="text" id="txtHis" size="20">
  143.                                 </td>
  144.                             </tr>
  145.                             <tr>
  146.                                 <td align="center">
  147.                                     性&nbsp;&nbsp;&nbsp;&nbsp;别
  148.                                 </td>
  149.                                 <td colspan="2">
  150.                                     <label>
  151.                                         <input type="radio" name="Gender" value="1" style="border: 0;" <%= ch[0].ToString() %>>男
  152.                                     </label>
  153.                                     <label>
  154.                                         <input type="radio" name="Gender" value="2" style="border: 0;" <%= ch[1].ToString() %>>女
  155.                                     </label>
  156.                                 </td>
  157.                             </tr>
  158.                             <tr>
  159.                                 <td align="center">
  160.                                     出生日期
  161.                                 </td>
  162.                                 <td colspan="2">
  163.                                     <input runat="Server" type="text" id="txtbirth" size="20" value="2010-01-01">
  164.                                 </td>
  165.                             </tr>
  166.                             <tr>
  167.                                 <td align="center">
  168.                                     是否录取
  169.                                 </td>
  170.                                 <td colspan="2">
  171.                               <asp:RadioButtonList ID="rblluqu" runat="server" RepeatDirection="Horizontal">
  172.             <asp:ListItem Selected="True">否</asp:ListItem>
  173.             <asp:ListItem>是</asp:ListItem>
  174.         </asp:RadioButtonList>
  175.                                 </td>
  176.                             </tr>
  177.                             <tr>
  178.                                 <td align="center">
  179.                                     学&nbsp;&nbsp;&nbsp;&nbsp;号
  180.                                 </td>
  181.                                 <td colspan="2">
  182.                                     <input runat="Server" type="text" id="txtClassNo" size="20">
  183.                                 </td>
  184.                                 <td>
  185.                                 </td>
  186.                             </tr>
  187.                             <tr>
  188.                                 <td align="center">
  189.                                     <span lang="zh-cn">所在集体</span>
  190.                                 </td>
  191.                                 <td colspan="2">
  192.                                     年&nbsp;&nbsp;&nbsp;&nbsp;届:
  193.                                     <asp:DropDownList ID="ddlLj_id" runat="server">
  194.                                     </asp:DropDownList>
  195.                                     <br>
  196.                                     系&nbsp;&nbsp;&nbsp;&nbsp;所:
  197.                                     <asp:DropDownList ID="ddlCol_id" onchange="changeCol(this)" runat="server">
  198.                                     </asp:DropDownList>
  199.                                     <br>
  200.                                     专&nbsp;&nbsp;&nbsp;&nbsp;业:
  201.                                     <select runat="Server" id="ddlPro_id" name="ddlPro_id" enableviewstate="true" onchange="ChangePro(this)">
  202.                                         <option value="">请选择</option>
  203.                                     </select>
  204.                                     <span id="pro_id_txt"></span>
  205.                                     <br>
  206.                                     班&nbsp;&nbsp;&nbsp;&nbsp;级:
  207.                                     <select id="ddlClaid" runat="Server" name="ddlClaid">
  208.                                         <option value="">请选择</option>
  209.                                     </select>
  210.                                     <span id="cla_id_txt"></span>
  211.                                 </td>
  212.                                 <td>
  213.                                 </td>
  214.                             </tr>
  215.                             <tr>
  216.                                 <td align="center">
  217.                                     身份证号
  218.                                 </td>
  219.                                 <td>
  220.                                     <input runat="Server" type="text" id="txtidentityNo" size="20">
  221.                                 </td>
  222.                                 <td align="center">
  223.                                     EMAIL
  224.                                 </td>
  225.                                 <td>
  226.                                     <input runat="Server" type="text" id="txtemail" size="20">
  227.                                 </td>
  228.                             </tr>
  229.                             <tr>
  230.                                 <td align="center">
  231.                                     宗教信仰
  232.                                 </td>
  233.                                 <td width="25%">
  234.                                     <input runat="Server" type="text" id="txtc1" size="20">
  235.                                 </td>
  236.                                 <td width="15%" align="center">
  237.                                     政治面貌
  238.                                 </td>
  239.                                 <td>
  240.                                     <select runat="Server" id="ddlPolitical">
  241.                                         <option value="0" selected>其它</option>
  242.                                         <option value="1">群众</option>
  243.                                         <option value="2">团员</option>
  244.                                         <option value="3">党员</option>
  245.                                     </select>
  246.                                 </td>
  247.                             </tr>
  248.                             <tr>
  249.                                 <td align="center">
  250.                                     民&nbsp;&nbsp;&nbsp;&nbsp;族
  251.                                 </td>
  252.                                 <td>
  253.                                     <select runat="Server" id="ddlNational">
  254.                                         <option value="0" selected>其它</option>
  255.                                         <option value="1">汉族</option>
  256.                                         <option value="2">壮族</option>
  257.                                         <option value="3">毛南族</option>
  258.                                         <option value="4">乌孜别克族</option>
  259.                                         <option value="5">塔塔尔族</option>
  260.                                         <option value="6">布依族</option>
  261.                                         <option value="7">土家族</option>
  262.                                         <option value="8">白族</option>
  263.                                         <option value="9">蒙古族</option>
  264.                                         <option value="10">畲族</option>
  265.                                         <option value="11">哈尼族</option>
  266.                                         <option value="12">高山族</option>
  267.                                         <option value="13">土族</option>
  268.                                         <option value="14">仡佬族</option>
  269.                                         <option value="15">俄罗斯族</option>
  270.                                         <option value="16">独龙族</option>
  271.                                         <option value="17">回族</option>
  272.                                         <option value="18">朝鲜族</option>
  273.                                         <option value="19">哈萨克族</option>
  274.                                         <option value="20">拉祜族</option>
  275.                                         <option value="21">达斡尔族</option>
  276.                                         <option value="22">锡伯族</option>
  277.                                         <option value="23">鄂伦春族</option>
  278.                                         <option value="24">鄂温克族</option>
  279.                                         <option value="25">藏族</option>
  280.                                         <option value="26">满族</option>
  281.                                         <option value="27">傣族</option>
  282.                                         <option value="28">水族</option>
  283.                                         <option value="29">仫佬族</option>
  284.                                         <option value="30">阿昌族</option>
  285.                                         <option value="31">德昂族</option>
  286.                                         <option value="32">赫哲族</option>
  287.                                         <option value="33">维吾尔族</option>
  288.                                         <option value="34">侗族</option>
  289.                                         <option value="35">黎族</option>
  290.                                         <option value="36">东乡族</option>
  291.                                         <option value="37">羌族</option>
  292.                                         <option value="38">普米族</option>
  293.                                         <option value="39">保安族</option>
  294.                                         <option value="40">门巴族</option>
  295.                                         <option value="41">苗族</option>
  296.                                         <option value="42">瑶族 </option>
  297.                                         <option value="43">傈僳族</option>
  298.                                         <option value="44">纳西族</option>
  299.                                         <option value="45">布朗族</option>
  300.                                         <option value="46">塔吉克族</option>
  301.                                         <option value="47">裕固族</option>
  302.                                         <option value="48">珞巴族</option>
  303.                                         <option value="49">彝族</option>
  304.                                         <option value="50">柯尔克孜族</option>
  305.                                         <option value="51">佤族</option>
  306.                                         <option value="52">景颇族</option>
  307.                                         <option value="53">撒拉族</option>
  308.                                         <option value="54">怒族</option>
  309.                                         <option value="55">京族</option>
  310.                                         <option value="56">基诺族</option>
  311.                                     </select>
  312.                                 </td>
  313.                                 <td align="center">
  314.                                     籍&nbsp;&nbsp;&nbsp;&nbsp;贯
  315.                                 </td>
  316.                                 <td>
  317.                                     <input runat="Server" type="text" id="txtBirthplace" size="20">
  318.                                 </td>
  319.                             </tr>
  320.                             <tr>
  321.                                 <td align="center">
  322.                                     家庭住址
  323.                                 </td>
  324.                                 <td>
  325.                                     <input runat="Server" type="text" id="txtaddress" size="20">
  326.                                 </td>
  327.                                 <td align="center">
  328.                                     邮&nbsp;&nbsp;&nbsp;&nbsp;编
  329.                                 </td>
  330.                                 <td>
  331.                                     <input runat="Server" type="text" id="txtZip" size="20">
  332.                                 </td>
  333.                             </tr>
  334.                             <tr>
  335.                                 <td align="center">
  336.                                     联系电话
  337.                                 </td>
  338.                                 <td>
  339.                                     <input runat="Server" type="text" id="txtTelephone" size="20">
  340.                                 </td>
  341.                             </tr>
  342.                         </table>
  343.                     </li>
  344.                 </ul>
  345.             </div>
  346.         </div>
  347.         <h1>
  348.             &nbsp;</h1>
  349.         <asp:HiddenField ID="hfpro_id" runat="server" />
  350.         <asp:HiddenField ID="hfcla" runat="server" />
  351.         <asp:HiddenField ID="hfProData" runat="server" />
  352.         <asp:HiddenField ID="hfClaData" runat="server" />
  353.     </form>
  354. </body>
  355. </html>