<%@ Page Language="C#" AutoEventWireup="false" CodeBehind="Payment.aspx.cs" Inherits="web.admin.Payment" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>Payment</title><meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
		<LINK href="images/adminstyle.css" type="text/css" rel="stylesheet">
			<script language="javascript">
			function ShowAlipayButton()
			{
				if(document.Form1.ddlAliPaySetting.value== "0")
				{
					document.Form1.elements["alipaybt"].style.display = "none";
				}
				else
				{
					document.Form1.elements["alipaybt"].style.display = "";
					document.Form1.elements["alipaybt"].src = "../upload/alipay_buttons/" + document.Form1.ddlAliPaySetting.value;
				}
			}
			</script>
					<script language="JavaScript">
<!--
//By Dicky 2005-2-17 11:16:49
function Window_Load(Flag)
{

if (Flag == 0)
{

  parent.document.all['Loading'].style.display = 'block';
  parent.document.all['Loading'].style.width = '500';
   parent.document.all['Loading'].style.height = '60';
  //show the window
}
else
{
  parent.document.all['Loading'].style.display = 'none';
  
  //hide the window
}
}
//-->
</script>
	</HEAD>
	<body rightmargin="0" leftmargin="0" topmargin="0" onload="Window_Load(1);">
	
		<form id="Form2" method="post" runat="server" onsubmit="Window_Load(0);">
<table width="100%" height="550" cellspacing="0" cellpadding="0">
  <tr>
    <td valign="top">
<div class="top">
          <table width="100%" align="center" cellpadding="0" cellspacing="0" background="img/labelbg.gif" bgcolor="#EDF6FF">
            <tr>
		      <td width="8%" height="34" class="tl"></td>
		<td width="86%" class="tm"><span class="tt">平台基础设置管理 &gt;&gt; <asp:label id="lblAction" runat="server"></asp:label></span></td>
		      <td width="1%" class="tm2"><span class="tt"></span></td>
		<td width="5%" class="tr"></td>
	</tr>
