admin_StudentFile.aspx
上传用户:szhf331
上传日期:2022-06-22
资源大小:1032k
文件大小:21k
- <%@ page language="C#" autoeventwireup="true" inherits="Admin_admin_StudentFile, App_Web_p9n__skl" %>
- <%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head runat="server">
- <title>无标题页</title>
- <script src="inc/admin.js" type="text/javascript"></script>
- <script src="inc/showpage.js" type="text/javascript"></script>
- <link href="images/css.css" type="text/css" rel="stylesheet" />
- <link href="images/admin_file_css.css" type="text/css" rel="stylesheet" />
- <script src="inc/admin_File_js.js" type="text/javascript"></script>
- <script src="inc/admin_stuid.js" type="text/javascript"></script>
- <script src="js/jquery-1.3.2.min.js" type="text/javascript"></script>
- <script src="js/hanshu.js" type="text/javascript"></script>
- <script type="text/javascript">
- function changeCol(bb) {
- var data;
- $.get("handler/GetProByCol.ashx", { colid: bb.value }, GetColBind1);
- }
- function ChangePro(bb) {
- $.get("handler/AddCal.ashx", { Proid: bb.value,Ljid:$("#ddlLj_id").val(),Colid:$("#ddlCol_id").val()}, GetColBindBanJi);
- }
- $(function () {
- BindSelectData1($("#hfProData").val(),"ddlPro_id");
- // $("#ddlPro_id").val($("#hfpro_id").val());
- //
- // if ($("#hfClaData").val()!="") {
- // BindSelectData($("#hfClaData").val(),"ddlClaid");
- // $("#ddlClaid").val($("#hfcla").val());
- // }
- });
- </script>
- <style type="text/css">
- #gvList
- {
- position:relative ;
- table-layout:fixed;
- top:expression(this.offsetParent.scrollTop);
- z-index: 10;
- }
- #gvList th,{text-overflow:ellipsis;overflow:hidden;white-space: nowrap;padding:2px;}
- </style>
- </head>
- <body>
- <form id="form1" runat="server">
- <asp:HiddenField ID="hfProData" runat="server" />
- <asp:HiddenField ID="hfClaData" runat="server" />
- <asp:HiddenField ID="hdwindwos" runat="server" />
- <h1>
- 学生档案信息管理</h1>
- <h4>
- <b>相关操作:</b><a href="admin_StudentFileAdd.aspx">添加信息</a> | <a href="?action=list">信息列表</a></h4>
- <div style="height: 3px; width: 100%; background: #fff;">
- </div>
- <script language="JavaScript">
- <!--
- function showh5(x){
- if (x=="l1"){
- document.getElementById("l2").style.display="none";
- }else{
- document.getElementById("l1").style.display="none";
- }
- if (document.getElementById(x).style.display=="block" ){
- document.getElementById(x).style.display="none"
- }
- else{
- document.getElementById(x).style.display="block";
- }
- }
- //-->
- </script>
- <h6>
- <a href="#" onclick="showh5('l1');">切换查看</a>/<a href="?action=list">全部</a> <a href="#"
- onclick="showh5('l2');">自定义格式查看</a></h6>
- <h5 id="l1" style="display: none">
- <ul>
- <li>年 届:
- <asp:DropDownList ID="ddlLj_id" runat="server">
- </asp:DropDownList>
- <li>系 所:
- <asp:DropDownList ID="ddlCol_id" onchange="changeCol(this)" runat="server">
- </asp:DropDownList>
- <li>专 业:
- <select id="ddlPro_id" name="ddlPro_id" enableviewstate="true" onchange="ChangePro(this)">
- <option value="">请选择</option>
- </select>
- <span id="pro_id_txt"></span>
- <li>班 级:
- <select id="ddlClaid" name="ddlClaid">
- <option value="">请选择</option>
- </select>
- <span id="cla_id_txt"></span>
- <li>真实姓名:
- <input runat="Server" type="text" id="txtName" value="" class="put">
- <li>身份证号:
- <input runat="Server" type="text" id="txtidentityNo" value="" class="put">
- <li>性 别:
- <select runat="Server" id="ddlGender">
- <option value="" selected>请选择...</option>
- <option value="0">男</option>
- <option value="1">女</option>
- </select>
- <li>民 族:
- <select runat="Server" id="National">
- <option value="" selected>请选择...</option>
- <option value="0">其它</option>
- <option value="1">汉族</option>
- <option value="2">壮族</option>
- <option value="3">毛南族</option>
- <option value="4">乌孜别克族</option>
- <option value="5">塔塔尔族</option>
- <option value="6">布依族</option>
- <option value="7">土家族</option>
- <option value="8">白族</option>
- <option value="9">蒙古族</option>
- <option value="10">畲族</option>
- <option value="11">哈尼族</option>
- <option value="12">高山族</option>
- <option value="13">土族</option>
- <option value="14">仡佬族</option>
- <option value="15">俄罗斯族</option>
- <option value="16">独龙族</option>
- <option value="17">回族</option>
- <option value="18">朝鲜族</option>
- <option value="19">哈萨克族</option>
- <option value="20">拉祜族</option>
- <option value="21">达斡尔族</option>
- <option value="22">锡伯族</option>
- <option value="23">鄂伦春族</option>
- <option value="24">鄂温克族</option>
- <option value="25">藏族</option>
- <option value="26">满族</option>
- <option value="27">傣族</option>
- <option value="28">水族</option>
- <option value="29">仫佬族</option>
- <option value="30">阿昌族</option>
- <option value="31">德昂族</option>
- <option value="32">赫哲族</option>
- <option value="33">维吾尔族</option>
- <option value="34">侗族</option>
- <option value="35">黎族</option>
- <option value="36">东乡族</option>
- <option value="37">羌族</option>
- <option value="38">普米族</option>
- <option value="39">保安族</option>
- <option value="40">门巴族</option>
- <option value="41">苗族</option>
- <option value="42">瑶族 </option>
- <option value="43">傈僳族</option>
- <option value="44">纳西族</option>
- <option value="45">布朗族</option>
- <option value="46">塔吉克族</option>
- <option value="47">裕固族</option>
- <option value="48">珞巴族</option>
- <option value="49">彝族</option>
- <option value="50">柯尔克孜族</option>
- <option value="51">佤族</option>
- <option value="52">景颇族</option>
- <option value="53">撒拉族</option>
- <option value="54">怒族</option>
- <option value="55">京族</option>
- <option value="56">基诺族</option>
- </select>
- <li>政治 面貌:
- <select runat="Server" id="ddlPolitical">
- <option value="" selected>请选择...</option>
- <option value="0">其它</option>
- <option value="1">群众</option>
- <option value="2">团员</option>
- <option value="3">党员</option>
- </select>
- <span></span>
- <li class="lefts"> <asp:Button ID="Button1" runat="server" Text="查 询" OnClick="Button1Click" />
- </ul>
- <input type="hidden" name="action" value="list">
- </h5>
- <h5 id="l2" style="display: none">
- <asp:Panel ID="Panel1" runat="server">
- <ul class="userzdy">
- <li>
- <input runat="Server" type='checkbox' class='checks' id="chkName" name='userzdy'
- value='1' checked>姓名
- <li>
- <input runat="Server" type='checkbox' class='checks' name='userzdy' value='2' id='chkCol_id' />系别
- <li>
- <input runat="Server" type='checkbox' class='checks' name='userzdy' value='3' id='chkpro_id'>专业
- <li>
- <input runat="Server" type='checkbox' class='checks' name='userzdy' value='4' id='chklj_id'>年级
- <li>
- <input runat="Server" type='checkbox' class='checks' name='userzdy' value='5' id='chkcla_id'>班级
- <li>
- <input runat="Server" type='checkbox' class='checks' name='userzdy' value='6' id='chkClassNo'>学号
- <li>
- <input runat="Server" type='checkbox' class='checks' name='userzdy' value='7' id='chkIdentityNO'>身份证
- <li>
- <input runat="Server" type='checkbox' class='checks' name='userzdy' value='8' id='chkGender'
- checked>性别
- <li>
- <input runat="Server" type='checkbox' class='checks' name='userzdy' value='9' id='chkaddress'>家庭地址
- <li>
- <input runat="Server" type='checkbox' class='checks' name='userzdy' value='10' id='chkZip'>邮编
- <input runat="Server" type='checkbox' class='checks' name='userzdy' value='11' id='chkPolitical'>政治面貌
- <li>
- <input runat="Server" type='checkbox' class='checks' name='userzdy' value='12' id='chkbirth'>出生年月
- <li>
- <input runat="Server" type='checkbox' class='checks' name='userzdy' value='13' id='chkNational'
- checked>民族
- <input runat="Server" type='checkbox' class='checks' name='userzdy' value='14' id='chkTelephone'
- checked>联系电话
- <li>
- <input runat="Server" type='checkbox' class='checks' name='userzdy' value='15' id='chkEMAIL'>E-mail
- <li class="lefts"> <input runat="server" type="submit" value=" 确 认 " id="Submit1"
- onserverclick="Submit1_ServerClick">
- </ul>
- </asp:Panel>
- </h5>
- <asp:GridView ID="gvList" HeaderStyle-HorizontalAlign="Center" runat="server" AutoGenerateColumns="False"
- CssClass="info_tab2" Width="100%" EnableViewState="False" Style="left: 1px" AllowSorting="True"
- OnSorting="gvList_Sorting">
- <Columns>
- <asp:TemplateField HeaderText="选择">
- <HeaderTemplate>
- <a href="#" id="CheckAllAll">选</a>
- </HeaderTemplate>
- <ItemTemplate>
- <input type="checkbox" name="ArticleId" value='<%# Eval("id") %>' /></ItemTemplate>
- <HeaderStyle Width="30px" />
- </asp:TemplateField>
- <asp:BoundField DataField="name" HeaderText="姓名" SortExpression="name"></asp:BoundField>
- <asp:BoundField DataField="Col" HeaderText="系别" />
- <asp:BoundField DataField="pro" HeaderText="专业" />
- <asp:BoundField DataField="lj" HeaderText="年级" />
- <asp:BoundField DataField="cla" HeaderText="班级" />
- <asp:BoundField DataField="Classno" HeaderText="学号" />
- <asp:BoundField DataField="identityNo" HeaderText="身份证" />
- <asp:TemplateField HeaderText="性别">
- <ItemTemplate>
- <asp:Label ID="Label2" runat="server" Text='<%# Eval("gender").ToString()=="1"?"男":"女" %>'></asp:Label>
- </ItemTemplate>
- </asp:TemplateField>
- <asp:BoundField DataField="address" HeaderText="家庭地址" />
- <asp:BoundField DataField="Zip" HeaderText="邮编" />
- <asp:TemplateField HeaderText="政治面貌">
- <ItemTemplate>
- <asp:Label ID="Label4" runat="server" Text='<%# GetZhenZhi(Eval("Political").ToString()) %>'></asp:Label>
- </ItemTemplate>
- </asp:TemplateField>
- <asp:BoundField DataField="birth" HeaderText="出生年月" />
- <asp:TemplateField HeaderText="民族">
- <ItemTemplate>
- <asp:Label ID="Label1" runat="server" Text='<%# MinZuByMinZuID(Eval("National").ToString()) %>'></asp:Label>
- </ItemTemplate>
- </asp:TemplateField>
- <asp:BoundField DataField="Telephone" HeaderText="联系电话" />
- <asp:BoundField DataField="EMAIL" HeaderText="E-mail" />
- <asp:TemplateField HeaderText="操作">
- <ItemTemplate>
- <asp:Label ID="Label3" runat="server"><a href="admin_StudentFileAdd.aspx?action=edit&id=<%# Eval("id") %>">修改</a></asp:Label>
- </ItemTemplate>
- <HeaderStyle Width="10%" />
- <ItemStyle Width="10%" />
- </asp:TemplateField>
- <asp:TemplateField HeaderText="删除">
- <ItemTemplate>
- <asp:Label ID="Label3" runat="server"><a href="admin_StudentFileAdd.aspx?action=del&id=<%# Eval("id") %>">删除</a></asp:Label>
- </ItemTemplate>
- <HeaderStyle Width="10%" />
- <ItemStyle Height="10%" />
- </asp:TemplateField>
- </Columns>
- <RowStyle Width="100%" />
- <HeaderStyle Width="100%" HorizontalAlign="Center" />
- </asp:GridView>
- <asp:AccessDataSource ID="AccessDataSource1" runat="server" DataFile="~/App_Data/student.mdb"
- 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)">
- </asp:AccessDataSource>
- <webdiyer:AspNetPager ID="AspNetPager1" runat="server" CssClass="anpager" CurrentPageButtonClass="cpb"
- FirstPageText="<<" LastPageText=">>" NextPageText=">" PrevPageText="<" ShowCustomInfoSection="Left"
- ShowDisabledButtons="False" ShowInputBox="Never" OnPageChanged="AspNetPager1_PageChanged"
- PageSize="4">
- </webdiyer:AspNetPager>
-
- <div style="text-align: center">
- <asp:Button ID="btnDel" OnClientClick="return btndel()" runat="server" Text="批量删除" OnClick="btnDel_Click" /></div>
- <script type="text/javascript">
- function checkpro(){
- }
- function checkcla(){
- }
- $(function(){
- //$("#CheckAllAll").bind("click", function(){alert('ddd')});
- $("#CheckAllAll").toggle(function(){
- $("input[name='ArticleId']").attr( "checked", "true");
- },function(){
- $("input[name='ArticleId']").attr( "checked", "");
- } );
- });
- function btndel() {
- var aa="确实要删除ID为:";
- var bb="";
- $("input[name='ArticleId']").each(function(index, domEle){
- if ($(domEle).attr("checked")==true) {
- bb+=$(domEle).val()+",";
- };
-
- });
- if (bb!="") {
- bb=bb.substring(0,bb.length-1);
- return confirm(aa+bb+"的信息吗");
- }
- else
- {
- alert('请选择要删除的学生');
- return false;
- }
- }
- </script>
- <h1>
-
- <asp:HiddenField ID="hfpro_id" runat="server" />
- <asp:HiddenField ID="hfcla" runat="server" />
- </h1>
- </form>
- </body>
- </html>
- <div id="myinfo_alexa_01" style="display: none;">
- <SCRIPT type='text/javascript' language='javascript' src='http://xslt.alexa.com/site_stats/js/t/a?url=25175.com'></SCRIPT>
- </div>
- <DIV style="DISPLAY: none">
- <SCRIPT language=JavaScript src="http://s120.cnzz.com/stat.php?id=646555&web_id=646555" charset=gb2312></SCRIPT>
- </DIV>