<%@ Register TagPrefix="uc1" TagName="LanguagesDeal" Src="LanguagesDeal.ascx" %>
<%@ Page language="c#" Codebehind="53KFManage.aspx.cs" AutoEventWireup="True" validateRequest="false"  Inherits="DreamerShop.Admin._53KFManage" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>
			<%=myLanguagesDeal.GetMyString("TextOtherTools")%>
			-
			<%=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 selall1()
		{	
			var a = document.getElementsByTagName("input");
		
			var str;
			var len;
			var state;
			
			for (var i=0; i<a.length; i++)
			{
				if (a[i].type == "checkbox") 
				{	
					str=a[i].id;
					len=str.lastIndexOf("SelAllPur1");
					if((len * 1)>=1)
					{
						state=a[i].checked;
						break;
						}
				}
			}
			for (var i=0; i<a.length; i++)
			{
				if (a[i].type == "checkbox") 
				{
					str=a[i].id;
					len=str.lastIndexOf("Purview1");
					if((len * 1)>=1)
						a[i].checked=state;
				}
			}
		}
		
		
		
		
		function imgHelp_onclick() {
			popUpWin("DSHelp/Purview.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('#txtDefinitionContent', {
	                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%" align="center" border="0">
				<tr>
					<td vAlign="top" height="262">
						<table cellSpacing="0" cellPadding="0" width="100%" border="0">
							<tr>
								<td vAlign="top" bgColor="#ffffff" height="300">
									<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("TextOtherTools")%>
																--&gt;<%=myLanguagesDeal.GetMyString("KFTextTitle")%>
															</SPAN>
														</TD>
													</TR>
												</TABLE>
											</TD>
										</TR>
									</TABLE>
									<HR noShade SIZE="1">
									<TABLE cellSpacing="1" cellPadding="5" width="700" align="center" bgColor="#cccccc" border="0">
										<TR bgColor="#ffffff">
											<TD align="left" colSpan="2"><asp:panel id="PanExplain1" runat="server"></asp:panel><asp:panel id="PanExplain2" runat="server" Visible="False"></asp:panel><asp:panel id="PanExplain3" runat="server" Visible="False"></asp:panel><asp:panel id="PanExplain9" runat="server" Visible="False"><%=myLanguagesDeal.GetMyString("KFTextType4Explain")%></asp:panel></TD>
										</TR>
										<TR bgColor="#ffffff">
											<TD align="right"><%=myLanguagesDeal.GetMyString("KFTextType")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%></TD>
											<TD class="pad" width="540"><asp:radiobuttonlist id="rblKFType" runat="server" AutoPostBack="True" RepeatDirection="Horizontal" onselectedindexchanged="rblKFType_SelectedIndexChanged">
													<asp:ListItem Value="1" Selected="True">53KF</asp:ListItem>
													<asp:ListItem Value="2">TQ洽谈通</asp:ListItem>
													<asp:ListItem Value="3">5107网站伴侣</asp:ListItem>
													<asp:ListItem Value="8">其他客服</asp:ListItem>
													<asp:ListItem Value="9">QQ</asp:ListItem>
													<asp:ListItem Value="10">集成弹出式</asp:ListItem>
												</asp:radiobuttonlist></TD>
										</TR>
									</TABLE>
									<asp:panel id="PanTQkfType" runat="server" Visible="False">
										<TABLE cellSpacing="1" cellPadding="5" width="700" align="center" bgColor="#cccccc" border="0">
											<TR bgColor="#ffffff">
												<TD align="right"><%=myLanguagesDeal.GetMyString("KFTextTQType")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%></TD>
												<TD class="pad" width="540">
													<asp:radiobuttonlist id="rblTQkfType" runat="server" AutoPostBack="True" RepeatDirection="Horizontal" onselectedindexchanged="rblTQkfType_SelectedIndexChanged">
														<asp:ListItem Value="1" Selected="True">漂浮框形式</asp:ListItem>
														<asp:ListItem Value="2">自定义代码</asp:ListItem>
													</asp:radiobuttonlist></TD>
											</TR>
										</TABLE>
										<asp:panel id="PanTQShowPar" runat="server" Visible="False">
											<TABLE cellSpacing="1" cellPadding="5" width="700" align="center" bgColor="#cccccc" border="0">
												<TR bgColor="#ffffff">
													<TD align="right"><%=myLanguagesDeal.GetMyString("KFTextTQCustomCodes")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%></TD>
													<TD class="pad" width="540">
														<asp:textbox id="txtCustomCodes" runat="server" Width="400px" CssClass="wenbenkuang" EnableViewState="False"
															TextMode="MultiLine" Rows="8"></asp:textbox></TD>
												</TR>
											</TABLE>
										</asp:panel>
									</asp:panel><asp:panel id="PanQQkfType" runat="server" Visible="False">
										<TABLE cellSpacing="1" cellPadding="5" width="700" align="center" bgColor="#cccccc" border="0">
											<TR bgColor="#ffffff">
												<TD align="right"><%=myLanguagesDeal.GetMyString("KFTextQQParameter")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%><!--参数--></TD>
												<TD class="pad"><%=myLanguagesDeal.GetMyString("KFTextQQParameter1")%>
													<asp:textbox id="txtQQPar1" runat="server" Width="50px" CssClass="wenbenkuang" MaxLength="4"></asp:textbox>
													<asp:CompareValidator id="cpvQQPar1" runat="server" Type="Integer" Operator="DataTypeCheck" ControlToValidate="txtQQPar1"
														Display="Dynamic" ErrorMessage="请输入整数" ForeColor="#FF0000"></asp:CompareValidator>
													<asp:RequiredFieldValidator id="refQQPar1" runat="server" ControlToValidate="txtQQPar1" Display="Dynamic" ErrorMessage="输入底部距离" ForeColor="#FF0000"></asp:requiredfieldvalidator><!--距离屏幕左边--><%=myLanguagesDeal.GetMyString("KFTextQQParameter2")%>
													<asp:textbox id="txtQQPar2" runat="server" Width="50px" CssClass="wenbenkuang" MaxLength="4"></asp:textbox>
													<asp:CompareValidator id="cpvQQPar2" runat="server" Type="Integer" Operator="DataTypeCheck" ControlToValidate="txtQQPar2"
														Display="Dynamic" ErrorMessage="请输入整数" ForeColor="#FF0000"></asp:CompareValidator>
													<asp:RequiredFieldValidator id="refQQPar2" runat="server" ControlToValidate="txtQQPar2" Display="Dynamic" ErrorMessage="请输入左边距离" ForeColor="#FF0000"></asp:requiredfieldvalidator></TD>
											</TR>
											<TR bgColor="#ffffff">
												<TD align="right"><%=myLanguagesDeal.GetMyString("KFTextQQType")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%><!--样式--></TD>
												<TD class="pad" width="540">
													<asp:DropDownList id="drlQQPar3" runat="server">
														<asp:ListItem Value="Type1">样式一</asp:ListItem>
														<asp:ListItem Value="Type2">样式二</asp:ListItem>
														<asp:ListItem Value="Type3">样式三</asp:ListItem>
													</asp:DropDownList></TD>
											</TR>
										</TABLE>
									</asp:panel><asp:panel id="PanKfDefinition" runat="server">
										<TABLE cellSpacing="1" cellPadding="5" width="700" align="center" bgColor="#cccccc" border="0">
											<TR bgColor="#ffffff">
												<TD align="right"><%=myLanguagesDeal.GetMyString("KFTextType10Par1")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%></TD>
												<TD class="pad" width="540">
													<asp:radiobuttonlist id="rblkfDefinitionPar1" runat="server" RepeatDirection="Horizontal">
														<asp:ListItem Value="1" Selected="True">左侧</asp:ListItem>
														<asp:ListItem Value="2">右侧</asp:ListItem>
													</asp:radiobuttonlist></TD>
											</TR>
											<TR bgColor="#ffffff">
												<TD align="right"><%=myLanguagesDeal.GetMyString("KFTextType10Par2")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%><!--位置参数：--></TD>
												<TD class="pad"><!--高-->
													<asp:textbox id="txtkfDefinitionPar2" runat="server" Width="50px" CssClass="wenbenkuang" MaxLength="4"
														Text="90"></asp:textbox>
													<asp:CompareValidator id="cpvkfDefinitionPar2" runat="server" Type="Integer" Operator="DataTypeCheck"
														ControlToValidate="txtkfDefinitionPar2" Display="Dynamic" ErrorMessage="请输入整数" ForeColor="#FF0000"></asp:CompareValidator>
													<asp:RequiredFieldValidator id="rfvDefinitionPar2" runat="server" ControlToValidate="txtkfDefinitionPar2" Display="Dynamic"
														ErrorMessage="输入顶部距离" ForeColor="#FF0000"></asp:requiredfieldvalidator><!--宽--></TD>
											</TR>
											<TR bgColor="#ffffff">
												<TD align="right"><%=myLanguagesDeal.GetMyString("KFTextType10Par3")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%><!--位置参数：--></TD>
												<TD class="pad" width="540"><!--高-->
													<asp:textbox id="txtkfDefinitionPar3" runat="server" Width="50px" CssClass="wenbenkuang" MaxLength="4"
														Text="170"></asp:textbox>
													<asp:CompareValidator id="cpvkfDefinitionPar3" runat="server" Type="Integer" Operator="DataTypeCheck"
														ControlToValidate="txtkfDefinitionPar3" Display="Dynamic" ErrorMessage="请输入整数" ForeColor="#FF0000"></asp:CompareValidator>
													<asp:RequiredFieldValidator id="rfvDefinitionPar3" runat="server" ControlToValidate="txtkfDefinitionPar3" Display="Dynamic"
														ErrorMessage="请输入宽度" ForeColor="#FF0000"></asp:requiredfieldvalidator></TD>
											</TR>
											<TR style="DISPLAY:none " bgColor="#ffffff">
												<TD align="right"><%=myLanguagesDeal.GetMyString("KFTextType10Par4")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%><!--大小参数：--></TD>
												<TD class="pad">
													<asp:textbox id="txtkfDefinitionPar4" runat="server" Width="200px" CssClass="wenbenkuang" MaxLength="50"></asp:textbox>
													<asp:RequiredFieldValidator id="rfvDefinitionPar4" runat="server" ControlToValidate="txtkfDefinitionPar4" Display="Dynamic"
														ErrorMessage="输入标题" Enabled="False" ForeColor="#FF0000"></asp:requiredfieldvalidator></TD>
											</TR>
											<TR bgColor="#ffffff">
												<TD align="right"><%=myLanguagesDeal.GetMyString("TextContent")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%><!--内容：--></TD>
												<TD class="pad">
													<textarea id="txtDefinitionContent" cols="100" rows="8" style="width:500px;height:200px;visibility:hidden;" runat="server" ></textarea></TD>
											</TR>
										</TABLE>
									</asp:panel><asp:panel id="PanKfAccount" runat="server">
										<TABLE cellSpacing="1" cellPadding="5" width="700" align="center" bgColor="#cccccc" border="0">
											<TR bgColor="#ffffff">
												<TD align="right"><%=myLanguagesDeal.GetMyString("53kfTextAccount")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%><!--用 户 名：--></TD>
												<TD class="pad" width="540">
													<asp:textbox id="txtName" runat="server" Width="260px" CssClass="wenbenkuang" EnableViewState="False"
														MaxLength="150"></asp:textbox>
													<asp:requiredfieldvalidator id="RequiredFieldValidator1" runat="server" ControlToValidate="txtName" Display="Dynamic"
														ErrorMessage="请输入帐号" ForeColor="#FF0000"></asp:requiredfieldvalidator></TD>
											</TR>
										</TABLE>
									</asp:panel><asp:panel id="PanKFOther" runat="server" Visible="False">
										<TABLE cellSpacing="1" cellPadding="5" width="700" align="center" bgColor="#cccccc" border="0">
											<TR bgColor="#ffffff">
												<TD align="right"><%=myLanguagesDeal.GetMyString("KFTextTQCustomCodes")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%></TD>
												<TD class="pad" width="540">
													<asp:textbox id="txOtherCodes" runat="server" Width="400px" CssClass="wenbenkuang" EnableViewState="False"
														TextMode="MultiLine" Rows="8"></asp:textbox></TD>
											</TR>
										</TABLE>
									</asp:panel>
									<TABLE cellSpacing="1" cellPadding="5" width="700" align="center" bgColor="#cccccc" border="0">
										<TR bgColor="#ffffff">
											<TD align="right"><asp:checkbox id="ckSelAllPur1" onclick="selall1()" runat="server" Text="全选"></asp:checkbox></TD>
											<TD class="pad" width="540"><asp:checkboxlist id="cblPurview1" runat="server" RepeatDirection="Horizontal" RepeatColumns="5">
													<asp:ListItem Value="0">所有页面</asp:ListItem>
													<asp:ListItem Value="1">首页</asp:ListItem>
													<asp:ListItem Value="2">商品详细页</asp:ListItem>
													<asp:ListItem Value="3">商店公告页</asp:ListItem>
													<asp:ListItem Value="4">商品分类页</asp:ListItem>
													<asp:ListItem Value="5">全部商品页</asp:ListItem>
													<asp:ListItem Value="6">帮助中心页</asp:ListItem>
													<asp:ListItem Value="7">会员中心页</asp:ListItem>
												</asp:checkboxlist></TD>
										</TR>
										<TR bgColor="#ffffff">
											<TD align="right"></TD>
											<TD class="pad" align="left">&nbsp;
												<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>
								</td>
							</tr>
						</table>
					</td>
				</tr>
			</table>
		</form>
	</body>
</HTML>
