<%@ page language="C#" masterpagefile="~/HL_Admin/AdminIndexMaster.master" autoeventwireup="true" inherits="HL_Admin_Admin_HowaveUpdatePaytype, HoWaveVGO" title="Untitled Page" enableEventValidation="false" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<table class="adminheading">
     <tr>
        <th valign="middle" class="shoppage"  align="left">商城支付方式管理</th>                  
        <td align="right">
        <div style="width:50px"><a href="Admin_HowavePayType.aspx">返回</a></div>
         </td>        
     </tr>
 </table> 
  
      <table class="nick" cellpadding="1" cellspacing="1" border="0">
         <tr>
            <td colspan="2" class="tit">添加/修改支付方式</td>
         </tr>
         <tr>
            <th><b>*</b>名称：</th>
            <td class="rtd"><asp:TextBox ID="TxtPayName" runat="server" />
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TxtPayName"
                    ErrorMessage="名称不能空"/></td>
         </tr>
         <tr>
            <th><b>*</b>支付属性：</th>
            <td class="rtd">
               <asp:DropDownList ID="DropPayAttribute" runat="server" >
                    <asp:ListItem Value="0">在线支付</asp:ListItem>                   
                    <asp:ListItem Value="2">线下支付</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"/>
                            (选择支付宝时填写)
                            <a href="https://www.alipay.com/" target="_blank">申请支付宝</a>&nbsp;<asp:RegularExpressionValidator
                                ID="RegularExpressionValidator1" runat="server" ControlToValidate="OnlinePayEmail"
                                ErrorMessage="邮件格式不正确" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator></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" >
                            </asp:TextBox></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>
              
            </td>
        </tr>
        <tr>
            <th><b>*</b>设定付款折扣：</th>
            <td class="rtd"><asp:TextBox ID="TxtDisCount" runat="server" Text="100" Width="30px"/>%(请填写0-100范围内数字)                
                <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"/></td>
        </tr>
        <tr>
            <th><b>*</b>描述：</th>
            <td class="rtd"><asp:TextBox ID="TxtIntro" runat="server" TextMode="MultiLine" Height="117px" Width="433px"/></td>
        </tr>
        <tr>
            <th><b>*</b>请输入安全密码：</th>
            <td class="rtd"><asp:TextBox ID="UserSavePass" runat="server"  TextMode="Password"/>*若第一次填写请输入安全密码并牢记，下次更改支付方式和帐号需要验证安全密码！
            <asp:RequiredFieldValidator ID="Rq4" runat="server" ErrorMessage="请输入安全密码" ControlToValidate="UserSavePass"/></td>
        </tr>
          <tr>
              <th>
                  请输入确认密码:</th>
              <td class="rtd">
                  <asp:TextBox ID="TextBox1" runat="server"  TextMode="Password"/>
                  <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="UserSavePass"
                      ControlToValidate="TextBox1" ErrorMessage="两次密码要相同"></asp:CompareValidator></td>
          </tr>
       <tr>
           <th>禁用：</th>
           <td class="rtd">
               <asp:CheckBox ID="ChDisable" runat="server" Text="是" /></td>
       </tr>
       <tr>
            <td colspan="2"><asp:Label ID="err_tips" runat="server" /></td>
       </tr>
      
    </table>
    <div class="div_btm">
    <asp:Button ID="Button2" runat="server" OnClick="Button2_Click" Text="修改" Visible="False" />&nbsp;
            <asp:Button ID="Button3" runat="server" OnClick="Button3_Click" Text="增加" />
                <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="返回" CausesValidation="False" />
    </div>
     <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>
   
   <asp:HiddenField ID="H_PayComeUrl" runat="server" />
<script type="text/javascript">
function SelectPayType(objValue)
{ 
  var _obj=document.getElementById("online_payTypeSelect");
  switch(parseInt(objValue))
  {
     case 0:
       _obj.style.display="block";
       break;
     case 1:
        _obj.style.display="none";
       break;
     case 2:
        _obj.style.display="none";
       break;
  }
}
SelectPayType(document.getElementById("online_payTypeSelect").selectIndex);
</script> 

</asp:Content>

