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

SCSI/ASPI

开发平台:

Others

  1. <%@ Page language="c#" Codebehind="aggregation_rotatepic.aspx.cs" Inherits="Discuz.Web.Admin.aggregation_rotatepic" %>
  2. <%@ Register TagPrefix="cc1" Namespace="Discuz.Control" Assembly="Discuz.Control" %>
  3. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
  4. <html>
  5. <head>
  6. <title>聚合轮换图片管理</title>
  7. <link href="../styles/datagrid.css" type="text/css" rel="stylesheet" />
  8. <script type="text/javascript" src="../js/common.js"></script>
  9. <link href="../styles/dntmanager.css" type="text/css" rel="stylesheet" />        
  10. <link href="../styles/modelpopup.css" type="text/css" rel="stylesheet" />
  11. <script type="text/javascript" src="../js/modalpopup.js"></script>
  12. <script type="text/javascript">
  13. function Check(form)
  14. {
  15. CheckAll(form);
  16. checkedEnabledButton(form,'rowid','DelRec');
  17. }
  18. </script>
  19. <meta http-equiv="X-UA-Compatible" content="IE=7" />
  20. </head>
  21. <body>
  22. <form id="Form1" method="post" runat="server">
  23. <cc1:datagrid id="DataGrid1" runat="server" IsFixConlumnControls="true" OnPageIndexChanged="DataGrid_PageIndexChanged" OnSortCommand="Sort_Grid">
  24. <Columns>
  25. <asp:TemplateColumn HeaderText="<input title='选中/取消' onclick='Check(this.form)' type='checkbox' name='chkall' id='chkall' />">
  26. <HeaderStyle Width="20px" />
  27. <ItemTemplate>
  28. <input id="rowid" onclick="checkedEnabledButton(this.form,'rowid','DelRec')" type="checkbox" value="<%# DataBinder.Eval(Container, "DataItem.rowid").ToString() %>" name="rowid" />
  29. <%# DataGrid1.LoadSelectedCheckBox(DataBinder.Eval(Container, "DataItem.rowid").ToString())%>
  30. </ItemTemplate>
  31. </asp:TemplateColumn>
  32. <asp:BoundColumn DataField="rotatepicid" HeaderText="序号[递增]"></asp:BoundColumn>
  33. <asp:BoundColumn DataField="img"  HeaderText="图片路径"></asp:BoundColumn>
  34. <asp:BoundColumn DataField="url" HeaderText="点击链接"></asp:BoundColumn>
  35. <asp:BoundColumn DataField="titlecontent"  HeaderText="说明文字"></asp:BoundColumn>
  36. <asp:TemplateColumn HeaderText="图片"><HeaderStyle Width="10%" />
  37. <ItemTemplate>
  38. <img src ="<%# DataBinder.Eval(Container, "DataItem.img").ToString() %>" height="25" width="25"  border="0px" />
  39. </ItemTemplate>
  40. </asp:TemplateColumn>
  41. </Columns>
  42. </cc1:datagrid>
  43. <p style="text-align:right;">
  44.     <a target="_blank" href="../global/thumbnailremoteimage.aspx?w=320&h=240">缩略图生成工具</a>
  45. <cc1:Button id="SaveRotatepic" runat="server" Text="保存轮换图片修改"></cc1:Button>&nbsp;&nbsp;
  46. <cc1:Button id="DelRec" runat="server" Text=" 删 除 " ButtonImgUrl="../images/del.gif" Enabled="false" OnClientClick="if(!confirm('你确认要删除所选图片吗?')) return false;"></cc1:Button>
  47. </p>
  48. <div class="ManagerForm">
  49. <fieldset>
  50. <legend style="background:url(../images/icons/icon4.jpg) no-repeat 6px 50%;">添加聚合轮换图片</legend>
  51. <table width="100%">
  52. <tr><td class="item_title" colspan="2">图片路径</td></tr>
  53. <tr>
  54. <td class="vtop rowform">
  55.  <cc1:TextBox runat="server" ID="rotaimg" />
  56. </td>
  57. <td class="vtop"></td>
  58. </tr>
  59. <tr><td class="item_title" colspan="2">点击链接</td></tr>
  60. <tr>
  61. <td class="vtop rowform">
  62.  <cc1:TextBox runat="server" ID="url" />
  63. </td>
  64. <td class="vtop"></td>
  65. </tr>
  66. <tr><td class="item_title" colspan="2">说明文字</td></tr>
  67. <tr>
  68. <td class="vtop rowform">
  69.   <cc1:TextBox runat="server" ID="titlecontent" />
  70. </td>
  71. <td class="vtop"></td>
  72. </tr>
  73. </table>
  74. <cc1:Hint id="Hint1" runat="server" HintImageUrl="../images"></cc1:Hint>
  75. <div class="Navbutton">
  76. <cc1:Button id="addrota" runat="server" Text=" 增 加 " ButtonImgUrl="../images/add.gif"></cc1:Button>
  77. </div>
  78. </fieldset>
  79. </div>
  80. </form>
  81. <%=footer%>
  82. </body>
  83. </html>