<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="API.aspx.cs" Inherits="TopWinCMS.WebUI.Admin.ControlPanel.API" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>API整合接口</title>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
    <meta content="no-cache" http-equiv="Pragma" />

    <script language="javascript" type="text/javascript" src="../TopWin.js"></script>

    <link href="../Style.css" rel="stylesheet" type="text/css" />

    <script language="javascript" src="../../Images/skysoft.js" type="text/javascript"></script>

    <style type="text/css">
        .RowTitle
        {
            width: 200px;
        }
        /*#Tab1
        {
            display:none1;
        } */
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <fieldset>
                <legend>全局设置</legend>
                <table width="100%" id="Tab0" cellpadding="6">
                    <tr>
                        <td class="RowTitle">
                            是否开启多系统整合：
                        </td>
                        <td>
                            <asp:CheckBox ID="CB_Enable" runat="server" />
                        </td>
                    </tr>
                    <tr>
                        <td class="RowTitle">
                            本站标识：
                        </td>
                        <td>
                            <asp:TextBox ID="TB_MyID" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="RowTitle">
                            密钥：
                        </td>
                        <td>
                            <asp:TextBox ID="TB_Key" runat="server"></asp:TextBox>
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2" style="text-align: center">
                            <asp:Button ID="BT_Save" runat="server" Text="保存" CssClass="btn" OnClick="BT_Save_Click" />
                        </td>
                    </tr>
                </table>
            </fieldset>
            <br />
            <fieldset>
                <legend>多系统接口设置</legend>
                <table width="100%" id="Tab1" cellpadding="6">
                    <tr>
                        <td>
                            <asp:GridView ID="GV_List" runat="server" AutoGenerateColumns="False" Width="100%"
                                OnRowCancelingEdit="GV_List_RowCancelingEdit" OnRowDeleting="GV_List_RowDeleting"
                                OnRowEditing="GV_List_RowEditing" OnRowUpdating="GV_List_RowUpdating">
                                <HeaderStyle CssClass="HeaderStyle" />
                                <Columns>
                                    <asp:BoundField DataField="AppID" HeaderText="标识" ReadOnly="True" >
                                      <HeaderStyle Width="120px" />
                                        <ItemStyle Width="120px" />
                                    </asp:BoundField>
                               
                                    <asp:TemplateField HeaderText="接口URL">
                                        <EditItemTemplate>
                                            <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("Url") %>' Width="90%"></asp:TextBox>
                                        </EditItemTemplate>
                                        <ItemTemplate>
                                            <asp:Label ID="Label2" runat="server" Text='<%# Bind("Url") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:CommandField ShowEditButton="True">
                                        <HeaderStyle Width="60px" />
                                        <ItemStyle HorizontalAlign="Center" />
                                    </asp:CommandField>
                                    <asp:CommandField ShowDeleteButton="True">
                                        <HeaderStyle Width="60px" />
                                        <ItemStyle HorizontalAlign="Center" />
                                    </asp:CommandField>
                                </Columns>
                            </asp:GridView>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <table width="700" id="Table1" cellpadding="6">
                                <tr>
                                    <td class="RowTitle">
                                        标识：
                                    </td>
                                    <td>
                                        <asp:TextBox ID="TB_ID" runat="server"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="RowTitle">
                                        接口URL：
                                    </td>
                                    <td>
                                        <asp:TextBox ID="TB_URL" runat="server" Width="451px"></asp:TextBox>
                                    </td>
                                </tr>
                            </table>
                            <div style="text-align: center; margin-top: 6px">
                                <asp:Button ID="BT_Add" runat="server" Text="添加" CssClass="btn" OnClick="BT_Add_Click" /></div>
                        </td>
                    </tr>
                </table>
            </fieldset>
        </ContentTemplate>
    </asp:UpdatePanel>
    </form>
</body>
</html>
