admin_res_Pro.aspx
上传用户:szhf331
上传日期:2022-06-22
资源大小:1032k
文件大小:5k
- <%@ page language="C#" autoeventwireup="true" inherits="Admin_admin_res_yea, App_Web_-xa8ffcb" %>
- <%@ 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" />
- </head>
- <body>
- <form id="form1" runat="server">
- <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>
- <h1>
- 专业信息管理</h1>
- <h4>
- <b>相关操作:</b> <a href="admin_res_Pro_Add.aspx">添加新专业</a> | <a href="admin_res_Pro.aspx">专业列表管理</a>
- </h4>
- <h5>
<ul>
<li>系 所 <asp:DropDownList ID="ddlCol" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlCol_SelectedIndexChanged">
- </asp:DropDownList>
</li></ul>
</h5>
- <div style="height: 3px; width: 100%; background: #fff;">
- </div>
- <table width="100%" cellspacing="1" cellpadding="0" class="info_tab2">
- <tr>
-
- <th width="5%" style="height: 34px">
- ID
- </th>
- <th width="20%" style="height: 34px">
- 所属系所
- </th>
- <th width="10%" style="height: 34px">
- 专业名称
- </th>
- <th width="" style="height: 34px">
-
- </th>
- <th width="" style="height: 34px">
- 操作
- </th>
-
-
- </tr>
- <asp:Repeater ID="Repeater1" runat="server">
- <ItemTemplate>
- <tr>
- <td>
- <%# Eval("id").ToString()%>
- </td>
- <td>
- <%# Eval("col").ToString()%>
- </td>
- <td>
- <%# Eval("pro").ToString()%>
- </td>
- <td>
-
- </td>
- <td>
- <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>
- </td>
-
- </tr>
- </ItemTemplate>
- </asp:Repeater>
-
- </table>
- <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>
- <h1>
- </h1>
- </form>
- <script type="text/javascript">
- $(function () {
- $("#form1").validate({
- errorElement :"div",// 使用"div"标签标记错误, 默认:"label"
- wrapper:"li",// 使用"li"标签再把上边的errorELement包起来
- errorClass :"validate-error",// 错误提示的css类名"error"
- onsubmit:true,// 是否在提交是验证,默认:true
- // onfocusout:true,// 是否在获取焦点时验证,默认:true
- // onkeyup :true,// 是否在敲击键盘时验证,默认:true
- // onclick:false,// 是否在鼠标点击时验证(一般验证checkbox,radiobox)
- rules: {
- txtPro: {// 需要进行验证的输入框name
- required: true// 验证条件:必填
- },
- ddlCol: {// 需要进行验证的输入框name
- required: true// 验证条件:必填
- }
- },
- messages: {
- txtPro: {
- required: "用户名不允许为空!"// 验证未通过的消息
- },
- ddlCol: {
- required: "必须选择一个系所!"// 验证未通过的消息
- }
- }
- });
- });
- </script>
- </body>
- </html>