<%@ page language="C#" masterpagefile="../ShopMasterPage/MyShopMasterPage.master" autoeventwireup="true" inherits="Shop_member_Shop_AddManagePayType, HoWaveVGO" title="添加付款方式" enableEventValidation="false" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div class="pageTitle">你所处位置是：付款方式管理-->添加付款方式</div>
<br />
   <table class="ShopOrderStyle">
   <caption>付款方式信息</caption>
        <tr>
            <td class="OrderTitle">名称：</td>
            <td><asp:TextBox ID="TxtPayName" runat="server" />
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TxtPayName"
                    ErrorMessage="名称不能空"/></td>
        </tr>
         <tr>
            <td class="OrderTitle">支付属性：</td>
            <td><asp:DropDownList ID="DropPayAttribute" runat="server" >
                    <asp:ListItem Value="0" Enabled="False">在线支付</asp:ListItem>
                    <asp:ListItem Value="1" Enabled="False">商城虚拟货币支付</asp:ListItem>
                    <asp:ListItem Value="2" Enabled="False">线下支付</asp:ListItem>                    
                </asp:DropDownList>&nbsp;<br />              
                           <div class="Content" id="online_payTypeSelect">
                                <div class="div_row">
                                    <div class="div_left">
                                        选择支付方式</div>
                                    <div class="div_right">
                                        <asp:DropDownList ID="ShopOnlinePaytype" runat="server" AppendDataBoundItems="True" >
                                            <asp:ListItem>支付宝</asp:ListItem>
                                            <asp:ListItem>网银</asp:ListItem>
                                            <asp:ListItem>快钱</asp:ListItem>
                                        </asp:DropDownList></div>
                                </div>
                                <div class="div_row">
                                    <div class="div_left">
                                        邮箱地址</div>
                                    <div class="div_right">
                                        <asp:TextBox ID="OnlinePayEmail" runat="server" Width="150px" />
                                        (选择支付宝时填写）<asp:RegularExpressionValidator
                                            ID="RegularExpressionValidator1" runat="server" ControlToValidate="OnlinePayEmail"
                                            ErrorMessage="邮件格式不正确" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" Display="Dynamic"/>
                                        <a href="https://www.alipay.com/" target="_blank">申请支付宝</a><br /></div>
                                </div>
                                <div class="div_row">
                                    <div class="div_left">
                                        支付帐号</div>
                                    <div class="div_right">
                                        <asp:TextBox ID="Account" runat="server"  Width="200px" />若支付宝请填写合作伙伴ID
                                        </div>
                                </div>
                                <div class="div_row">
                                    <div class="div_left">
                                        帐号ＭＤ５校验码</div>
                                    <div class="div_right">
                                        <asp:TextBox ID="Md5Code" runat="server" Width="200px" />
                                        </div>
                                </div> 
                                <div class="div_row">
                                    <div class="div_left">
                                       在线支付定单前缀</div>
                                    <div class="div_right">
                                        <asp:TextBox ID="OnlinePayFlag" runat="server" >HL</asp:TextBox></div>
                                </div>                                
                                <div>
                                    提示：请至少输入一个在线支付帐号
                                </div>
                           </div>
                           <div class="Content" id="outLine_Pay">
                                <div class="div_row">
                                    <div class="div_left">
                                        线下支付类型</div>
                                    <div class="div_right">
                                       <asp:DropDownList ID="outLinePayType" runat="server">                                        
                                          <asp:ListItem Text="银行转帐/汇款" Value="1"  />
                                          <asp:ListItem Text="现金" Value="0" />
                                          <asp:ListItem Text="邮寄汇款" Value="4" />
                                          <asp:ListItem Text="上门收款" Value="5" />
                                          <asp:ListItem Text="支票" Value="6" />
                                          <asp:ListItem Text="其它" Value="7" />
                                       </asp:DropDownList><span>（注：“银行转帐”方式请添加完后设置 <a href="Shop_Bank.aspx">银行帐号</a>资料）</span>
                                    </div>
                                </div>
                           </div>                                    
           
            </td>
        </tr>
        <tr>
            <td class="OrderTitle">设定付款折扣：</td>
            <td><asp:TextBox ID="TxtDisCount" runat="server" Text="100" Width="30px" />%(请填写0-100范围内数字) <a href="#"  onmouseover="showHelp('help2');" onmouseout="hidenHelp('help2');" >&nbsp;<img src="../../IMS_Img/smallIcon/tooltip.png" border="0" /></a><br />
                
                <asp:RequiredFieldValidator ID="Rq2" runat="server" ErrorMessage="折扣不能空" ControlToValidate="TxtDisCount" Display="Dynamic"/>
                <asp:RangeValidator ID="Ra1" runat="server" ControlToValidate="TxtDisCount"  ErrorMessage="请填写0-100范围内数字" MaximumValue="100" MinimumValue="0" Type="Integer" Display="Dynamic" Width="141px"/></td>
        </tr>
        <tr>
            <td class="OrderTitle">是否禁用：</td>
            <td><asp:CheckBox ID="ChDisable" runat="server" Text="禁用" /></td>
        </tr>
        <tr>
            <td class="OrderTitle">描述：</td>
            <td><asp:TextBox ID="TxtIntro" runat="server" TextMode="MultiLine" Height="117px" Width="433px"/></td>
        </tr>
        <tr>
            <td class="OrderTitle">请输入安全密码：</td>
            <td><asp:TextBox ID="UserSavePass" runat="server"  TextMode="Password" /><a href="#"  onmouseover="showHelp('help3');" onmouseout="hidenHelp('help3');" >&nbsp;<img src="../../IMS_Img/smallIcon/tooltip.png" border="0" /></a><br />              
               <asp:RequiredFieldValidator ID="Rq4" runat="server" ErrorMessage="请输入安全密码" ControlToValidate="UserSavePass" Display="Dynamic"/></td>
        </tr>
       <tr>
           <td class="OrderTitle">确认安全密码：</td>
           <td><asp:TextBox ID="TextBox1" runat="server"  TextMode="Password" />
               <asp:CompareValidator ID="cv1" runat="server" ControlToCompare="UserSavePass"
                   ControlToValidate="TextBox1" ErrorMessage="两次的安全密码不一样" Display="Dynamic"/></td>
       </tr>
        <tr>
            <td colspan="2"><asp:Label ID="err_tips" runat="server" /></td>
        </tr>
        <tr>           
            <td colspan="2" style="text-align:center;"><asp:Button ID="OnLinePaySubmit" runat="server" OnClick="OnLinePaySubmit_Click" Text="确定" />&nbsp;<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="返回" CausesValidation="False" /></td>
        </tr>
      
    </table>
     <div id="help2"   style="position:absolute;z-index:1000; border:solid 1px black; padding:10px; background:white; display:none;" onmouseover="this.style.display='block';" onmouseout="this.style.display='none'">
       你可以设置多个付款方式，设置优惠的付款折扣可以吸引买家在购买商品时采用该付款方式。    
   </div>
    <div id="help3"   style="position:absolute;z-index:1000; border:solid 1px black; padding:10px; background:white; display:none;" onmouseover="this.style.display='block';" onmouseout="this.style.display='none'">
       若第一次填写请输入安全密码并牢记，下次更改支付方式和帐号需要验证安全密码！   
   </div>
   <asp:HiddenField ID="H_PayComeUrl" runat="server" />
<script type="text/javascript">

function SelectPayType(objValue)
{ 
  var _obj=document.getElementById("online_payTypeSelect");
  var _obj_outline=document.getElementById("outLine_Pay"); 
  switch(parseInt(objValue))
  {
     case 0:
       _obj.style.display="block";
       _obj_outline.style.display="none";
       break;
     case 1:
        _obj.style.display="none";
        _obj_outline.style.display="none";
       break;
     case 2:
        _obj.style.display="none";
        _obj_outline.style.display="block";
       break;
  }
}
SelectPayType(<%=m_selectPayType %>);
</script>       
</asp:Content>