</table>
</div>
        <div class="mframe"> 
          <table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
      <td class="ml"></td>
    <td  class="mm" align="left" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
                    <td bgcolor="#FFFFFF" valign="top"> <br>
                      <table width="90%" align="center" cellpadding="0"  cellspacing="0">
                        <tr>
		<td class="ml1"></td>
		<td class="mm1">
			<% if(this.Request.QueryString["Action"] == "Manage"){%>
			                <table  cellSpacing="0" cellPadding="0" width="100%" 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="PaymentID" AutoGenerateColumns="False" PagerStyle-Mode="NumericPages" BorderColor="#E0E0E0" BorderWidth="1px">
							<HeaderStyle Font-Bold="False" BackColor="#EDF6FF" CssClass="head" Height="35px"></HeaderStyle>
							<Columns>
								<asp:TemplateColumn HeaderText="序号">
									<HeaderStyle HorizontalAlign="Center" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False"></HeaderStyle>
									<ItemStyle HorizontalAlign="Center" Width="50px" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False"></ItemStyle>
									<ItemTemplate>
										<%# DataBinder.Eval(Container.DataItem, "PaymentID") %>
									</ItemTemplate>
								</asp:TemplateColumn>
								<asp:TemplateColumn HeaderText="支付名称">
									<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
									<ItemStyle HorizontalAlign="Center"></ItemStyle>
									<ItemTemplate>
										<%# DataBinder.Eval(Container.DataItem, "Name") %>
									</ItemTemplate>
								</asp:TemplateColumn>
								<asp:TemplateColumn HeaderText="接口类型">
									<HeaderStyle HorizontalAlign="Center" Width="120px"></HeaderStyle>
									<ItemStyle HorizontalAlign="Center" Width="120px"></ItemStyle>
									<ItemTemplate>
										<%# GetInterfaceName(DataBinder.Eval(Container.DataItem, "InterfaceID").ToString()) %>
									</ItemTemplate>
								</asp:TemplateColumn>
								<asp:TemplateColumn HeaderText="支持币种">
									<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
									<ItemStyle HorizontalAlign="Center" Width="60px"></ItemStyle>
									<ItemTemplate>
										<%# DataBinder.Eval(Container.DataItem, "SupportCoins") %>
									</ItemTemplate>
								</asp:TemplateColumn>
								<asp:TemplateColumn HeaderText="状态">
									<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
									<ItemStyle HorizontalAlign="Center" Width="30px"></ItemStyle>
									<ItemTemplate>
										<a href='Cz.aspx?Action=ChangePaymentStatus&PaymentID=<%# DataBinder.Eval(Container.DataItem, "PaymentID") %>&Status=<%# DataBinder.Eval(Container.DataItem, "Status") %>'>
											<img src='images/publish_<%# DataBinder.Eval(Container.DataItem, "Status") %>.png' border="0" alt='<%# (DataBinder.Eval(Container.DataItem, "Status").ToString() == "1") ? "使用中" : "暂不使用" %>'></a>
									</ItemTemplate>
								</asp:TemplateColumn>
										<asp:TemplateColumn HeaderText="性质">
									<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
									<ItemStyle HorizontalAlign="Center"></ItemStyle>
									<ItemTemplate>
										<%# DataBinder.Eval(Container.DataItem, "lx").ToString()=="0"?"普通":"专用" %>
									</ItemTemplate>
								</asp:TemplateColumn>
								<asp:TemplateColumn>
									<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
									<ItemStyle HorizontalAlign="Center" Width="30px"></ItemStyle>
									<ItemTemplate>
										<a href='Payment.aspx?Action=Modify&PaymentID=<%# DataBinder.Eval(Container.DataItem, "PaymentID") %>'>
											修改</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" Width="30px"></ItemStyle>
								</asp:ButtonColumn>
							</Columns>
							<PagerStyle Mode="NumericPages"></PagerStyle>
                        <ItemStyle Height="26px" />
						</asp:datagrid></td>
				</tr>
			</table>
			<%}if(this.Request.QueryString["Action"] == "Add" | this.Request.QueryString["Action"] == "Modify"){%>
			                <table  cellSpacing="0" cellPadding="0" width="766" align="center" border="0">
                              <tr>
					<td height="23">
						<table cellSpacing="0" cellPadding="6" width="95%" align="center" border="0">
                                    <tr>
								<td width="19%" align="left"><div align="center">支付名称： </div></td>
								<td width="79%"><asp:textbox id="txtName" CssClass="input" runat="server"></asp:textbox><font color="red">*</font>								</td>
								<td width="2%" rowSpan="2"></td>
							</tr>
							<tr>
								      <td align="left" bgcolor="F4F4F4">
<div align="center">支付接口： </div></td>
								      <td bgcolor="F4F4F4">
<asp:dropdownlist id="ddlInterface" runat="server" AutoPostBack="True">
										<asp:ListItem Value="0">-请选择支付接口-</asp:ListItem>
										
										<asp:ListItem Value="2">支付宝担保交易支付接口</asp:ListItem>
										<asp:ListItem Value="11">支付宝双接口支付接口</asp:ListItem>
										<asp:ListItem Value="12">支付宝即时到帐支付接口</asp:ListItem>
										<asp:ListItem Value="3">网银支付接口(国内)</asp:ListItem>
										<asp:ListItem Value="6">网银支付接口(国外)</asp:ListItem>
										
										
										<asp:ListItem Value="7">快钱支付</asp:ListItem>
										<asp:ListItem Value="8">YeePay易宝支付</asp:ListItem>
										<asp:ListItem Value="10">腾讯财付通中介担保支付</asp:ListItem>
									</asp:dropdownlist><asp:HyperLink id="HyperLink1" runat="server" Visible="False" Target=_blank>[点击这里进行IPS商户注册]</asp:HyperLink>
                                          <br />
                                          <br />
                                          <asp:literal id="ltrPaymentInfo" Runat="server"></asp:literal></td>
							</tr>
							<asp:panel id="pnlKeys" Runat="server">
								<TR>
									<TD align="left" height="20"><div align="center">用户ID： 
                                          </div></TD>
									<TD colSpan="2" height="20">
										<asp:TextBox id="txtUserID" runat="server"></asp:TextBox><FONT color="red">*</FONT></TD>
								</TR>
								      <TR bgcolor="F4F4F4"> 
                                        <TD align="left"> 
                                          <div align="center">私钥： </div></TD>
									    <TD colSpan="2"> 
                                          <asp:TextBox id="txtPrivateKey" runat="server"></asp:TextBox><FONT color="red">*</FONT></TD>
								</TR>
							</asp:panel>
							<asp:panel id="pnlParent" Runat="server" Visible=false>
								<TR>
									<TD align="left" height="20"><div align="center">ParentID： 
                                          </div></TD>
									<TD colSpan="2" height="20">
										<asp:TextBox id="txtParentID" runat="server"></asp:TextBox><FONT color="red">*</FONT></TD>
								</TR>
							</asp:panel>
							<asp:panel id="pnlPaypal" Runat="server" Visible="False">
								      <TR bgcolor="F4F4F4"> 
                                        <TD height="20" align="left"> 
                                          <div align="center">Email： 
                                          </div></TD>
									    <TD height="20" colSpan="2"> 
                                          <asp:TextBox id="txtEmail" runat="server"></asp:TextBox><FONT color="red">*</FONT></TD>
								</TR>
							</asp:panel><asp:panel id="pnlAliPaySettings" Runat="server" Visible="False">
								<TR>
									<TD align="left" height="20"><div align="center">前台直接购买：	
                                          </div></TD>
									<TD colSpan="2" height="20">
										<asp:DropDownList id="ddlAliPaySetting" runat="server">
											<asp:ListItem Value="0">不开启此功能</asp:ListItem>
											<asp:ListItem Value="button_1.gif">开启，并使用按钮1</asp:ListItem>
											<asp:ListItem Value="button_2.gif">开启，并使用按钮2</asp:ListItem>
											<asp:ListItem Value="button_3.gif">开启，并使用按钮3</asp:ListItem>
											<asp:ListItem Value="button_4.gif">开启，并使用按钮4</asp:ListItem>
										</asp:DropDownList><IMG id="alipaybt" style="DISPLAY: none" name="alipaybt">[<A href="#/n9882c183.aspx" target="_blank">支付宝使用方法帮助</A>]</TD>
								</TR>
							</asp:panel>
							<tr>
								<td align="left"><div align="center">支持货币： </div></td>
								<td colSpan="2"><asp:checkboxlist id="cblSupportCoins" runat="server" RepeatColumns="5" RepeatDirection="Horizontal"></asp:checkboxlist></td>
							</tr>
							<tr>
								<td align="left"><div align="center">描述： </div></td>
								<td colSpan="2"><asp:textbox id="txtDescription" CssClass="input" runat="server" Width="350px" Height="60px" TextMode="MultiLine"></asp:textbox><br />
                                    <br />
                                    <span style="color: #ff0000">说明：如果想让前台支付方式显示图片，请先制作制作好的图片用FTP上传到images文件夹里，比如你制作的图片是:zf.jpg，那么在描述里输入&lt;img
                                        src="/images/zf.jpg" border="0"&gt;，添加完，前台即可显示图片。</span></td>
							</tr>
							     <tr> 
                                      <td align="left">是否为团购、限时、捆绑商品<br>
                                        下订单支付专用：</td>
                                      <td colSpan="2">
                                          <asp:CheckBox ID="islx" runat="server" /></td>
                                    </tr>
							<tr>
								<td align="center" colSpan="3"><br>
									<asp:button id="btnSave" runat="server" CssClass="btn" Text="保存"></asp:button>&nbsp;&nbsp;
									<asp:Button id="btnCancel" runat="server" CssClass="btn" Text="取消" CausesValidation="False"></asp:Button></td>
							</tr>
						</table>
					</td>
				</tr>
			</table>
			<%}%>
		</td>
		<td class="mr1"></td>
	</tr>
</table>
                    </td>
  </tr>
</table>


<table width="100%" align="center" cellspacing="0" cellpadding="0">
	<tr>
		<td class="bl"></td>
		<td class="bm">&nbsp;</td>
		<td class="br"></td>
	</tr>
</table>
</td>
    <td  class="mr"></td>
  </tr>
</table>
<table width="100%" align="center" cellspacing="0" cellpadding="0">
	<tr>
		<td class="bl"></td>
		<td class="bm">&nbsp;</td>
		<td class="br"></td>
	</tr>
</table>

</div>
    </td>
  </tr>
</table>
		</form>
	</body>
</HTML>
