<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="LoginType.aspx.cs" Inherits="XpShop.Manage.LoginType" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>
    <title>快捷登入设置</title>
    <!--#include file="inc/head.inc"-->
</head>
<body>
    <div class="container">
        <div class="sub_container">
            <div class="sub_container_title">
                <a href="../default.aspx" target="_blank">桌面</a><img src="images/admin_title.jpg"
                    height="9px" width="8px" align="absmiddle" />
                <% if (this.Request.QueryString["Action"] == "Manage")
                   {%>支付方式列表<%} if (this.Request.QueryString["Action"] == "Add" | this.Request.QueryString["Action"] == "Modify")
                   {%>支付方式添加<%}%></div>
            <div class="sub_container_content">
                <form id="Form1" method="post" runat="server">
                <div class="frame">
                    <div class="frame_title">
                        <asp:Label ID="lblAction" runat="server" CssClass="tableHeaderText"></asp:Label></div>
                    <div class="frame_content">
                        <% if (this.Request.QueryString["Action"] == "Manage")
                           {%>
                        <table class="tableBorder" cellspacing="0" cellpadding="0" width="98%" align="center"
                            border="0">
                            <tr>
                                <td class="forumRowHighlight" height="23">
                                    <asp:DataGrid ID="dgPayment" runat="server" HeaderStyle-CssClass="summary-title"
                                        HorizontalAlign="Center" Width="100%" DataKeyField="ShlonID" AutoGenerateColumns="False"
                                        PagerStyle-Mode="NumericPages" AllowPaging="False">
                                        <HeaderStyle Font-Bold="True"></HeaderStyle>
                                        <Columns>
                                            <asp:TemplateColumn HeaderText="序号">
                                                <HeaderStyle HorizontalAlign="Left"></HeaderStyle>
                                                <ItemStyle HorizontalAlign="Left" Width="50px"></ItemStyle>
                                                <ItemTemplate>
                                                    <%# DataBinder.Eval(Container.DataItem, "ShlonID")%>
                                                </ItemTemplate>
                                            </asp:TemplateColumn>
                                            <asp:TemplateColumn HeaderText="开放平台名称">
                                                <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
                                                <ItemStyle HorizontalAlign="Center"></ItemStyle>
                                                <ItemTemplate>
                                                    <%# DataBinder.Eval(Container.DataItem, "ShlonName")%>
                                                </ItemTemplate>
                                            </asp:TemplateColumn>
                                            <asp:TemplateColumn HeaderText="回调页面">
                                                <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
                                                <ItemStyle HorizontalAlign="Center"></ItemStyle>
                                                <ItemTemplate>
                                                    <%# DataBinder.Eval(Container.DataItem, "ShlonCallback").ToString()%>
                                                </ItemTemplate>
                                            </asp:TemplateColumn>
                                            <asp:TemplateColumn HeaderText="状态">
                                                <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
                                                <ItemStyle HorizontalAlign="Center"></ItemStyle>
                                                <ItemTemplate>
                                                    <a href='LoginType.aspx?Action=ChangeShlonStatus&ShlonID=<%# DataBinder.Eval(Container.DataItem, "ShlonID") %>&Status=<%# DataBinder.Eval(Container.DataItem, "ShlonStatus") %>'>
                                                        <img src='./images/publish_<%# DataBinder.Eval(Container.DataItem, "ShlonStatus") %>.png'
                                                            border="0" alt='<%# (DataBinder.Eval(Container.DataItem, "ShlonStatus").ToString() == "1") ? "使用中" : "暂不使用" %>'></a>
                                                </ItemTemplate>
                                            </asp:TemplateColumn>
                                            <asp:TemplateColumn>
                                                <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
                                                <ItemStyle HorizontalAlign="Center"></ItemStyle>
                                                <ItemTemplate>
                                                    <a href='LoginType.aspx?Action=Modify&ShlonID=<%# DataBinder.Eval(Container.DataItem, "ShlonID") %>'>
                                                        修改</a>
                                                </ItemTemplate>
                                            </asp:TemplateColumn>
                                            <asp:ButtonColumn Text="&lt;div id=&quot;de&quot; onclick=&quot;javascript:return confirm('确认删除吗？')&quot;&gt;删除&lt;/div&gt;"
                                                CommandName="Delete">
                                                <ItemStyle HorizontalAlign="Center"></ItemStyle>
                                            </asp:ButtonColumn>
                                        </Columns>
                                        <PagerStyle Mode="NumericPages"></PagerStyle>
                                    </asp:DataGrid>
                                </td>
                            </tr>
                        </table>
                        <%} if (this.Request.QueryString["Action"] == "Add" | this.Request.QueryString["Action"] == "Modify")
                           {%>
                        <table cellspacing="0" cellpadding="0" class="ptable" style="width: 100%">
                            <tr>
                                <th class="tl">
                                    开放平台接口名称：
                                </th>
                                <td class="tr">
                                    <asp:TextBox ID="txtName" runat="server"></asp:TextBox><font color="red">*</font>
                                </td>
                            </tr>
                            <tr>
                                <th class="tl">
                                    回调地址：
                                </th>
                                <td class="tr">
                                    <asp:TextBox ID="txtUrl" runat="server" Width="350px"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <th class="tl">
                                    apiKey：
                                </th>
                                <td class="tr">
                                    <asp:TextBox ID="txtapiKey" runat="server" Width="350px"></asp:TextBox><font color="red">*</font>
                                </td>
                            </tr>
                            <tr>
                                <th class="tl">
                                    apiKeySecret：
                                </th>
                                <td class="tr">
                                    <asp:TextBox ID="txtapiKeySecret" runat="server" Width="350px"></asp:TextBox><font color="red">*</font>
                                </td>
                            </tr>
                            <tr>
                                <th class="tl">
                                    描述：
                                </th>
                                <td class="tr">
                                    <asp:TextBox ID="txtTitle" runat="server" TextMode="MultiLine" Height="182px" 
                                        Width="350px"></asp:TextBox><font color="red">*</font>
                                </td>
                            </tr>
                            <tr>
							<td colSpan="2" class="center">
								<asp:button id="btnSave" OnClick="btnSave_Click" runat="server" Text="保存" CssClass="inputbtn"></asp:button>
								<asp:Button id="btnCancel" OnClick="btnCancel_Click" runat="server" Text="取消" CausesValidation="False" CssClass="inputbtn"></asp:Button>
							</td>
						</tr>
                        </table>
                        <%}%>
                    </div>
                </div>
                </form>
            </div>
        </div>
    </div>
</body>
</html>
