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

SCSI/ASPI

开发平台:

Others

  1. <%@ Page Language="c#" Inherits="Discuz.Web.Admin.forumlinksgrid" Codebehind="global_forumlinksgrid.aspx.cs"%>
  2. <%@ Register TagPrefix="cc1" Namespace="Discuz.Control" Assembly="Discuz.Control" %>
  3. <%@ Register TagPrefix="cc2" Namespace="Discuz.Control" Assembly="Discuz.Control" %>
  4. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  5. <html>
  6. <head>
  7. <title>友情链接列表</title>
  8. <link href="../styles/datagrid.css" type="text/css" rel="stylesheet" />
  9. <script type="text/javascript" src="../js/common.js"></script>
  10. <link href="../styles/dntmanager.css" type="text/css" rel="stylesheet" />
  11. <link href="../styles/modelpopup.css" type="text/css" rel="stylesheet" />
  12. <script type="text/javascript" src="../js/modalpopup.js"></script>
  13. <script type="text/javascript">
  14. function Check(form)
  15. {
  16. CheckAll(form);
  17. checkedEnabledButton(form,'delid','DelRec');
  18. }
  19. </script>
  20. <meta http-equiv="X-UA-Compatible" content="IE=7" />
  21. </head>
  22. <body>
  23. <form id="Form1" method="post" runat="server">
  24. <cc1:DataGrid ID="DataGrid1" runat="server" IsFixConlumnControls="true" OnPageIndexChanged="DataGrid_PageIndexChanged" OnSortCommand="Sort_Grid">
  25. <Columns>
  26. <asp:TemplateColumn HeaderText="<input title='选中/取消' onclick='Check(this.form)' type='checkbox' name='chkall' id='chkall' />">
  27. <HeaderStyle Width="20px" />
  28. <ItemTemplate>
  29. <input id="delid" onclick="checkedEnabledButton(this.form,'delid','DelRec')" type="checkbox" value="<%# DataBinder.Eval(Container, "DataItem.id").ToString() %>" name="delid" />
  30. <%# DataGrid1.LoadSelectedCheckBox(DataBinder.Eval(Container, "DataItem.id").ToString())%>
  31. </ItemTemplate>
  32. </asp:TemplateColumn>
  33. <asp:BoundColumn DataField="id" SortExpression="id" HeaderText="id [递增]" Visible="false" />
  34. <asp:BoundColumn DataField="displayorder" SortExpression="displayorder" HeaderText="显示顺序" />
  35. <asp:BoundColumn DataField="name" SortExpression="name" HeaderText="名称" />
  36. <asp:BoundColumn DataField="url" SortExpression="url" HeaderText="链接地址" />
  37. <asp:BoundColumn DataField="note" SortExpression="note" HeaderText="说明" />
  38. <asp:BoundColumn DataField="logo" SortExpression="logo" HeaderText="LOGO" />
  39. <asp:TemplateColumn HeaderText="图片">
  40. <headerstyle width="10%" />
  41. <ItemTemplate>
  42. <%# LogoStr(DataBinder.Eval(Container, "DataItem.LOGO").ToString())%>
  43. </ItemTemplate>
  44. </asp:TemplateColumn>
  45. </Columns>
  46. </cc1:DataGrid>
  47. <p style="text-align:right;">
  48. <cc1:Button ID="SaveFriend" runat="server" Text="保存友情链接修改"></cc1:Button>&nbsp;&nbsp;
  49. <button type="button" class="ManagerButton" id="Button2" onclick="BOX_show('neworedit');"><img src="../images/add.gif"/> 新建友情链接 </button>&nbsp;&nbsp;
  50. <cc1:Button ID="DelRec" runat="server" Text=" 删 除 " ButtonImgUrl="../images/del.gif" Enabled="false" OnClientClick="if(!confirm('你确认要删除所选的友情链接吗?')) return false;"></cc1:Button>
  51. </p>
  52. </form>
  53. <div id="BOX_overlay" style="background: #000; position: absolute; z-index:100; filter:alpha(opacity=50);-moz-opacity: 0.6;opacity: 0.6;"></div>
  54. <div id="neworedit" style="display: none; background :#fff; padding:10px; border:1px solid #999; width:450px;">
  55. <div class="ManagerForm">
  56. <form method="post" name="form2" id="form2" action="global_forumlinksgrid.aspx">
  57. <fieldset>
  58. <legend style="background: url(../images/icons/icon4.jpg) no-repeat 6px 50%;">添加友情链接</legend>
  59. <table cellspacing="0" cellpadding="4" cellspacing="4" width="100%" align="center">
  60. <tr>
  61. <td style="width: 70px;height:35px;">名称:</td>
  62. <td>
  63. <input name="name" type="text" id="name" maxlength="100" class="txt"/>(必填)
  64. </td>
  65. </tr>
  66. <tr>
  67. <td style="height:35px;">链接地址:</td>
  68. <td>
  69. <input name="url" type="text" id="url" maxlength="100" class="txt" />
  70. </td>
  71. </tr>
  72. <tr>
  73. <td style="height:35px;">LOGO:</td>
  74. <td>
  75. <input name="logo" type="text" title="当LOGO为空时,友情链接以文字方式显示" id="logo" maxlength="100" class="txt"/>
  76. </td>
  77. </tr>
  78. <tr>
  79. <td style="height:35px;">显示顺序:</td>
  80. <td>
  81. <input name="displayorder" type="text" title="当显示顺序为0时, 则不显示当前链接" maxlength="8" size="4" id="displayorder" class="txt" value="1" maxlength="4" />(必填)
  82. </td>
  83. </tr>
  84. <tr>
  85. <td style="height:35px;">说明:</td>
  86. <td>
  87. <input name="note" type="text" title="当说明为空时, 友情链接以横排方式显示" id="note" maxlength="200" class="txt" />
  88. </td>
  89. </tr>
  90. </table>
  91. <div class="Navbutton">
  92. <button type="button" class="ManagerButton" id="AddNewRec" onclick="javascript:document.form2.submit();"><img src="../images/add.gif" />提 交</button>&nbsp;&nbsp;&nbsp;&nbsp;
  93. <button type="button" class="ManagerButton" id="Button1" onclick="BOX_remove('neworedit');"><img src="../images/state1.gif"/> 取 消 </button>
  94. </div>
  95. </fieldset>
  96. </form>
  97. </div>
  98. </div>
  99. <div id="setting" />
  100. <cc1:Hint ID="Hint1" runat="server" HintImageUrl="../images"></cc1:Hint>
  101. <%=footer%>
  102. </body>
  103. </html>