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

行业应用

开发平台:

JavaScript

  1. <%@ page language="C#" autoeventwireup="true" inherits="Admin_admin_res_yea, App_Web_-xa8ffcb" %>
  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. </head>
  12. <body>
  13.     <form id="form1" runat="server">
  14.       <asp:AccessDataSource ID="AccessDataSource1" runat="server" DataFile="~/App_Data/student.mdb" SelectCommand="SELECT c.Col, p.id, p.pro, p.con, p.Col_id FROM res_Col c INNER JOIN res_pro p ON c.id = p.Col_id  order by p.id desc"  OnSelected="AccessDataSource1_Selected"></asp:AccessDataSource>
  15.     <h1>
  16.         专业信息管理</h1>
  17.     <h4>
  18.             <b>相关操作:</b> <a href="admin_res_Pro_Add.aspx">添加新专业</a> | <a href="admin_res_Pro.aspx">专业列表管理</a>
  19.     </h4>
  20.     <h5> <ul> <li>系&nbsp;&nbsp;&nbsp;&nbsp;所 <asp:DropDownList ID="ddlCol" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlCol_SelectedIndexChanged">
  21.         </asp:DropDownList> </li></ul> </h5>
  22.     <div style="height: 3px; width: 100%; background: #fff;">
  23.     </div>
  24.     <table width="100%" cellspacing="1" cellpadding="0" class="info_tab2">
  25.         <tr>
  26.          
  27.             <th width="5%" style="height: 34px">
  28.                 ID
  29.             </th>
  30.             <th width="20%" style="height: 34px">
  31.                所属系所
  32.             </th>
  33.             <th width="10%" style="height: 34px">
  34.                 专业名称
  35.             </th> 
  36.             <th width="" style="height: 34px">
  37.               
  38.             </th>
  39.             <th width="" style="height: 34px">
  40.                操作
  41.             </th>
  42.            
  43.             
  44.         </tr>
  45.         <asp:Repeater ID="Repeater1" runat="server">
  46.             <ItemTemplate>
  47.                 <tr>
  48.                     <td>
  49.                         &nbsp;<%# Eval("id").ToString()%>
  50.                     </td>
  51.                     <td>
  52.                         &nbsp;<%# Eval("col").ToString()%>
  53.                     </td>
  54.                     <td>
  55.                         &nbsp;<%# Eval("pro").ToString()%>
  56.                     </td>
  57.                      <td>
  58.                         &nbsp;
  59.                     </td>
  60.                     <td>
  61.                         &nbsp;<a href="admin_res_Pro_Add.aspx?action=edit&id=<%# Eval("id").ToString()%>">修改</a>|<a href="admin_res_Pro_Add.aspx?action=del&id=<%# Eval("id").ToString()%>" onclick="return confirm('确实要删除吗')" >删除</a>
  62.                     </td>
  63.                    
  64.                 </tr>
  65.             </ItemTemplate>
  66.         </asp:Repeater>
  67.          
  68.     </table>    
  69.                 <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">
  70.             </webdiyer:AspNetPager>
  71.     <h1>
  72.         &nbsp;</h1>
  73.     </form>
  74.     <script type="text/javascript">
  75.     $(function () {
  76.  $("#form1").validate({
  77.    errorElement :"div",// 使用"div"标签标记错误, 默认:"label"
  78.   wrapper:"li",// 使用"li"标签再把上边的errorELement包起来
  79.   errorClass :"validate-error",// 错误提示的css类名"error"
  80.   onsubmit:true,// 是否在提交是验证,默认:true
  81. //  onfocusout:true,// 是否在获取焦点时验证,默认:true
  82. //  onkeyup :true,// 是否在敲击键盘时验证,默认:true
  83. //  onclick:false,// 是否在鼠标点击时验证(一般验证checkbox,radiobox)
  84.       rules: {
  85.                     txtPro: {// 需要进行验证的输入框name
  86.                         required: true// 验证条件:必填
  87.                     },
  88.                         ddlCol: {// 需要进行验证的输入框name
  89.                         required: true// 验证条件:必填
  90.                     }
  91.                 },
  92.                 messages: {
  93.                     txtPro: {
  94.                         required: "用户名不允许为空!"// 验证未通过的消息
  95.                     },
  96.                       ddlCol: {
  97.                         required: "必须选择一个系所!"// 验证未通过的消息
  98.                     }
  99.                 }
  100. });
  101. });
  102.     </script>
  103. </body>
  104. </html>