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

行业应用

开发平台:

JavaScript

  1. <%@ page language="C#" autoeventwireup="true" inherits="Admin_admin_StudentFile, App_Web_p9n__skl" %>
  2. <%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
  3. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  4. <html xmlns="http://www.w3.org/1999/xhtml">
  5. <head runat="server">
  6.     <title>无标题页</title>
  7.     <script src="inc/admin.js" type="text/javascript"></script>
  8.     <script src="inc/showpage.js" type="text/javascript"></script>
  9.     <link href="images/css.css" type="text/css" rel="stylesheet" />
  10.     <link href="images/admin_file_css.css" type="text/css" rel="stylesheet" />
  11.    <script src="inc/admin_File_js.js" type="text/javascript"></script>
  12.     <script src="inc/admin_stuid.js" type="text/javascript"></script>
  13.   <script src="js/jquery-1.3.2.min.js" type="text/javascript"></script>
  14.     <script src="js/hanshu.js" type="text/javascript"></script>
  15.     <script type="text/javascript">
  16.     function changeCol(bb) {
  17.             var data;
  18.           $.get("handler/GetProByCol.ashx", { colid: bb.value }, GetColBind1);
  19.         }
  20.        function ChangePro(bb) { 
  21.             $.get("handler/AddCal.ashx", { Proid: bb.value,Ljid:$("#ddlLj_id").val(),Colid:$("#ddlCol_id").val()}, GetColBindBanJi);
  22.        }
  23.       $(function () {
  24.             BindSelectData1($("#hfProData").val(),"ddlPro_id");
  25. //            $("#ddlPro_id").val($("#hfpro_id").val());
  26. //   
  27. //     if ($("#hfClaData").val()!="") {
  28. //            BindSelectData($("#hfClaData").val(),"ddlClaid");
  29. //            $("#ddlClaid").val($("#hfcla").val());
  30. //      }
  31.       });
  32.     </script>
  33.     <style type="text/css"> 
  34.      #gvList 
  35.     {     
  36.         position:relative ; 
  37.         table-layout:fixed;
  38.         top:expression(this.offsetParent.scrollTop);   
  39.         z-index: 10;
  40.     } 
  41. #gvList th,{text-overflow:ellipsis;overflow:hidden;white-space: nowrap;padding:2px;}
  42. </style>
  43. </head>
  44. <body>
  45.     <form id="form1" runat="server">
  46.         <asp:HiddenField ID="hfProData" runat="server" />
  47.         <asp:HiddenField ID="hfClaData" runat="server" />
  48.         <asp:HiddenField ID="hdwindwos" runat="server" />
  49.         <h1>
  50.             学生档案信息管理</h1>
  51.         <h4>
  52.             <b>相关操作:</b><a href="admin_StudentFileAdd.aspx">添加信息</a> | <a href="?action=list">信息列表</a></h4>
  53.         <div style="height: 3px; width: 100%; background: #fff;">
  54.         </div>
  55.         <script language="JavaScript">
  56. <!--
  57. function showh5(x){
  58. if (x=="l1"){
  59. document.getElementById("l2").style.display="none";
  60. }else{
  61. document.getElementById("l1").style.display="none";
  62. }
  63.      if (document.getElementById(x).style.display=="block" ){ 
  64.          document.getElementById(x).style.display="none"
  65.      }
  66.      else{
  67.           document.getElementById(x).style.display="block";
  68.      }
  69. }
  70. //-->
  71.         </script>
  72.         <h6>
  73.             <a href="#" onclick="showh5('l1');">切换查看</a>/<a href="?action=list">全部</a> <a href="#"
  74.                 onclick="showh5('l2');">自定义格式查看</a></h6>
  75.         <h5 id="l1" style="display: none">
  76.             <ul>
  77.                 <li>年&nbsp;&nbsp;&nbsp;&nbsp;届:
  78.                     <asp:DropDownList ID="ddlLj_id" runat="server">
  79.                     </asp:DropDownList>
  80.                     <li>系&nbsp;&nbsp;&nbsp;&nbsp;所:
  81.                         <asp:DropDownList ID="ddlCol_id" onchange="changeCol(this)" runat="server">
  82.                         </asp:DropDownList>
  83.                         <li>专&nbsp;&nbsp;&nbsp;&nbsp;业:
  84.                             <select id="ddlPro_id" name="ddlPro_id" enableviewstate="true" onchange="ChangePro(this)">
  85.                                 <option value="">请选择</option>
  86.                             </select>
  87.                             <span id="pro_id_txt"></span>
  88.                             <li>班&nbsp;&nbsp;&nbsp;&nbsp;级:
  89.                                 <select id="ddlClaid" name="ddlClaid">
  90.                                     <option value="">请选择</option>
  91.                                 </select>
  92.                                 <span id="cla_id_txt"></span>
  93.                                 <li>真实姓名:
  94.                                     <input runat="Server" type="text" id="txtName" value="" class="put">
  95.                                     <li>身份证号:
  96.                                         <input runat="Server" type="text" id="txtidentityNo" value="" class="put">
  97.                                         <li>性&nbsp;&nbsp;&nbsp;&nbsp;别:
  98.                                             <select runat="Server" id="ddlGender">
  99.                                                 <option value="" selected>请选择...</option>
  100.                                                 <option value="0">男</option>
  101.                                                 <option value="1">女</option>
  102.                                             </select>
  103.                                             <li>民&nbsp;&nbsp;&nbsp;&nbsp;族:
  104.                                                 <select runat="Server" id="National">
  105.                                                     <option value="" selected>请选择...</option>
  106.                                                     <option value="0">其它</option>
  107.                                                     <option value="1">汉族</option>
  108.                                                     <option value="2">壮族</option>
  109.                                                     <option value="3">毛南族</option>
  110.                                                     <option value="4">乌孜别克族</option>
  111.                                                     <option value="5">塔塔尔族</option>
  112.                                                     <option value="6">布依族</option>
  113.                                                     <option value="7">土家族</option>
  114.                                                     <option value="8">白族</option>
  115.                                                     <option value="9">蒙古族</option>
  116.                                                     <option value="10">畲族</option>
  117.                                                     <option value="11">哈尼族</option>
  118.                                                     <option value="12">高山族</option>
  119.                                                     <option value="13">土族</option>
  120.                                                     <option value="14">仡佬族</option>
  121.                                                     <option value="15">俄罗斯族</option>
  122.                                                     <option value="16">独龙族</option>
  123.                                                     <option value="17">回族</option>
  124.                                                     <option value="18">朝鲜族</option>
  125.                                                     <option value="19">哈萨克族</option>
  126.                                                     <option value="20">拉祜族</option>
  127.                                                     <option value="21">达斡尔族</option>
  128.                                                     <option value="22">锡伯族</option>
  129.                                                     <option value="23">鄂伦春族</option>
  130.                                                     <option value="24">鄂温克族</option>
  131.                                                     <option value="25">藏族</option>
  132.                                                     <option value="26">满族</option>
  133.                                                     <option value="27">傣族</option>
  134.                                                     <option value="28">水族</option>
  135.                                                     <option value="29">仫佬族</option>
  136.                                                     <option value="30">阿昌族</option>
  137.                                                     <option value="31">德昂族</option>
  138.                                                     <option value="32">赫哲族</option>
  139.                                                     <option value="33">维吾尔族</option>
  140.                                                     <option value="34">侗族</option>
  141.                                                     <option value="35">黎族</option>
  142.                                                     <option value="36">东乡族</option>
  143.                                                     <option value="37">羌族</option>
  144.                                                     <option value="38">普米族</option>
  145.                                                     <option value="39">保安族</option>
  146.                                                     <option value="40">门巴族</option>
  147.                                                     <option value="41">苗族</option>
  148.                                                     <option value="42">瑶族 </option>
  149.                                                     <option value="43">傈僳族</option>
  150.                                                     <option value="44">纳西族</option>
  151.                                                     <option value="45">布朗族</option>
  152.                                                     <option value="46">塔吉克族</option>
  153.                                                     <option value="47">裕固族</option>
  154.                                                     <option value="48">珞巴族</option>
  155.                                                     <option value="49">彝族</option>
  156.                                                     <option value="50">柯尔克孜族</option>
  157.                                                     <option value="51">佤族</option>
  158.                                                     <option value="52">景颇族</option>
  159.                                                     <option value="53">撒拉族</option>
  160.                                                     <option value="54">怒族</option>
  161.                                                     <option value="55">京族</option>
  162.                                                     <option value="56">基诺族</option>
  163.                                                 </select>
  164.                                                 <li>政治&nbsp;&nbsp;&nbsp;&nbsp;面貌:
  165.                                                     <select runat="Server" id="ddlPolitical">
  166.                                                         <option value="" selected>请选择...</option>
  167.                                                         <option value="0">其它</option>
  168.                                                         <option value="1">群众</option>
  169.                                                         <option value="2">团员</option>
  170.                                                         <option value="3">党员</option>
  171.                                                     </select>
  172.                                                     <span></span>
  173.                                                     <li class="lefts">&nbsp;<asp:Button ID="Button1" runat="server" Text="查  询" OnClick="Button1Click" />
  174.             </ul>
  175.             <input type="hidden" name="action" value="list">
  176.         </h5>
  177.         <h5 id="l2" style="display: none">
  178.             <asp:Panel ID="Panel1" runat="server">
  179.                 <ul class="userzdy">
  180.                     <li>
  181.                         <input runat="Server" type='checkbox' class='checks' id="chkName" name='userzdy'
  182.                             value='1' checked>姓名
  183.                         <li>
  184.                             <input runat="Server" type='checkbox' class='checks' name='userzdy' value='2' id='chkCol_id' />系别
  185.                             <li>
  186.                                 <input runat="Server" type='checkbox' class='checks' name='userzdy' value='3' id='chkpro_id'>专业
  187.                                 <li>
  188.                                     <input runat="Server" type='checkbox' class='checks' name='userzdy' value='4' id='chklj_id'>年级
  189.                                     <li>
  190.                                         <input runat="Server" type='checkbox' class='checks' name='userzdy' value='5' id='chkcla_id'>班级
  191.                                         <li>
  192.                                             <input runat="Server" type='checkbox' class='checks' name='userzdy' value='6' id='chkClassNo'>学号
  193.                                             <li>
  194.                                                 <input runat="Server" type='checkbox' class='checks' name='userzdy' value='7' id='chkIdentityNO'>身份证
  195.                                                 <li>
  196.                                                     <input runat="Server" type='checkbox' class='checks' name='userzdy' value='8' id='chkGender'
  197.                                                         checked>性别
  198.                                                     <li>
  199.                                                         <input runat="Server" type='checkbox' class='checks' name='userzdy' value='9' id='chkaddress'>家庭地址
  200.                                                         <li>
  201.                                                             <input runat="Server" type='checkbox' class='checks' name='userzdy' value='10' id='chkZip'>邮编
  202.                                                             <input runat="Server" type='checkbox' class='checks' name='userzdy' value='11' id='chkPolitical'>政治面貌
  203.                                                             <li>
  204.                                                                 <input runat="Server" type='checkbox' class='checks' name='userzdy' value='12' id='chkbirth'>出生年月
  205.                                                                 <li>
  206.                                                                     <input runat="Server" type='checkbox' class='checks' name='userzdy' value='13' id='chkNational'
  207.                                                                         checked>民族
  208.                                                                     <input runat="Server" type='checkbox' class='checks' name='userzdy' value='14' id='chkTelephone'
  209.                                                                         checked>联系电话
  210.                                                                     <li>
  211.                                                                         <input runat="Server" type='checkbox' class='checks' name='userzdy' value='15' id='chkEMAIL'>E-mail
  212.                                                                         <li class="lefts">&nbsp;<input runat="server" type="submit" value=" 确 认 " id="Submit1"
  213.                                                                             onserverclick="Submit1_ServerClick">
  214.                 </ul>
  215.             </asp:Panel>
  216.         </h5>
  217.         <asp:GridView ID="gvList" HeaderStyle-HorizontalAlign="Center" runat="server" AutoGenerateColumns="False"
  218.             CssClass="info_tab2" Width="100%" EnableViewState="False" Style="left: 1px" AllowSorting="True"
  219.             OnSorting="gvList_Sorting">
  220.             <Columns>
  221.                 <asp:TemplateField HeaderText="选择">
  222.                     <HeaderTemplate>
  223.                         <a href="#" id="CheckAllAll">选</a>
  224.                     </HeaderTemplate>
  225.                     <ItemTemplate>
  226.                         <input type="checkbox" name="ArticleId" value='<%# Eval("id") %>' /></ItemTemplate>
  227.                     <HeaderStyle Width="30px" />
  228.                 </asp:TemplateField>
  229.                 <asp:BoundField DataField="name" HeaderText="姓名" SortExpression="name"></asp:BoundField>
  230.                 <asp:BoundField DataField="Col" HeaderText="系别" />
  231.                 <asp:BoundField DataField="pro" HeaderText="专业" />
  232.                 <asp:BoundField DataField="lj" HeaderText="年级" />
  233.                 <asp:BoundField DataField="cla" HeaderText="班级" />
  234.                 <asp:BoundField DataField="Classno" HeaderText="学号" />
  235.                 <asp:BoundField DataField="identityNo" HeaderText="身份证" />
  236.                 <asp:TemplateField HeaderText="性别">
  237.                     <ItemTemplate>
  238.                         <asp:Label ID="Label2" runat="server" Text='<%# Eval("gender").ToString()=="1"?"男":"女" %>'></asp:Label>
  239.                     </ItemTemplate>
  240.                 </asp:TemplateField>
  241.                 <asp:BoundField DataField="address" HeaderText="家庭地址" />
  242.                 <asp:BoundField DataField="Zip" HeaderText="邮编" />
  243.                 <asp:TemplateField HeaderText="政治面貌">
  244.                     <ItemTemplate>
  245.                         <asp:Label ID="Label4" runat="server" Text='<%# GetZhenZhi(Eval("Political").ToString()) %>'></asp:Label>
  246.                     </ItemTemplate>
  247.                 </asp:TemplateField>
  248.                 <asp:BoundField DataField="birth" HeaderText="出生年月" />
  249.                 <asp:TemplateField HeaderText="民族">
  250.                     <ItemTemplate>
  251.                         <asp:Label ID="Label1" runat="server" Text='<%# MinZuByMinZuID(Eval("National").ToString()) %>'></asp:Label>
  252.                     </ItemTemplate>
  253.                 </asp:TemplateField>
  254.                 <asp:BoundField DataField="Telephone" HeaderText="联系电话" />
  255.                 <asp:BoundField DataField="EMAIL" HeaderText="E-mail" />
  256.                 <asp:TemplateField HeaderText="操作">
  257.                     <ItemTemplate>
  258.                         <asp:Label ID="Label3" runat="server"><a href="admin_StudentFileAdd.aspx?action=edit&id=<%# Eval("id") %>">修改</a></asp:Label>
  259.                     </ItemTemplate>
  260.                     <HeaderStyle Width="10%" />
  261.                     <ItemStyle Width="10%" />
  262.                 </asp:TemplateField>
  263.                 <asp:TemplateField HeaderText="删除">
  264.                     <ItemTemplate>
  265.                         <asp:Label ID="Label3" runat="server"><a href="admin_StudentFileAdd.aspx?action=del&id=<%# Eval("id") %>">删除</a></asp:Label>
  266.                     </ItemTemplate>
  267.                     <HeaderStyle Width="10%" />
  268.                     <ItemStyle Height="10%" />
  269.                 </asp:TemplateField>
  270.             </Columns>
  271.             <RowStyle Width="100%" />
  272.             <HeaderStyle Width="100%" HorizontalAlign="Center" />
  273.         </asp:GridView>
  274.         <asp:AccessDataSource ID="AccessDataSource1" runat="server" DataFile="~/App_Data/student.mdb"
  275.             OnSelected="AccessDataSource1_Selected" SelectCommand="SELECT f.id, f.ClassNo, f.Name, f.His, f.Gender, f.[National], f.birth, f.Political, f.Telephone, f.Birthplace, f.address, f.IdentityNO, f.Zip, f.Remarks, f.EMAIL, f.pic, f.lj_id, f.Col_id, f.cla_id, f.pro_id, f.marr, cl.cla, r.lj, c.Col, p.pro FROM ((((File_info f INNER JOIN res_lj r ON f.lj_id = r.id) INNER JOIN res_Col c ON f.Col_id = c.id) INNER JOIN res_cla cl ON f.cla_id = cl.id) INNER JOIN res_pro p ON f.pro_id = p.id)">
  276.         </asp:AccessDataSource>
  277.         <webdiyer:AspNetPager ID="AspNetPager1" runat="server" CssClass="anpager" CurrentPageButtonClass="cpb"
  278.             FirstPageText="<<" LastPageText=">>" NextPageText=">" PrevPageText="<" ShowCustomInfoSection="Left"
  279.             ShowDisabledButtons="False" ShowInputBox="Never" OnPageChanged="AspNetPager1_PageChanged"
  280.             PageSize="4">
  281.         </webdiyer:AspNetPager>
  282.         &nbsp;
  283.         <div style="text-align: center">
  284.             <asp:Button ID="btnDel" OnClientClick="return btndel()" runat="server" Text="批量删除" OnClick="btnDel_Click" /></div>
  285.         <script type="text/javascript">
  286. function checkpro(){
  287. }
  288. function checkcla(){
  289. }
  290. $(function(){
  291. //$("#CheckAllAll").bind("click", function(){alert('ddd')});
  292. $("#CheckAllAll").toggle(function(){
  293. $("input[name='ArticleId']").attr( "checked", "true");
  294. },function(){
  295. $("input[name='ArticleId']").attr( "checked", "");
  296. } );
  297. });
  298. function btndel() {
  299.     var aa="确实要删除ID为:";
  300.     var bb="";
  301.     $("input[name='ArticleId']").each(function(index, domEle){
  302. if ($(domEle).attr("checked")==true) {
  303.   bb+=$(domEle).val()+",";
  304. }; 
  305.   
  306. });  
  307. if (bb!="") {
  308.   bb=bb.substring(0,bb.length-1);
  309.        return confirm(aa+bb+"的信息吗");
  310.     }
  311.     else
  312.     {
  313.       alert('请选择要删除的学生');
  314.       return false;
  315.     }
  316. }
  317.         </script>
  318.         <h1>
  319.             &nbsp;
  320.             <asp:HiddenField ID="hfpro_id" runat="server" />
  321.             <asp:HiddenField ID="hfcla" runat="server" />
  322.         </h1>
  323.     </form>
  324. </body>
  325. </html>
  326. <div id="myinfo_alexa_01" style="display: none;">  
  327. <SCRIPT type='text/javascript' language='javascript' src='http://xslt.alexa.com/site_stats/js/t/a?url=25175.com'></SCRIPT>
  328. </div>
  329. <DIV style="DISPLAY: none">
  330. <SCRIPT language=JavaScript src="http://s120.cnzz.com/stat.php?id=646555&amp;web_id=646555" charset=gb2312></SCRIPT>
  331. </DIV>