<%@ page language="C#" autoeventwireup="true" inherits="Admin_Payment_Operate, GroupTGWeb_deploy" %>

<%@ Register Src="UserControl/MessageShow.ascx" TagName="MessageShow" TagPrefix="uc1" %>
<!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>Untitled Page</title>
    <link type="text/css" rel="Stylesheet" href="css/index.css" />

    <script language="javascript">
        //选择单图
   function openSingleChild()
    { 
        var k = window.showModalDialog("Image_List_Select.aspx",window,"dialogWidth:820px;status:no;dialogHeight:650px"); 
        if(k != null) 
        {
          var strLen=k.length;
          var lastIndex=k.lastIndexOf('/');
          document.getElementById("TextBoxOriginalImge").value = k.substring(lastIndex+1,strLen); 
         document.getElementById("ImageOriginalImge").src = k; 
        }
    } 

    </script>

</head>
<body style="padding: 0; background-image: url(images/Bg_right.gif); background-repeat: repeat;">
    <form id="form1" runat="server">
    <div class="navigator">
        【
        <asp:Label ID="LabelPageTitle" runat="server" Font-Bold="True" Text="新增支付方式"></asp:Label>
        】</div>
    <table cellpadding="0" cellspacing="0" border="0" style="width: 100%">
        <tr>
            <td width="20%">
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label ID="LabelPaymentType" runat="server" Text="支付方式类型："></asp:Label>
            </td>
            <td align="left">
                <asp:DropDownList ID="DropDownListPaymentType" runat="server" OnSelectedIndexChanged="DropDownListPaymentType_SelectedIndexChanged"
                    AutoPostBack="True" CssClass="select2">
                    <asp:ListItem Value="Xpay.aspx">易付通</asp:ListItem>
                    <asp:ListItem Value="Allbuy.aspx">好购(AllBuy)</asp:ListItem>
                    <asp:ListItem Value="Yeepay.aspx">易宝(YeePay)</asp:ListItem>
                    <asp:ListItem Value="YeepaySZX.aspx">易宝(YeePay)神州行</asp:ListItem>
                    <asp:ListItem Value="TenpayMed.aspx">财付通中介保护</asp:ListItem>
                    <asp:ListItem Value="Tenpay.aspx">财付通即时到账</asp:ListItem>
                    <asp:ListItem Value="DeliveryPay.aspx">货到付款</asp:ListItem>
                    <asp:ListItem Value="Alipay.aspx">支付宝担保交易</asp:ListItem>
                    <asp:ListItem Value="Alipay3.aspx">支付宝及时到账</asp:ListItem>
                    <asp:ListItem Value="Alipay2.aspx">支付宝标准双向接口</asp:ListItem>
                    <asp:ListItem Value="BankTransfer.aspx">银行转帐</asp:ListItem>
                    <asp:ListItem Value="PreDeposits.aspx">预存款支付</asp:ListItem>
                    <asp:ListItem Value="PayPal.aspx">贝宝支付(PayPal)</asp:ListItem>
                    <asp:ListItem Value="Send.aspx">网银支付(chinabank)</asp:ListItem>
                    <asp:ListItem Value="VIPAccess.aspx">VIP支付通道</asp:ListItem>
                </asp:DropDownList>
                <asp:Label ID="Label1" runat="server" Text="*" ForeColor="red"></asp:Label>
                <asp:CompareValidator ID="CompareValidatorPaymentType" runat="server" ControlToValidate="DropDownListPaymentType"
                    Display="Dynamic" ErrorMessage="该值必需选择" Operator="NotEqual" ValueToCompare="-1"></asp:CompareValidator>
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label ID="LabelName" runat="server" Text="支付方式名称："></asp:Label>
            </td>
            <td align="left">
                <asp:TextBox ID="TextBoxName" runat="server" CssClass="input2"></asp:TextBox>
                <asp:Label ID="Label2" runat="server" Text="*" ForeColor="red"></asp:Label>
                <asp:RequiredFieldValidator ID="RequiredFieldValidatorName" runat="server" ControlToValidate="TextBoxName"
                    Display="Dynamic" ErrorMessage="该值不能为空"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidatorName" runat="server"
                    ControlToValidate="TextBoxName" Display="Dynamic" ErrorMessage="支付方式最多100个字符"
                    ValidationExpression="^[\s\S]{0,100}$"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label ID="LabelMerchantCode" runat="server" Text="商户号："></asp:Label>
            </td>
            <td align="left">
                <asp:TextBox ID="TextBoxMerchantCode" runat="server" CssClass="input2"></asp:TextBox>
                <asp:Label ID="Label8" runat="server" Text="*" ForeColor="red"></asp:Label>
                <asp:RequiredFieldValidator ID="RequiredFieldValidatorMerchantCode" runat="server"
                    ControlToValidate="TextBoxMerchantCode" Display="Dynamic" ErrorMessage="该值不能为空"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidatorMerchantCode" runat="server"
                    ControlToValidate="TextBoxMerchantCode" Display="Dynamic" ErrorMessage="商户号最多150个字符"
                    ValidationExpression="^[\s\S]{0,150}$"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label ID="LabelSecretKey" runat="server" Text="商户密钥："></asp:Label>
            </td>
            <td align="left">
                <asp:TextBox ID="TextBoxSecretKey" runat="server" CssClass="input2"></asp:TextBox>
                <asp:RegularExpressionValidator ID="RegularExpressionValidatorSecretKey" runat="server"
                    ControlToValidate="TextBoxSecretKey" Display="Dynamic" ErrorMessage="密匙最多150个字符"
                    ValidationExpression="^[\s\S]{0,150}$"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label ID="LabelSecondKey" runat="server" Text="商户密钥2："></asp:Label>
            </td>
            <td align="left">
                <asp:TextBox ID="TextBoxSecondKey" runat="server" CssClass="input2"></asp:TextBox>
                <asp:RegularExpressionValidator ID="RegularExpressionValidatorSecondKey" runat="server"
                    ControlToValidate="TextBoxSecondKey" Display="Dynamic" ErrorMessage="密匙最多150个字符"
                    ValidationExpression="^[\s\S]{0,150}$"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label ID="Pwd" runat="server" Text="商户密码："></asp:Label>
            </td>
            <td align="left">
                <asp:TextBox ID="TextBoxPwd" runat="server" CssClass="input2"></asp:TextBox>
                <asp:RegularExpressionValidator ID="RegularExpressionValidatorPwd" runat="server"
                    ControlToValidate="TextBoxPwd" Display="Dynamic" ErrorMessage="密码最多150个字符" ValidationExpression="^[\s\S]{0,150}$"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label ID="LabelCharge" runat="server" Text="手续费："></asp:Label>
            </td>
            <td align="left">
                <asp:TextBox ID="TextBoxCharge" runat="server" CssClass="input2"></asp:TextBox>
                <asp:Label ID="Label4" runat="server" Text="*" ForeColor="red"></asp:Label>
                <asp:RequiredFieldValidator ID="RequiredFieldValidatorName2" runat="server" ControlToValidate="TextBoxCharge"
                    Display="Dynamic" ErrorMessage="该值不能为空"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidatorCharge" runat="server"
                    ControlToValidate="TextBoxCharge" Display="Dynamic" ErrorMessage="输入格式不正确" ValidationExpression="^[0-9]+(.[0-9]{1,3})?$"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label ID="LabelIsPercent" runat="server" Text="手续费是否按百分比计算："></asp:Label>
            </td>
            <td align="left">
                <asp:CheckBox ID="CheckBoxIsPercent" runat="server" Text="是" />
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label ID="LabelEmail" runat="server" Text="电子邮箱："></asp:Label>
            </td>
            <td align="left">
                <asp:TextBox ID="TextBoxEmail" runat="server" CssClass="input2"></asp:TextBox>
                <asp:Label ID="Label3" runat="server" Text="*" ForeColor="red"></asp:Label>
                <asp:RequiredFieldValidator ID="RequiredFieldValidatorEmail" runat="server" ControlToValidate="TextBoxEmail"
                    Display="Dynamic" ErrorMessage="该值不能为空"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidatorEmail" runat="server"
                    ControlToValidate="TextBoxEmail" Display="Dynamic" ErrorMessage="只能输入100个字符"
                    ValidationExpression="^[\s\S]{0,100}$"></asp:RegularExpressionValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="TextBoxEmail"
                    Display="Dynamic" ErrorMessage="邮箱格式不正确！" ValidationExpression="^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label ID="LabelMemo" runat="server" Text="支付方式详细价绍："></asp:Label>
            </td>
            <td align="left">
                <asp:TextBox ID="TextBoxMemo" runat="server" TextMode="MultiLine" Width="298" Height="60"></asp:TextBox>
                <asp:RegularExpressionValidator ID="RegularExpressionValidatorTitle6" runat="server"
                    ControlToValidate="TextBoxMemo" Display="Dynamic" ErrorMessage="详细介绍最多4000个字符"
                    ValidationExpression="^[\s\S]{0,4000}$"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label ID="LabelIsCOD" runat="server" Text="是否支付货到付款："></asp:Label>
            </td>
            <td align="left">
                <asp:CheckBox ID="CheckBoxIsCOD" runat="server" Text="是" />
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label ID="LabelOrderID" runat="server" Text="排序号："></asp:Label>
            </td>
            <td align="left">
                <asp:TextBox ID="TextBoxOrderID" runat="server" CssClass="input2"></asp:TextBox>
                <asp:Label ID="Label7" runat="server" Text="*" ForeColor="red"></asp:Label>
                <asp:RegularExpressionValidator ID="RegularExpressionValidatorOrderID" runat="server"
                    ControlToValidate="TextBoxOrderID" Display="Dynamic" ErrorMessage="只能输入数字" ValidationExpression="^[0-9]*$"></asp:RegularExpressionValidator>
                <asp:RequiredFieldValidator ID="RequiredFieldValidatorOrderID" runat="server" ControlToValidate="TextBoxOrderID"
                    Display="Dynamic" ErrorMessage="该值不能为空"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidatorTitle7" runat="server"
                    ControlToValidate="TextBoxOrderID" Display="Dynamic" ErrorMessage="排序号最多50个字符"
                    ValidationExpression="^[\s\S]{0,50}$"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label ID="LabelThumbImage" runat="server" Text="支付方式图片："></asp:Label>
            </td>
            <td align="left">
                <asp:TextBox ID="TextBoxOriginalImge" runat="server" Width="298"></asp:TextBox>
                <input id="ButtonSelectSingleImage" type="button" value="选择图片" onclick="openSingleChild()"
                    class="bt3" />
                <br />
                <img id="ImageOriginalImge" alt="" src="~/images/noImage.gif" runat="server" /><asp:RegularExpressionValidator
                    ID="RegularExpressionValidatorOriginalImge" runat="server" ControlToValidate="TextBoxOriginalImge"
                    Display="Dynamic" ErrorMessage="图片链接地址最多250个字符" ValidationExpression="^[\s\S]{0,250}$"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td align="right">
                &nbsp;
            </td>
            <td align="left">
                &nbsp;
            </td>
        </tr>
        <tr style="background-color: #EEEEEE;">
            <td align="right">
                &nbsp;
            </td>
            <td align="left">
                <div style="width: 60%; margin: 4px;">
                    <asp:Button ID="ButtonConfirm" runat="server" OnClick="ButtonConfirm_Click" Text="确定"
                        class="bt2" ToolTip="Submit" />
                    <input id="inputReset" runat="server" type="reset" value="重置" class="bt2" />
                    <a href="Payment_List.aspx">
                        <img src="images/back.png" border="0" align="top" /></a>
                    <uc1:MessageShow ID="MessageShow" runat="server" Visible="False" />
                </div>
            </td>
        </tr>
    </table>
    <asp:HiddenField ID="hiddenFieldGuid" runat="server" Value="0" />
    </form>
</body>
</html>
