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

SCSI/ASPI

开发平台:

Others

  1. <%@ Page language="c#" Inherits="Discuz.Web.Admin.templatevariable" Codebehind="global_templatevariable.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. <link href="../styles/dntmanager.css" type="text/css" rel="stylesheet" />     
  10. <script type="text/javascript" src="../js/common.js"></script>
  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. <b>当前模板: <%=Request.Params["templatename"]%></b>    
  25. <cc1:datagrid id="DataGrid1" runat="server" IsFixConlumnControls="true" OnPageIndexChanged="DataGrid_PageIndexChanged" OnSortCommand="Sort_Grid">
  26. <Columns>
  27. <asp:TemplateColumn HeaderText="<input title='选中/取消' onclick='Check(this.form)' type='checkbox' name='chkall' id='chkall' />">
  28. <HeaderStyle Width="20px" />
  29. <ItemTemplate>
  30. <input id="delid" onclick="checkedEnabledButton(this.form,'delid','DelRec')" type="checkbox" value="<%# DataBinder.Eval(Container, "DataItem.id").ToString() %>" name="delid" />
  31. <%# DataGrid1.LoadSelectedCheckBox(DataBinder.Eval(Container, "DataItem.id").ToString())%>
  32. </ItemTemplate>
  33. </asp:TemplateColumn>
  34. <asp:BoundColumn DataField="id" SortExpression="id" HeaderText="ID [递增]" Visible="false" ></asp:BoundColumn>
  35. <asp:BoundColumn DataField="variablename"  SortExpression="variablename" HeaderText="变量名称"></asp:BoundColumn>
  36. <asp:BoundColumn DataField="variablevalue" SortExpression="variablevalue" HeaderText="变量值"></asp:BoundColumn>
  37. </Columns>
  38. </cc1:datagrid>
  39. <p style="text-align:right;">
  40. <cc1:Button ID="SaveVar" runat="server" Text="保存变量修改"></cc1:Button>&nbsp;&nbsp;
  41. <button type="button" class="ManagerButton" id="Button2" onclick="BOX_show('neworedit');"><img src="../images/add.gif"/> 新建变量 </button>&nbsp;&nbsp;
  42. <cc1:Button ID="DelRec" runat="server" Text=" 删 除 " ButtonImgUrl="../images/del.gif" Enabled="false"></cc1:Button>&nbsp;&nbsp;
  43. <button type="button" class="ManagerButton" onclick="javascript:window.location.href='global_templatetree.aspx?templateid=<%=Request.Params["templageid"]%>&path=<%=Request.Params["path"]%>&templatename=<%=Request.Params["templatename"]%>';"><img src="../images/arrow_undo.gif" /> 返 回 </button>
  44. </p>
  45. <div id="BOX_overlay" style="background: #000; position: absolute; z-index:100; filter:alpha(opacity=50);-moz-opacity: 0.6;opacity: 0.6;"></div>
  46. <div id="neworedit" style="display: none; background :#fff; padding:10px; border:1px solid #999; width:350px;">
  47. <div class="ManagerForm">
  48. <fieldset>
  49. <legend style="background:url(../images/icons/legendimg.jpg) no-repeat 6px 50%;">添加变量</legend>
  50. <table width="100%">
  51. <tr><td class="item_title" colspan="2">变量名称</td></tr>
  52. <tr>
  53. <td class="vtop rowform">
  54.  <cc2:TextBox id="variablename" runat="server" RequiredFieldType="暂无校验" width="200"></cc2:TextBox>
  55. </td>
  56. <td class="vtop"></td>
  57. </tr>
  58. <tr><td class="item_title" colspan="2">变量值</td></tr>
  59. <tr>
  60. <td class="vtop rowform">
  61.  <cc2:TextBox id="variablevalue" runat="server" RequiredFieldType="暂无校验" width="200"></cc2:TextBox>
  62. </td>
  63. <td class="vtop"></td>
  64. </tr>
  65. </table>
  66. <div class="Navbutton">
  67. <cc1:Button id="AddNewRec" runat="server" Text=" 提 交 "></cc1:Button>&nbsp;&nbsp;
  68. <button type="button" class="ManagerButton" id="Button1" onclick="BOX_remove('neworedit');"><img src="../images/state1.gif"/> 取 消 </button>
  69. </div>
  70. </fieldset>
  71. </div>
  72. </div>
  73. </form>
  74. <div id="setting" />
  75. <%=footer%>
  76. </body>
  77. </html>