<%@ Page language="c#" Codebehind="PayModeManage.aspx.cs" validateRequest="false" AutoEventWireup="True" Inherits="DreamerShop.PayModeManage" %>
<%@ Register TagPrefix="uc1" TagName="LanguagesDeal" Src="LanguagesDeal.ascx" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>
			<%=myLanguagesDeal.GetMyString("TextPayMode")%>
			-
			<%=mConfigInf.strWebTitle%>
		</title>
		<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
		<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
		<meta content="C#" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
		<META content="<%=mConfigInf.strDescription%>" name=description>
		<META content="<%=mConfigInf.strKeywords%>" name=keywords>
		<LINK href="../StyleSheet1.css" rel="stylesheet">
		<SCRIPT language="javascript" id="clientEventHandlersJS">
		<!--

		
		function imgHelp_onclick() {
			popUpWin("DSHelp/PayMode.html","Help",100,100,800,600);
			}
			
		function popUpWin(URLStr,WinName, left, top, width, height)
		{
			var popUpWin=0;
			if(popUpWin)

			{

			if(!popUpWin.closed) popUpWin.close();

			}

			popUpWin = open(URLStr, WinName, 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
		}
		//-->
		</SCRIPT>
		<link rel="stylesheet" href="../editor/themes/default/default.css" />
	    <link rel="stylesheet" href="../editor/plugins/code/prettify.css" />
	    <script charset="utf-8" src="../editor/kindeditor.js"></script>
	    <script charset="utf-8" src="../editor/lang/zh_CN.js"></script>
	    <script charset="utf-8" src="../editor/plugins/code/prettify.js"></script>
	    <script>
	        KindEditor.ready(function (K) {
	            var editor1 = K.create('#txtContent', {
	                cssPath: '../editor/plugins/code/prettify.css',
	                uploadJson: '../editor/netfile/upload_json.ashx',
	                fileManagerJson: '../editor/netfile/file_manager_json.ashx',
	                allowFileManager: true,
	                afterCreate: function () {
	                    var self = this;
	                    K.ctrl(document, 13, function () {
	                        self.sync();
	                        K('form[name=example]')[0].submit();
	                    });
	                    K.ctrl(self.edit.doc, 13, function () {
	                        self.sync();
	                        K('form[name=example]')[0].submit();
	                    });
	                }
	            });
	            prettyPrint();
	        });
	    </script>
	</HEAD>
	<body MS_POSITIONING="GridLayout">
		<form id="Form1" method="post" runat="server">
			<uc1:LanguagesDeal id="myLanguagesDeal" runat="server" Visible="False"></uc1:LanguagesDeal>
			<table cellSpacing="0" cellPadding="0" width="97%" border="0" align="center">
				<tr>
					<td vAlign="top" height="262">
						<table cellSpacing="0" cellPadding="0" width="100%" border="0">
							<tr>
								<td vAlign="top" bgColor="#ffffff" height="300"><FONT face="宋体"><asp:panel id="Pan1" runat="server">
											<TABLE cellSpacing="0" cellPadding="0" width="100%" border="0">
												<TR>
													<TD class="p12black"><SPAN class="p9orange"><IMG height="11" src="IMAGES/icon_1.gif" width="12" align="absMiddle">&nbsp;<%=myLanguagesDeal.GetMyString("TextPayAndSend")%>--&gt;<%=myLanguagesDeal.GetMyString("TextPayMode")%></SPAN>
														<IMG language=javascript id=imgHelp style="CURSOR: pointer" 
                  onclick="return imgHelp_onclick()" 
                  alt='<%=myLanguagesDeal.GetMyString("TextHelp")%>' 
                  src="../Images/Admin/helpicon.gif"></TD>
													<TD>
														<asp:ImageButton id="btAddNew" runat="server" ImageUrl="../Images/Admin/fb-new.gif" onclick="btAddNew_Click"></asp:ImageButton><%=myLanguagesDeal.GetMyString("PayModeAddNew")%><!--新增支付方式--></TD>
												</TR>
											</TABLE>
											<HR noShade SIZE="1">
											<asp:datagrid id="dgList" runat="server" PageSize="20" AllowPaging="false" DataKeyField="PayID"
												AutoGenerateColumns="False" Width="100%" CssClass="table-shangxia">
												<HeaderStyle HorizontalAlign="Center" BackColor="#F1F1F1"></HeaderStyle>
												<Columns>
													<asp:BoundColumn DataField="PayMode" HeaderText="付款方式">
														<HeaderStyle></HeaderStyle>
														<ItemStyle HorizontalAlign="Center"></ItemStyle>
													</asp:BoundColumn>
													<asp:TemplateColumn HeaderText="显示">
														<HeaderStyle></HeaderStyle>
														<ItemStyle HorizontalAlign="Center"></ItemStyle>
														<ItemTemplate>
															<asp:CheckBox id="ckShow" runat="server" Checked= '<%# DataBinder.Eval(Container.DataItem, "IsShow")%>'>
															</asp:CheckBox>
														</ItemTemplate>
													</asp:TemplateColumn>
													<asp:TemplateColumn HeaderText="排序">
														<ItemStyle HorizontalAlign="Center"></ItemStyle>
														<ItemTemplate>
															<asp:TextBox ID="txtNOrder" CssClass="wenbenkuang" Width="30" MaxLength="2" EnableViewState=True Text='<%# DataBinder.Eval(Container.DataItem, "PayOrder")%>' AutoPostBack=False runat="server" >
															</asp:TextBox>
															<asp:CompareValidator id="CompareValidator1" runat="server" ErrorMessage="输入数字" ControlToValidate="txtNOrder"
																Operator="DataTypeCheck" Type="Integer" Display="Dynamic" ForeColor="#FF0000"></asp:CompareValidator>
														</ItemTemplate>
													</asp:TemplateColumn>
													<asp:BoundColumn DataField="ModeType" HeaderText="支付类型">
														<HeaderStyle></HeaderStyle>
														<ItemStyle HorizontalAlign="Center"></ItemStyle>
													</asp:BoundColumn>
													<asp:TemplateColumn HeaderText="操作">
														<HeaderStyle></HeaderStyle>
														<ItemStyle HorizontalAlign="Center"></ItemStyle>
														<ItemTemplate>
															<asp:Button id="btUpdate" Text="更新" CssClass="go-wenbenkuang" CommandName="Update" Runat="server"></asp:Button>
															<asp:Button id="btEdit" Text="修改" CssClass="go-wenbenkuang" CommandName="Edit" Runat="server"></asp:Button>
															<asp:Button id="btDelete" Text="删除" CssClass="go-wenbenkuang" CommandName="Delete" Runat="server"></asp:Button>
														</ItemTemplate>
													</asp:TemplateColumn>
												</Columns>
												<PagerStyle Visible="False" NextPageText="下一页" PrevPageText="上一页" HorizontalAlign="Right"></PagerStyle>
											</asp:datagrid>
										</asp:panel></FONT><asp:panel id="Pan2" runat="server" Visible="False">
										<TABLE class="p9black" cellSpacing="0" cellPadding="0" width="100%" border="0">
											<TR>
												<TD style="WIDTH: 711px">
													<TABLE cellSpacing="0" cellPadding="0" width="100%" border="0">
														<TR>
															<TD class="p12black" align="left"><SPAN class="p9orange"><IMG height="11" src="IMAGES/icon_1.gif" width="12" align="absMiddle">&nbsp;<%=myLanguagesDeal.GetMyString("TextPayAndSend")%>--&gt;
																	<asp:Label id="lbMessage" runat="server"></asp:Label></SPAN><IMG 
                        language=javascript id=imgHelp style="CURSOR: pointer" 
                        onclick="return imgHelp_onclick()" 
                        alt='<%=myLanguagesDeal.GetMyString("TextHelp")%>' 
                        src="../Images/Admin/helpicon.gif"></TD>
															<TD align="right" width="50"><!--BUTTON_BEGIN-->
																<TABLE>
																	<TR>
																		<TD vAlign="bottom" noWrap>
																			<asp:ImageButton id="ibtReturn" runat="server" ImageUrl="../Images/Admin/fb-cancel.gif" CausesValidation="False" onclick="ibtReturn_Click"></asp:ImageButton><%=myLanguagesDeal.GetMyString("TextReturn")%></TD>
																	</TR>
																</TABLE>
															</TD>
														</TR>
													</TABLE>
												</TD>
											</TR>
										</TABLE>
										<HR noShade SIZE="1">
										<TABLE cellSpacing="1" cellPadding="5" width="650" align="center" bgColor="#cccccc" border="0">
											<TR bgColor="#ffffff">
												<TD align="right"><%=myLanguagesDeal.GetMyString("TextPayMode")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%><!--支付方式：--></TD>
												<TD class="pad" width="540">
													<asp:textbox id="txtPayMode" runat="server" Width="200px" CssClass="wenbenkuang" MaxLength="25"></asp:textbox>
													<asp:requiredfieldvalidator id="RequiredFieldValidator1" runat="server" ControlToValidate="txtPayMode" Display="Dynamic"
														ErrorMessage="请输入支付方式" ForeColor="#FF0000"></asp:requiredfieldvalidator></FONT></TD>
											</TR>
											<TR bgColor="#ffffff">
												<TD align="right"><%=myLanguagesDeal.GetMyString("PayModeType")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%><!--支付类型：--></TD>
												<TD class="pad"></FONT>
													<asp:DropDownList id="drlModeType" runat="server" EnableViewState="true" AutoPostBack="True" onselectedindexchanged="drlModeType_SelectedIndexChanged">
														<asp:ListItem Value="31">盛大支付</asp:ListItem>
														<asp:ListItem Value="12">腾讯财付通(即时到帐)</asp:ListItem>
														<asp:ListItem Value="20">腾讯财付通(担保)</asp:ListItem>
														<asp:ListItem Value="13">YeePay易宝</asp:ListItem>
														<asp:ListItem Value="1">当面交易</asp:ListItem>
														<asp:ListItem Value="2">银行、邮局汇款</asp:ListItem>
														<asp:ListItem Value="3">预存款</asp:ListItem>
														<asp:ListItem Value="5">易付在线支付</asp:ListItem>
														<asp:ListItem Value="7">网银在线支付2.0</asp:ListItem>
														<asp:ListItem Value="8">Paypal</asp:ListItem>
														<asp:ListItem Value="10">Chinapay</asp:ListItem>
														<asp:ListItem Value="11">首信易支付</asp:ListItem>
														<asp:ListItem Value="14">IPS</asp:ListItem>
														<asp:ListItem Value="15">云网支付</asp:ListItem>
														<asp:ListItem Value="18">快钱</asp:ListItem>
														<asp:ListItem Value="16">支付宝(标准)</asp:ListItem>
														<asp:ListItem Value="19">支付宝(即时到帐)</asp:ListItem>
														<asp:ListItem Value="24">支付宝(担保)</asp:ListItem>
														<asp:ListItem Value="22">GSPAY</asp:ListItem>
														<asp:ListItem Value="25">收汇宝</asp:ListItem>
														<asp:ListItem Value="29">收汇宝</asp:ListItem>
														<asp:ListItem Value="30">手机支付</asp:ListItem>
													</asp:DropDownList>
													<asp:Label id="lbPayExplain" runat="server"></asp:Label></TD>
											</TR>
										</TABLE>
										<asp:Panel id="PanRemark1" runat="server">
											<TABLE cellSpacing="1" cellPadding="5" width="650" align="center" bgColor="#cccccc" border="0">
												<TR bgColor="#ffffff">
													<TD align="right">
														<asp:Label id="lbRemark1" runat="server"></asp:Label><%=myLanguagesDeal.GetMyString("TextColonCharacter")%></TD>
													<TD class="pad" width="540">
														<asp:textbox id="txtRemark1" runat="server" Width="200px" CssClass="wenbenkuang" MaxLength="50"></asp:textbox></TD>
												</TR>
											</TABLE>
										</asp:Panel>
										<asp:Panel id="PanRemark2" runat="server">
											<TABLE cellSpacing="1" cellPadding="5" width="650" align="center" bgColor="#cccccc" border="0">
												<TR bgColor="#ffffff">
													<TD align="right">
														<asp:Label id="lbRemark2" runat="server"></asp:Label><%=myLanguagesDeal.GetMyString("TextColonCharacter")%></TD>
													<TD class="pad" width="540">
														<asp:textbox id="txtRemark2" runat="server" Width="200px" CssClass="wenbenkuang" MaxLength="100"></asp:textbox></TD>
												</TR>
											</TABLE>
										</asp:Panel>
										<asp:Panel id="PanRemark3" runat="server">
											<TABLE cellSpacing="1" cellPadding="5" width="650" align="center" bgColor="#cccccc" border="0">
												<TR bgColor="#ffffff">
													<TD align="right">
														<asp:Label id="lbRemark3" runat="server"></asp:Label><%=myLanguagesDeal.GetMyString("TextColonCharacter")%></TD>
													<TD class="pad" width="540">
														<asp:textbox id="txtRemark3" runat="server" Width="200px" CssClass="wenbenkuang" MaxLength="100"></asp:textbox></TD>
												</TR>
											</TABLE>
										</asp:Panel>
										<asp:Panel id="PanRemark4" runat="server">
											<TABLE cellSpacing="1" cellPadding="5" width="650" align="center" bgColor="#cccccc" border="0">
												<TR bgColor="#ffffff">
													<TD align="right">
														<asp:Label id="lbRemark4" runat="server"></asp:Label><%=myLanguagesDeal.GetMyString("TextColonCharacter")%></TD>
													<TD class="pad" width="540">
														<asp:textbox id="txtRemark4" runat="server" Width="200px" CssClass="wenbenkuang" MaxLength="100"></asp:textbox></TD>
												</TR>
											</TABLE>
										</asp:Panel>
										<asp:Panel id="PanRemark5" runat="server">
											<TABLE cellSpacing="1" cellPadding="5" width="650" align="center" bgColor="#cccccc" border="0">
												<TR bgColor="#ffffff">
													<TD align="right">
														<asp:Label id="lbRemark5" runat="server"></asp:Label><%=myLanguagesDeal.GetMyString("TextColonCharacter")%></TD>
													<TD class="pad" width="540">
														<asp:textbox id="txtRemark5" runat="server" Width="200px" CssClass="wenbenkuang" MaxLength="100"></asp:textbox></TD>
												</TR>
											</TABLE>
										</asp:Panel>
										<asp:Panel id="PanPaypal1" runat="server">
											<TABLE cellSpacing="1" cellPadding="5" width="650" align="center" bgColor="#cccccc" border="0">
												<TR bgColor="#ffffff">
													<TD align="right"><%=myLanguagesDeal.GetMyString("TextCurrencyType")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%></TD>
													<TD class="pad" width="540">
														<asp:DropDownList id="drlCurrency" runat="server">
															<asp:ListItem Value="CNY">人民币</asp:ListItem>
															<asp:ListItem Value="USD">美元</asp:ListItem>
															<asp:ListItem Value="EUR">Euro</asp:ListItem>
															<asp:ListItem Value="GBP">UK pound</asp:ListItem>
															<asp:ListItem Value="CAD">Canadian dollar</asp:ListItem>
															<asp:ListItem Value="JPY">Japanese Yen</asp:ListItem>
															<asp:ListItem Value="AUD">Australian dollar</asp:ListItem>
														</asp:DropDownList></TD>
												</TR>
											</TABLE>
										</asp:Panel>
										<TABLE cellSpacing="1" cellPadding="5" width="650" align="center" bgColor="#cccccc" border="0">
											<TR bgColor="#ffffff">
												<TD align="right"><%=myLanguagesDeal.GetMyString("TextIsShow")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%><!--是否显示：--></TD>
												<TD class="pad" width="540">
													<asp:checkbox id="ckSelShow" runat="server" Checked="True" Text="显示"></asp:checkbox></TD>
											</TR>
											<TR bgColor="#ffffff">
												<TD align="right"><%=myLanguagesDeal.GetMyString("TextTaxisNumber")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%><!--排序号：--></TD>
												<TD class="pad">
													<asp:textbox id="txtOrder" runat="server" Width="50px" CssClass="wenbenkuang" MaxLength="2"></asp:textbox>
													<asp:RequiredFieldValidator id="RequiredFieldValidator2" runat="server" ControlToValidate="txtOrder" Display="Dynamic"
														ErrorMessage="请输入排序号" ForeColor="#FF0000"></asp:requiredfieldvalidator>
													<asp:CompareValidator id="CompareValidator3" runat="server" ControlToValidate="txtOrder" Display="Dynamic"
														ErrorMessage="请输入整数" Type="Integer" Operator="DataTypeCheck" ForeColor="#FF0000"></asp:CompareValidator></TD>
											</TR>
											<TR bgColor="#ffffff">
												<TD align="right"><%=myLanguagesDeal.GetMyString("PayModeTextSupportCurrency")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%></TD>
												<TD class="pad">
													<asp:DropDownList id="drlSupportCurrency" runat="server">
														<asp:ListItem Value="0">任意货币</asp:ListItem>
													</asp:DropDownList>
													<asp:checkbox id="ckIsExchangePay" runat="server" Text="支持其他货币兑换结算"></asp:checkbox></TD>
											</TR>
											<TR bgColor="#ffffff">
												<TD align="right"><%=myLanguagesDeal.GetMyString("PayModeTextChargeMode")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%></TD>
												<TD class="pad">
													<table  border="0" cellpadding="0" cellspacing="0">
														<tr>
															<td><asp:RadioButtonList id="rblChargeMode" runat="server"  Height="15px" RepeatDirection="Horizontal">
																	<asp:ListItem Value="0" Selected="True">无手续费</asp:ListItem>
																	<asp:ListItem Value="1">定额手续费</asp:ListItem>
																	<asp:ListItem Value="2">按比例手续费</asp:ListItem>
																</asp:RadioButtonList></td>
															<td width="2"></td>
															<td><asp:TextBox id="txtChargeVale" runat="server" Width="60px" CssClass="wenbenkuang" MaxLength="6">0</asp:TextBox>
																<asp:CompareValidator id="CpvChargeValue" runat="server" ControlToValidate="txtChargeVale" ErrorMessage="请输入数字"
																	Type="Double" Operator="DataTypeCheck" ForeColor="#FF0000"></asp:CompareValidator></td>
														</tr>
													</table>
												</TD>
											</TR>
											<TR bgColor="#ffffff">
											<TR bgColor="#ffffff">
												<TD align="right"><%=myLanguagesDeal.GetMyString("TextExplain")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%><!--说明：--></TD>
												<TD class="pad">
													<textarea id="txtContent" cols="100" rows="8" style="width:500px;height:200px;visibility:hidden;" runat="server" ></textarea></TD>
											</TR>
											<TR bgColor="#ffffff">
												<TD align="right"></TD>
												<TD class="pad">&nbsp;
													<asp:button id="btSubmit" runat="server" CssClass="go-wenbenkuang" Text="提交信息" onclick="btSubmit_Click"></asp:button>
													<asp:button id="btSave" runat="server" CssClass="go-wenbenkuang" Text="更新信息" onclick="btSave_Click"></asp:button>&nbsp;&nbsp;
												</TD>
											</TR>
										</TABLE>
										<P align="center">
											<asp:Label id="lbInfo" runat="server" ForeColor="Red"></asp:Label></P>
									</asp:panel></td>
							</tr>
						</table>
					</td>
				</tr>
			</table>
		</form>
		</TR></TBODY></TABLE>
	</body>
</HTML>
