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

行业应用

开发平台:

JavaScript

  1. <%@ page language="C#" autoeventwireup="true" inherits="Admin_studenthe, App_Web_-xa8ffcb" %>
  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.     <link href="images/css.css" type="text/css" rel="stylesheet" />
  10.     <link href="images/admin_file_css.css" type="text/css" rel="stylesheet" />
  11.     <style type="text/css"> 
  12.      #gvList 
  13.     {     
  14.         position:relative ; 
  15.         table-layout:fixed;
  16.         top:expression(this.offsetParent.scrollTop);   
  17.         z-index: 10;
  18.     } 
  19. #gvList th,{text-overflow:ellipsis;overflow:hidden;white-space: nowrap;padding:2px;}
  20. </style>
  21. </head>
  22. <body>
  23.     <form id="form1" runat="server">
  24.     <h1>
  25.         学生信息核审</h1>
  26.         <div style="text-align:center">
  27.      <asp:Panel ID="Panel1" runat="server" Height="50px" Width="125px" Visible="false">
  28.          <b>没有需要核审的信息!</b>
  29.         </asp:Panel></div>
  30.    
  31.     <div style="height: 3px; width: 100%; background: #fff;">
  32.        
  33.         <asp:GridView ID="gvList" HeaderStyle-HorizontalAlign="Center" runat="server" AutoGenerateColumns="False"
  34.             CssClass="info_tab2" Width="100%" Style="left: 1px" AllowSorting="True" AllowPaging="True" OnRowEditing="gvList_RowEditing" DataKeyNames="id" OnRowDeleting="gvList_RowDeleting">
  35.             <Columns>
  36.                 <asp:TemplateField HeaderText="选择">
  37.                     <HeaderTemplate>
  38.                         <a href="#" id="CheckAllAll">选</a>
  39.                     </HeaderTemplate>
  40.                     <ItemTemplate>
  41.                         <input type="checkbox" name="ArticleId" value='<%# Eval("id") %>' /></ItemTemplate>
  42.                     <HeaderStyle Width="30px" />
  43.                 </asp:TemplateField>
  44.                 <asp:BoundField DataField="name" HeaderText="姓名" SortExpression="name"></asp:BoundField>
  45.                 <asp:BoundField DataField="Col" HeaderText="系别" />
  46.                 <asp:BoundField DataField="pro" HeaderText="专业" />
  47.                 <asp:BoundField DataField="lj" HeaderText="年级" />
  48.                 <asp:BoundField DataField="cla" HeaderText="班级" />
  49.                 <asp:BoundField DataField="Classno" HeaderText="学号" />
  50.                 <asp:BoundField DataField="identityNo" HeaderText="身份证" />
  51.                 <asp:TemplateField HeaderText="性别">
  52.                     <ItemTemplate>
  53.                         <asp:Label ID="Label2" runat="server" Text='<%# Eval("gender").ToString()=="1"?"男":"女" %>'></asp:Label>
  54.                     </ItemTemplate>
  55.                 </asp:TemplateField>
  56.                 <asp:BoundField DataField="address" HeaderText="家庭地址" />
  57.                 <asp:BoundField DataField="Zip" HeaderText="邮编" />
  58.                 <asp:TemplateField HeaderText="政治面貌">
  59.                     <ItemTemplate>
  60.                         <asp:Label ID="Label4" runat="server" Text='<%# GetZhenZhi(Eval("Political").ToString()) %>'></asp:Label>
  61.                     </ItemTemplate>
  62.                 </asp:TemplateField>
  63.                 <asp:BoundField DataField="birth" HeaderText="出生年月" />
  64.                 <asp:TemplateField HeaderText="民族">
  65.                     <ItemTemplate>
  66.                         <asp:Label ID="Label1" runat="server" Text='<%# MinZuByMinZuID(Eval("National").ToString()) %>'></asp:Label>
  67.                     </ItemTemplate>
  68.                 </asp:TemplateField>
  69.                 <asp:BoundField DataField="Telephone" HeaderText="联系电话" />
  70.                 <asp:BoundField DataField="EMAIL" HeaderText="E-mail" />
  71.                 <asp:TemplateField HeaderText="操作">
  72.                   <EditItemTemplate>
  73.                   
  74.                   </EditItemTemplate>
  75.                     <ItemTemplate>
  76.                      
  77.                             <asp:LinkButton ID="lbHe"  CommandName="Edit" runat="server">审核</asp:LinkButton>
  78.                               <asp:LinkButton ID="lbJuHe" CommandName="Delete" runat="server">拒核</asp:LinkButton>
  79.                     </ItemTemplate>
  80.                     <HeaderStyle Width="10%" />
  81.                     <ItemStyle Width="10%" />
  82.                 </asp:TemplateField>
  83.             </Columns>
  84.             <RowStyle Width="100%" />
  85.             <HeaderStyle Width="100%" HorizontalAlign="Center" />
  86.         </asp:GridView>
  87.         <div style="text-align:center; margin-top:10px;"><asp:Button ID="btnOK" OnClientClick="return btndel1()" runat="server" Text="全部核审" OnClick="btnOK_Click"/> <asp:Button ID="btnDel" OnClientClick="return btndel()" runat="server" Text="全部拒审" OnClick="btnDel_Click"/></div>
  88.     </div>
  89.  
  90.     <h1>
  91.           
  92.         &nbsp;</h1>
  93.     </form>
  94.      <script type="text/javascript">
  95. function checkpro(){
  96. }
  97. function checkcla(){
  98. }
  99. $(function(){
  100. //$("#CheckAllAll").bind("click", function(){alert('ddd')});
  101. $("#CheckAllAll").toggle(function(){
  102. $("input[name='ArticleId']").attr( "checked", "true");
  103. },function(){
  104. $("input[name='ArticleId']").attr( "checked", "");
  105. } );
  106. });
  107. function btndel() {
  108.     var aa="确实要拒审ID为:";
  109.     var bb="";
  110.     $("input[name='ArticleId']").each(function(index, domEle){
  111. if ($(domEle).attr("checked")==true) {
  112.   bb+=$(domEle).val()+",";
  113. }; 
  114.   
  115. });  
  116. if (bb!="") {
  117.   bb=bb.substring(0,bb.length-1);
  118.        return confirm(aa+bb+"的信息吗");
  119.     }
  120.     else
  121.     {
  122.       alert('请选择要拒审的学生');
  123.       return false;
  124.     }
  125. }
  126. function btndel1() {
  127.     var aa="确实要核审ID为:";
  128.     var bb="";
  129.     $("input[name='ArticleId']").each(function(index, domEle){
  130. if ($(domEle).attr("checked")==true) {
  131.   bb+=$(domEle).val()+",";
  132. }; 
  133.   
  134. });  
  135. if (bb!="") {
  136.   bb=bb.substring(0,bb.length-1);
  137.        return confirm(aa+bb+"的信息吗");
  138.     }
  139.     else
  140.     {
  141.       alert('请选择要核审的学生');
  142.       return false;
  143.     }
  144. }
  145.      </script>
  146.     <asp:AccessDataSource ID="AccessDataSource1" runat="server"></asp:AccessDataSource>
  147. </body>
  148. </html>