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

行业应用

开发平台:

JavaScript

  1. <%@ page language="C#" autoeventwireup="true" inherits="Admin_admin_user_role, App_Web_p9n__skl" %>
  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.     <meta name="Generator" content="EditPlus">
  7.     <meta name="Author" content="hayden">
  8.     <meta name="Keywords" content="">
  9.     <meta name="Description" content="">
  10.     <script src="inc/admin.js" type="text/javascript"></script>
  11.     <script src="inc/showpage.js" type="text/javascript"></script>
  12.     <script src="../Admin/js/jquery-1.3.2.min.js" type="text/javascript"></script>
  13.     <link href="images/css.css" type="text/css" rel="stylesheet" />
  14.     <link href="images/admin_file_css.css" type="text/css" rel="stylesheet" />
  15.     <style type="text/css">
  16. .power_ul { width:90%;}
  17. .power_ul li {float:left; width:120px;font-weight: normal;padding-top:3px;padding-bottom:3px;}
  18. .power_ul fir {clear:left;font-weight: bold;border-bottom:1px dotted #CCCCCC;}
  19. .power_ul li .button {width:120px;text-align:left;padding-top:3px; text-indent:15px;}
  20. </style>
  21. </head>
  22. <body>
  23.     <form id="form1" runat="server">
  24.         <h1>
  25.             管理员权限信息添加</h1>
  26.         <h4>
  27.             <b>相关操作:</b> <a href="admin_user_Add.aspx">添加新管理员</a> |
  28.         </h4>
  29.         <div style="height: 3px; width: 100%; background: #fff;">
  30.         </div>
  31.         <table width="100%" cellspacing="1" cellpadding="0" class="info_tab">
  32.             <tr>
  33.                 <td class="art_info2 zq">
  34.                     <asp:HiddenField ID="hfcheck" runat="server" />
  35.                     帐号:bbb</td>
  36.             </tr>
  37.             <tr>
  38.                 <td class="art_info2 zq">
  39.                     姓名:bbb</td>
  40.             </tr>
  41.             <tr>
  42.                 <td class="art_info2 zq">
  43.                     <ul class="power_ul" id="power_id_1">
  44.                         <li style="clear: left">
  45.                             <input type="button" value="数据管理" onclick="power_chkll('power_id_1')" class="button"></li>
  46.                         <li>
  47.                             <input name='pID' type='checkbox' class="chek" id="Checkbox1" value="1031" style="border: 0px;">数据库备份</li>
  48.                         <li>
  49.                             <input name='pID' type='checkbox' class="chek" id="Checkbox2" value="1032" style="border: 0px;">数据库恢复</li>
  50.                         <li>
  51.                             <input name='pID' type='checkbox' class="chek" id="Checkbox3" value="1033" style="border: 0px;">数据库压缩</li>
  52.                     </ul>
  53.                     <ul class="power_ul" id="power_id_2">
  54.                         <li style="clear: left">
  55.                             <input type="button" value="管理员管理" onclick="power_chkll('power_id_2')" class="button"></li>
  56.                         <li>
  57.                             <input name='pID' type='checkbox' class="chek" id="Checkbox4" value="1041" style="border: 0px;">管理员查看</li>
  58.                         <li>
  59.                             <input name='pID' type='checkbox' class="chek" id="Checkbox5" value="1042" style="border: 0px;">管理员添加</li>
  60.                         <li>
  61.                             <input name='pID' type='checkbox' class="chek" id="Checkbox6" value="1043" style="border: 0px;">管理员修改</li>
  62.                         <li>
  63.                             <input name='pID' type='checkbox' class="chek" id="Checkbox7" value="1044" style="border: 0px;">管理员删除</li>
  64.                         <li>
  65.                             <input name='pID' type='checkbox' class="chek" id="Checkbox8" value="1045" style="border: 0px;">权限配制</li>
  66.                     </ul>
  67.                     <ul class="power_ul" id="power_id_3">
  68.                         <li style="clear: left">
  69.                             <input type="button" value="年届管理" onclick="power_chkll('power_id_3')" class="button"></li>
  70.                         <li>
  71.                             <input name='pID' type='checkbox' class="chek" id="Checkbox9" value="1201" style="border: 0px;">查看</li>
  72.                         <li>
  73.                             <input name='pID' type='checkbox' class="chek" id="Checkbox10" value="1202" style="border: 0px;">添加</li>
  74.                         <li>
  75.                             <input name='pID' type='checkbox' class="chek" id="Checkbox11" value="1203" style="border: 0px;">修改</li>
  76.                         <li>
  77.                             <input name='pID' type='checkbox' class="chek" id="Checkbox12" value="1204" style="border: 0px;">删除</li>
  78.                     </ul>
  79.                     <ul class="power_ul" id="power_id_4">
  80.                         <li style="clear: left">
  81.                             <input type="button" value="系所管理" onclick="power_chkll('power_id_4')" class="button"></li>
  82.                         <li>
  83.                             <input name='pID' type='checkbox' class="chek" id="Checkbox13" value="1211" style="border: 0px;">查看</li>
  84.                         <li>
  85.                             <input name='pID' type='checkbox' class="chek" id="Checkbox14" value="1212" style="border: 0px;">添加</li>
  86.                         <li>
  87.                             <input name='pID' type='checkbox' class="chek" id="Checkbox15" value="1213" style="border: 0px;">修改</li>
  88.                         <li>
  89.                             <input name='pID' type='checkbox' class="chek" id="Checkbox16" value="1214" style="border: 0px;">删除</li>
  90.                     </ul>
  91.                     <ul class="power_ul" id="power_id_5">
  92.                         <li style="clear: left">
  93.                             <input type="button" value="专业管理" onclick="power_chkll('power_id_5')" class="button"></li>
  94.                         <li>
  95.                             <input name='pID' type='checkbox' class="chek" id="Checkbox17" value="1221" style="border: 0px;">查看</li>
  96.                         <li>
  97.                             <input name='pID' type='checkbox' class="chek" id="Checkbox18" value="1222" style="border: 0px;">添加</li>
  98.                         <li>
  99.                             <input name='pID' type='checkbox' class="chek" id="Checkbox19" value="1223" style="border: 0px;">修改</li>
  100.                         <li>
  101.                             <input name='pID' type='checkbox' class="chek" id="Checkbox20" value="1224" style="border: 0px;">删除</li>
  102.                     </ul>
  103.                     <ul class="power_ul" id="power_id_6">
  104.                         <li style="clear: left">
  105.                             <input type="button" value="班级管理" onclick="power_chkll('power_id_6')" class="button"></li>
  106.                         <li>
  107.                             <input name='pID' type='checkbox' class="chek" id="Checkbox21" value="1231" style="border: 0px;">查看</li>
  108.                         <li>
  109.                             <input name='pID' type='checkbox' class="chek" id="Checkbox22" value="1232" style="border: 0px;">添加</li>
  110.                         <li>
  111.                             <input name='pID' type='checkbox' class="chek" id="Checkbox23" value="1233" style="border: 0px;">修改</li>
  112.                         <li>
  113.                             <input name='pID' type='checkbox' class="chek" id="Checkbox24" value="1234" style="border: 0px;">删除</li>
  114.                     </ul>
  115.                     <ul class="power_ul" id="power_id_7">
  116.                         <li style="clear: left">
  117.                             <input type="button" value="学生档案" onclick="power_chkll('power_id_7')" class="button"></li>
  118.                         <li>
  119.                             <input name='pID' type='checkbox' class="chek" id="Checkbox25" value="1281" style="border: 0px;">查看</li>
  120.                         <li>
  121.                             <input name='pID' type='checkbox' class="chek" id="Checkbox26" value="1282" style="border: 0px;">添加</li>
  122.                         <li>
  123.                             <input name='pID' type='checkbox' class="chek" id="Checkbox27" value="1283" style="border: 0px;">修改</li>
  124.                         <li>
  125.                             <input name='pID' type='checkbox' class="chek" id="Checkbox28" value="1284" style="border: 0px;">删除</li>
  126.                         <li>
  127.                             <input name='pID' type='checkbox' class="chek" id="Checkbox29" value="1285" style="border: 0px;">上传导入</li>
  128.                     </ul>
  129.                     <ul class="power_ul">
  130.                         <li>
  131.                             <input id="power_chkllAll" class="button" type="button" value="全选/取消"></li></ul>
  132.                 </td>
  133.             </tr>
  134.             <tr>
  135.                 <td class="art_info2">
  136.                     <input runat="Server" type="submit" style="margin-left: 20px;" value="确定" id="Submit1" onserverclick="Submit1_ServerClick"><input
  137.                         type="reset"></td>
  138.             </tr>
  139.             <input type="hidden" name="id" value="7">
  140.         </table>
  141.         <h1>
  142.             &nbsp;</h1>
  143.     </form>
  144.     <script type="text/javascript">
  145.   $(function () {
  146.     $("#power_chkllAll").toggle(function () {
  147.        $("input[type='checkbox']").each(function (index, domEle) { 
  148.   // domEle == this 
  149.   $(domEle).attr("checked", "true");  
  150.   } );
  151.     },function () {
  152.            $("input[type='checkbox']").each(function (index, domEle) { 
  153.   // domEle == this 
  154.   $(domEle).attr("checked", "");  
  155.   } );
  156.     });
  157.     
  158.     //检查用户权限
  159.        $("input[type='checkbox']").each(function (index, domEle) { 
  160.   // domEle == this
  161.   var aa=$("#hfcheck").val();
  162.   if (aa!="") { 
  163.   var checkValue=","+ $(domEle).val()+",";
  164.   if (aa.indexOf(checkValue)!=-1) {
  165.        $(domEle).attr("checked","true");
  166.   }
  167.   } 
  168.   } );
  169.     });
  170.        
  171.        
  172.     
  173.   
  174.       
  175.     </script>
  176. </body>
  177. </html>