global_helplist.aspx
上传用户:wenllgg125
上传日期:2020-04-09
资源大小:7277k
文件大小:5k
源码类别:

SCSI/ASPI

开发平台:

Others

  1. <%@ Page Language="C#" Codebehind="global_helplist.aspx.cs" Inherits="Discuz.Web.Admin.helplist" %>
  2. <%@ Register TagPrefix="cc1" Namespace="Discuz.Control" Assembly="Discuz.Control" %>
  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.     <link href="../styles/datagrid.css" type="text/css" rel="stylesheet" />
  7.     <link href="../styles/dntmanager.css" type="text/css" rel="stylesheet" />
  8.     <link href="../styles/calendar.css" type="text/css" rel="stylesheet" />
  9.     <script type="text/javascript" src="../js/common.js"></script>
  10.     <script type="text/javascript">
  11.         function selectSubItem(form,checked,subid)
  12.         {
  13.             for (var i=0;i<form.elements.length;i++)
  14.             {
  15.                 var e = form.elements[i];
  16.                 if (e.id == "id" + subid)
  17.                    e.checked = checked;
  18.             }
  19.             checkedEnabledButton(form,'id','DelRec');
  20.         }
  21.         
  22.         function Check(form)
  23.         {
  24.             CheckAll(form);
  25.             checkedEnabledButton(form,'id','DelRec');
  26.         }
  27.     </script>
  28. <meta http-equiv="X-UA-Compatible" content="IE=7" />
  29. </head>
  30. <body>
  31.     <form id="form1" runat="server" action="">
  32.         <div class="ManagerForm">
  33.             <fieldset>
  34.                 <legend style="background: url(../images/icons/icon34.jpg) no-repeat 6px 50%;">帮助管理</legend>
  35.                 <div class="Navbutton">
  36.                     <table cellspacing="1" cellpadding="4" align="center" class="table1">
  37.                         <tbody>
  38.                             <tr>
  39.                                 <td>
  40.                                     <input title="选中/取消选中 本页所有Case" onclick="Check(this.form)" type="checkbox" name="chkall" id="chkall" />全选/取消全选 &nbsp;&nbsp;
  41.                                 </td>
  42.                             </tr>
  43.                         </tbody>
  44.                     </table>
  45.                 </div>
  46.                 <table width="100%" border="0">
  47.                     <tr>
  48.                         <td width="25%" align="center">标题</td>
  49.                         <td width="37%" align="center">排序号</td>
  50.                         <td width="25%" align="center">编辑</td>
  51.                     </tr>
  52.                     <%if (helpInfoList != null)
  53.                       {
  54.                           foreach (Discuz.Entity.HelpInfo hi in helpInfoList)
  55.                           {
  56.                               string kg = "", id;
  57.                               if (hi.Pid == 0)
  58.                               {
  59.                                   id = hi.Id.ToString();
  60.                               }
  61.                               else
  62.                               {
  63.                                   id = hi.Pid.ToString();
  64.                                   kg = "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";
  65.                               }
  66.                     %>
  67.                     <tr onmouseover="this.style.background='#ECFFE6'; " onmouseout="this.style.background=''; this.style.borderColor=''">
  68.                         <td align="left">
  69.                             <%=kg%>
  70.                             <input type="checkbox" name="id" value="<%=hi.Id%>" id="id<%=id%>" 
  71.                             onclick="<%if (hi.Pid == 0){%>selectSubItem(this.form,checked,<%=id%>)<%}else{%>checkedEnabledButton(form,'id','DelRec')<%}%>" />
  72.                             <a href="../../help.aspx?hid=<%=hi.Id%>" target="_blank"><%=hi.Title%></a>
  73.                         </td>
  74.                         <td align="center">
  75.                             <input type="text" size="3" maxlength="4" name="orderbyid" value="<%=hi.Orderby %>"
  76.                                 class="FormBase" onfocus="this.className='FormFocus';" onblur="this.className='FormBase';" />
  77.                             <input name="hidid" type="hidden" value="<%=hi.Id%>" /></td>
  78.                         <td align="center">
  79.                             <a href="global_edithelp.aspx?id=<%=hi.Id%>">编辑</a>
  80.                         </td>
  81.                     </tr>
  82.                         <%}%>
  83.                     <%}
  84.                       else
  85.                       {%>
  86.                     <tr>
  87.                         <td>没有数据</td>
  88.                     </tr>
  89.                     <%} %>
  90.                 </table>
  91.             </fieldset>
  92.             <p style="text-align:right;">
  93.                 <cc1:Button ID="Orderby" runat="server" Text=" 确 定 " ButtonImgUrl="../images/submit.gif"></cc1:Button>&nbsp;&nbsp;
  94.                 <cc1:Button ID="DelRec" runat="server" Text=" 删 除 " ButtonImgUrl="../images/del.gif" Enabled="false" OnClientClick="if(!confirm('你确认要删除所选的帮助项吗?')) return false;"></cc1:Button>&nbsp;&nbsp;
  95.                 <button type="button" class="ManagerButton" onclick="javascript:window.location.href='global_addhelpclass.aspx';">
  96.                     <img src="../images/add.gif" />添加分类
  97.                 </button>&nbsp;&nbsp;
  98.                 <button type="button" class="ManagerButton" onclick="javascript:window.location.href='global_addhelp.aspx';">
  99.                     <img src="../images/add.gif" />添加帮助
  100.                 </button>
  101.             </p>
  102.     </form>
  103.     <%=footer%>
  104. </body>
  105. </html>