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

SCSI/ASPI

开发平台:

Others

  1. <%@ Page Language="c#" AutoEventWireup="true" CodeBehind="global_passportmanage.aspx.cs" Inherits="Discuz.Web.Admin.global_passportmanage" %>
  2. <%@ Register TagPrefix="cc1" Namespace="Discuz.Control" Assembly="Discuz.Control" %>
  3. <%@ Register TagPrefix="uc1" TagName="PageInfo" Src="../UserControls/PageInfo.ascx" %>
  4. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  5. <html xmlns="http://www.w3.org/1999/xhtml" >
  6. <head runat="server">
  7. <title>整合程序设置</title>
  8. <link href="../styles/dntmanager.css" type="text/css" rel="stylesheet" />
  9. <link href="../styles/datagrid.css" type="text/css" rel="stylesheet" />
  10. <script type="text/javascript" src="../js/common.js"></script>
  11. <script type="text/javascript" src="../js/AjaxHelper.js"></script>
  12. <script type="text/javascript">
  13. function setAllowPassport(thevalue)
  14. {
  15. var url = "allowpassport=" + thevalue;
  16. var result = getReturn('global_ajaxcall.aspx?opname=setapp&' + url);
  17. if(result == "ok")
  18. {
  19. $("passportbody").style.display = thevalue == "1" ? "block" : "none";
  20. }
  21. }
  22. function Check(form)
  23. {
  24. CheckAll(form);
  25. checkedEnabledButton(form,'apikey','DelRec');
  26. }
  27. </script>
  28. <meta http-equiv="X-UA-Compatible" content="IE=7" />
  29. </head>
  30. <body>
  31. <form id="form1" runat="server">
  32. <table width="100%">
  33. <tr><td class="item_title">启用整合程序</td></tr>
  34. <tr>
  35. <td class="vtop">
  36. <cc1:RadioButtonList ID="allowpassport" runat="server" RepeatColumns="2">
  37. <asp:ListItem Value="1">是</asp:ListItem>
  38. <asp:ListItem Value="0" Selected="true">否</asp:ListItem>
  39. </cc1:RadioButtonList>
  40. </td>
  41. </tr>
  42. </table>
  43. <div id="passportbody" runat="server">
  44. <uc1:PageInfo id="info1" runat="server" Icon="Information" Text="请妥善保管API Key和密钥,否则会带来严重的安全隐患,在真实环境中请务必配置IP地址访问限制"></uc1:PageInfo>
  45. <cc1:DataGrid ID="DataGrid1" runat="server">
  46. <Columns>
  47. <asp:TemplateColumn HeaderText="<input title='选中/取消' onclick='Check(this.form)' type='checkbox' name='chkall' id='chkall' />">
  48. <HeaderStyle Width="20px" />
  49. <ItemTemplate>
  50. <input id="apikey" onclick="checkedEnabledButton(this.form,'apikey','DelRec')" type="checkbox" value="<%# DataBinder.Eval(Container, "DataItem.apikey").ToString() %>" name="apikey" />
  51. </ItemTemplate>
  52. </asp:TemplateColumn>
  53. <asp:TemplateColumn HeaderText="">
  54. <ItemTemplate>
  55. <a href="global_passportsetting.aspx?apikey=<%# DataBinder.Eval(Container, "DataItem.apikey").ToString()%>">编辑</a>
  56. </ItemTemplate>
  57. </asp:TemplateColumn>
  58. <asp:BoundColumn DataField="appname" HeaderText="应用程序名称" />
  59. <asp:BoundColumn DataField="apptype" HeaderText="应用程序类型" />
  60. <asp:BoundColumn DataField="callbackurl" HeaderText="返回地址" />
  61. <asp:BoundColumn DataField="apikey" HeaderText="API Key" />
  62. <asp:BoundColumn DataField="secret" HeaderText="密钥" />
  63. </Columns>
  64. </cc1:DataGrid>
  65. <p style="text-align:right;">
  66. <cc1:Button ID="DelRec" runat="server" Text=" 删 除 " ButtonImgUrl="../images/del.gif" OnClick="DelRec_Click" Enabled="false" OnClientClick="if(!confirm('你确认要删除所选的整合程序吗?')) return false;"></cc1:Button>&nbsp;&nbsp;
  67. <button type="button" class="ManagerButton" onclick="javascript:window.location.href='global_passportsetting.aspx';">
  68. <img src="../images/add.gif" />添加整合程序设置
  69. </button>
  70. </p>
  71. </div>
  72. </form>
  73. <%=footer%>
  74. </body>
  75. </html>