<%@ Register TagPrefix="ftb" Namespace="FreeTextBoxControls" Assembly="FreeTextBox" %>
<%@ Page language="c#" Codebehind="SystemConfig.aspx.cs" AutoEventWireup="false" Inherits="wqeshop.Admin.SystemConfig" validateRequest="false" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>SystemConfig</title>
		<LINK href="inc/style.css" type="text/css" rel="stylesheet">
			<script language="javascript">
			function ShopStop()
			{
				if(document.Form1.ddlShopStop.value == "0")
				{
					eval("stopwords" + ".style.display=\"\";");
				}
				else
				{
					eval("stopwords" + ".style.display=\"none\";");
				}
			}
			function Score()
			{
				if(document.Form1.ddlScores.value == "1")
				{
					eval("scoreMark" + ".style.display=\"\";");
				}
				else
				{
					eval("scoreMark" + ".style.display=\"none\";");
				}
			}
			function CacheTime()
			{
				if(document.Form1.ddlUseCache.value == "1")
				{
					eval("cacheTime" + ".style.display=\"\";");
				}
				else
				{
					eval("cacheTime" + ".style.display=\"none\";");
				}
			}
			</script>
	</HEAD>
	<body>
		<form id="Form1" method="post" runat="server">
<table width="99%" height="550" style="border:1px #619ADF solid; border-left:0;margin-top:6px; margin-right:7px;background:#F2F7FD;" cellspacing="0" cellpadding="0">
  <tr>
    <td valign="top">
<div class="top">
<table width="100%" align="center" cellspacing="0" cellpadding="0">
	<tr>
		<td class="tl"></td>
		<td class="tm"><span class="tt">系统管理 &gt;&gt; 系统设置</span></td>
		<td class="tm2"><span class="tt"><a href="http://www.wangqi.com" target="_blank"><img src="Images/admin_help.gif" border="0" alt="帮助"></a></span></td>
		<td class="tr"></td>
	</tr>
</table>
</div>
<div class="mframe">
<table width="100%" align="center" cellspacing="0" cellpadding="0">
	<tr>
		<td class="tl"></td>
		<td class="tm"><div class="tt">&nbsp; 系统设置</div></td>
		<td class="tr"></td>
	</tr>
</table>
<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="#EBF3FE" valign="top" style=" border-right:1px #77ABE5 solid;">
<table width="90%"  cellspacing="0" cellpadding="0">
	<tr>
		<td class="ml1"></td>
		<td class="mm1">
<table class="tableBorder" cellSpacing="0" cellPadding="0" width="95%" align="center" border="0">
							<tr>
								<td colspan="4" class="tdbg-dark"><b>网站基本信息</b>
								</td>
							</tr>
							<tr>
								<td align="left" width="110">
									网店名称：
								</td>
								<td>
									<asp:TextBox id="txtSiteName" CssClass="input" runat="server"></asp:TextBox><font color="red">*</font>
								</td>
								<td align="left" width="110">
									网站网址：
								</td>
								<td>
									<asp:TextBox id="txtSiteUrl" CssClass="input" runat="server"></asp:TextBox>
								</td>
							</tr>
							<tr>
								<td align="left" height="18">
									公司名称：
								</td>
								<td height="18">
									<asp:TextBox id="txtCompanyName" CssClass="input" runat="server"></asp:TextBox>
								</td>
								<td align="left">
									联系人：
								</td>
								<td>
									<asp:TextBox id="txtLinkman" CssClass="input" runat="server"></asp:TextBox>
								</td>
							</tr>
							<tr>
								<td align="left" height="18">
									固定电话：
								</td>
								<td height="18">
									<asp:TextBox id="txtPhone" CssClass="input" runat="server"></asp:TextBox>
								</td>
								<td align="left">
									移动电话：
								</td>
								<td>
									<asp:TextBox id="txtMobile" CssClass="input" runat="server"></asp:TextBox>
								</td>
							</tr>
							<tr>
								<td align="left" height="18">
									电子邮件：
								</td>
								<td height="18">
									<asp:TextBox id="txtEmail" CssClass="input" runat="server"></asp:TextBox>
								</td>
								<td align="left">
									邮政编码：
								</td>
								<td>
									<asp:TextBox id="txtPostalcode" CssClass="input" runat="server"></asp:TextBox>
								</td>
							</tr>
							<tr>
								<td align="left" height="18">
									联系地址：
								</td>
								<td height="18" colspan="3">
									<asp:TextBox id="txtAddress" CssClass="input" runat="server"></asp:TextBox>
								</td>
							</tr>
							<tr>
								<td align="left">
									版权信息：
								</td>
								<td colspan="3">
									<P><FONT face="宋体">
											<FTB:FREETEXTBOX id="ftbCopyright" runat="server" Width="450px" Height="150px" ButtonOverImage="True"
												ButtonDownImage="True" ButtonPath="images/ftb/officeXP/" ToolbarType="OfficeXP" ImageGalleryPath="Upload/"></FTB:FREETEXTBOX></FONT></P>
								</td>
							</tr>
						</table>
						<table class="tableBorder" cellSpacing="0" cellPadding="0" width="95%" align="center" border="0">
							<tr>
								<td colspan="2" class="tdbg-dark"><STRONG>商店设置</STRONG>&nbsp;
								</td>
							</tr>
							<tr>
								<td align="left" width="110">
									商店开关：
								</td>
								<td>
									<asp:DropDownList id="ddlShopStop" runat="server">
										<asp:ListItem Value="1">正常营业</asp:ListItem>
										<asp:ListItem Value="0">暂时关闭</asp:ListItem>
									</asp:DropDownList>
									<SPAN id="stopwords" style="DISPLAY: none">关闭说明：<asp:TextBox ID="txtShopStopWords" Runat="server"></asp:TextBox></SPAN>
									<script language="javascript">ShopStop();</script>
								</td>
							</tr>
							<tr>
								<td align="left" width="110">
									每页显示商品数：
								</td>
								<td>
									<asp:TextBox ID="txtProductPageSize" CssClass="input" Runat="server"></asp:TextBox><FONT color="red">*</FONT>
								</td>
							</tr>
							<tr>
								<td align="left" width="110">
									是否累计积分：
								</td>
								<td>
									<asp:DropDownList id="ddlScores" runat="server">
										<asp:ListItem Value="1">是</asp:ListItem>
										<asp:ListItem Value="-1">否</asp:ListItem>
									</asp:DropDownList>
									<!--
									<SPAN id="scoreMark" style="DISPLAY: none"><asp:TextBox id="txtMarkUnit" Runat="server" Width="50px">1</asp:TextBox>元可换取 
										1 积分</SPAN>
									<script language="javascript">Score();</script>
									-->
								</td>
							</tr>
							<!--
							<tr>
								<td align="left" width="110">
									启用U盾加密锁：
								</td>
								<td>
									<asp:CheckBox ID="cbxUKeyEnabled" Runat="server" Text="启用U盾加密锁"></asp:CheckBox>
								</td>
							</tr>
							-->
							<tr>
								<td align="left" width="110">
									是否使用缓存：
								</td>
								<td>
									<asp:DropDownList id="ddlUseCache" runat="server">
										<asp:ListItem Value="1">是</asp:ListItem>
										<asp:ListItem Value="0">否</asp:ListItem>
									</asp:DropDownList>
									<SPAN id="cacheTime" style="DISPLAY: none"><asp:TextBox id="txtCacheTime" Runat="server" Width="50px">600</asp:TextBox> 秒</SPAN>
									<script language="javascript">CacheTime();</script>
								</td>
							</tr>
							<tr>
								<td align="left" height="17">
									前台默认语言：
								</td>
								<td height="17">
									<asp:DropDownList id="ddlLanguages" runat="server">
										<asp:ListItem Value="zh-cn">简体中文</asp:ListItem>
										<asp:ListItem Value="zh-tw">繁体中文</asp:ListItem>
										<asp:ListItem Value="en-us">英文</asp:ListItem>
									</asp:DropDownList>请确保当前模板支持所选语言
								</td>
							</tr>
							<tr>
								<td align="left" height="19">
									使用模板：
								</td>
								<td height="19">
									<asp:DropDownList id="ddlTemplates" runat="server">
										<asp:ListItem Value="1">动网新闻</asp:ListItem>
									</asp:DropDownList>
								</td>
							</tr>
							<tr>
								<td align="left" height="19">
									允许友情链接申请：
								</td>
								<td height="19">
									<asp:DropDownList id="ddlLinkAllowApply" runat="server">
										<asp:ListItem Value="1">是</asp:ListItem>
										<asp:ListItem Value="0">否</asp:ListItem>
									</asp:DropDownList>
								</td>
							</tr>
							<tr>
								<td align="left" height="19">
									友情链接logo高度：
								</td>
								<td height="19">
									<asp:TextBox ID="txtLinkLogoHeight" CssClass="input" Runat="server" Width="30px"></asp:TextBox><FONT color="red">*</FONT>
								</td>
							</tr>
							<tr>
								<td align="left" height="19">
									友情链接logo宽度：
								</td>
								<td height="19">
									<asp:TextBox ID="txtLinkLogoWidth" CssClass="input" Runat="server" Width="30px"></asp:TextBox><FONT color="red">*</FONT>
								</td>
							</tr>
							<tr>
								<td align="left" height="19">
									留言审批：
								</td>
								<td height="19">
									<asp:DropDownList id="ddlReviewPass" runat="server">
										<asp:ListItem Value="1">是</asp:ListItem>
										<asp:ListItem Value="0">否</asp:ListItem>
									</asp:DropDownList>
								</td>
							</tr>
							<tr style="display:none;">
								<td align="left" height="19">非会员显示价格：
								</td>
								<td height="19"><asp:dropdownlist id="ddlMemberShowPrice" runat="server">
										<asp:ListItem Value="1">是</asp:ListItem>
										<asp:ListItem Value="0">否</asp:ListItem>
									</asp:dropdownlist></td>
							</tr>
							<tr>
								<td align="left" height="19">
									开放验证码：
								</td>
								<td height="19">
									<asp:DropDownList id="ddlCode" runat="server">
										<asp:ListItem Value="1">是</asp:ListItem>
										<asp:ListItem Value="0">否</asp:ListItem>
									</asp:DropDownList>
								</td>
							</tr>
							<tr>
								<td align="left" height="19">
									使用送货时间：
								</td>
								<td height="19">
									<asp:DropDownList id="Dropdownlist1" runat="server" AutoPostBack="True">
										<asp:ListItem Value="1">是</asp:ListItem>
										<asp:ListItem Value="0">否</asp:ListItem>
									</asp:DropDownList><FONT face="宋体">&nbsp;&nbsp;&nbsp;
										<asp:RadioButton id="RadioButton1" runat="server" GroupName="1" Text="模糊时间" Checked="True" Visible="False"></asp:RadioButton>&nbsp;
										<asp:RadioButton id="RadioButton2" runat="server" GroupName="1" Text="具体时间" Visible="False"></asp:RadioButton></FONT>
								</td>
							</tr>
							<tr>
								<td align="left" height="19">
									是否使用静态页面：
								</td>
								<td height="19">
									<asp:DropDownList id="ddlhtml" runat="server">										
										<asp:ListItem Value="html">是</asp:ListItem>
										<asp:ListItem Value="">否</asp:ListItem>
									</asp:DropDownList>注意：如果使用静态页面，则不能进行网站语言切换
								</td>
							</tr>
							<tr>
								<td align="left" height="19">安全校验码：
								</td>
								<td height="19"><asp:textbox id="txtsafecode" Width="256px" Runat="server"></asp:textbox>
									<asp:LinkButton id="lkb_code" runat="server">生成安全校验码</asp:LinkButton><FONT color="red"></FONT>
								</td>
							</tr>
							<tr>
								<td align="left" height="19">水印设置：
								</td>
								<td height="19">
									上传商品大图水印图片：<INPUT id="File1" type="file" name="file1" runat="server">(只支持.gif格式)
									<br>
									上传商品小图水印图片：<INPUT id="File2" type="file" name="file2" runat="server">(只支持.gif格式)
									<br>
									设置水印文字：<asp:textbox id="txtWatermarkWord" Runat="server"></asp:textbox>
								</td>
							</tr>
						</table>
						<table class="tableBorder" cellSpacing="0" cellPadding="0" width="95%" align="center" border="0">
							<tr>
								<td colspan="4" class="tdbg-dark"><STRONG>邮件设置</STRONG>&nbsp;
								</td>

							</tr>
							<tr>
								<td align="left" width="110">
									SMTP服务器名称：
								</td>
								<td>
									<asp:TextBox id="txtSmtpServer" CssClass="input" runat="server"></asp:TextBox>
								</td>
								<td align="left">
									SMTP邮箱帐号名称：
								</td>
								<td>
									<asp:TextBox id="txtSmtpAccount" CssClass="input" runat="server"></asp:TextBox>
								</td>
							</tr>
							<tr>
								<td align="left">
									SMTP邮箱名称：
								</td>
								<td>
									<asp:TextBox id="txtSmtpMailbox" CssClass="input" runat="server"></asp:TextBox>
								</td>
								<td align="left">
									SMTP邮箱帐号密码：
								</td>
								<td>
									<asp:TextBox id="txtSmtpPassword" CssClass="input" runat="server"></asp:TextBox>
								</td>
							</tr>
							<tr>
								<td align="left">
									SMTP服务器端口：
								</td>
								<td>
									<asp:TextBox id="txtSmtpPort" CssClass="input" runat="server"></asp:TextBox>
								</td>
								<td>
									SMTP身份验证：
								</td>
								<td><FONT face="宋体">
										<asp:DropDownList id="ddlSmtpValidation" runat="server">
											<asp:ListItem Value="1">是</asp:ListItem>
											<asp:ListItem Value="0">否</asp:ListItem>
										</asp:DropDownList></FONT></td>
							</tr>
						</table>
						<div style='display:none'>
						<table class="tableBorder" cellSpacing="0" cellPadding="0" width="95%" align="center" border="0">
							<tr>
								<td class="tdbg-dark" colspan="4"><A name='message'></A><b>手机短信通知设置</b><font color=red>(目前您还剩<font color=blue><%=messageNum%></font>条短信通知)</font>&nbsp;<a href="http://www.estoreunion.com/default.aspx?Action=chongzhi&ResellerID=wqeshop" target="_blank"><font color=red><b>>>我要去充值</b></font></a>
								</td>
							</tr>
							<tr>
								<td align="left" width="150">
									短信接口用户名：
								</td>
								<td>
									<asp:TextBox id="txtMessageUser" runat="server"></asp:TextBox>
								</td>
								<td align="left">
									短信接口密码：
								</td>
								<td>
									<asp:TextBox id="txtMessagePW" runat="server" ></asp:TextBox>
								</td>
							</tr>
							<tr>
								<td align="left">
									短信接受号码：
								</td>
								<td colspan=3>
									<asp:TextBox id="txtMobileNum" runat="server" width=240></asp:TextBox> (多个手机号码请用英文的逗号分开)
								</td>
							</tr>
							<tr>
								<td colspan=4><font color=red>* 手机短信需要先到短信接口网站充值才能获得，充值后把接口网站上注册的用户名密码填入上面相应的输入框里面，保存即可。
								当有客户下订单时，系统会自动将订单信息发送到您设置的手机号码里面。</font></td>
							</tr>
						</table>
						</div>
						<table class="tableBorder" cellSpacing="0" cellPadding="0" width="95%" align="center" border="0">
							<tr>
								<td colspan="4" class="tdbg-dark"><b>首页设置</b>
								</td>
							</tr>
							<tr>
								<td align="left">
									首页顶部Logo：
								</td>
								<td colspan="3">
									<FTB:FREETEXTBOX id="ftbLogo" runat="Server" Width="380px" Height="180px" ImageGalleryPath="Upload/"
										ToolbarType="OfficeXP" ButtonPath="images/ftb/officeXP/" ButtonDownImage="True" ButtonOverImage="True"></FTB:FREETEXTBOX><FONT face="宋体"><BR>
									</FONT>
								</td>
							</tr>
							<tr style="display:none;">
								<td align="left">
									首页顶部广告：
								</td>
								<td colspan="3">
									<FTB:FREETEXTBOX id="ftbAD" runat="Server" Width="450px" Height="180px" ImageGalleryPath="Upload/"
										ToolbarType="OfficeXP" ButtonPath="images/ftb/officeXP/" ButtonDownImage="True" ButtonOverImage="True"></FTB:FREETEXTBOX>
								</td>
							</tr>
                            <tr>
								<td align="left">
									首页Title：
								</td>
								<td colspan="3">
									<asp:TextBox id="txtSiteTitle" CssClass="input" runat="server" Width="350px"></asp:TextBox>
								</td>
							</tr>
							<tr>
								<td align="left">
									首页Meta_Description：
								</td>
								<td colspan="3">
									<asp:TextBox id="txtMetaDesc" CssClass="input" runat="server" TextMode="MultiLine" Height="50px" Width="350px"></asp:TextBox>
								</td>
							</tr>
							<tr>
								<td align="left">
									首页Meta_Keywords：
								</td>
								<td colspan="3">
									<asp:TextBox id="txtMetaKeywords" CssClass="input" runat="server" TextMode="MultiLine" Height="50px" Width="350px"></asp:TextBox>
								</td>
							</tr>
							<tr>
							    <td colspan="4" style=" color:Blue">
							        请在商品类别管理里记录好分类ID,然后将他们用‘|’分隔填入下面的文本框(例如: 1|2|3|4|5|6 ),前台将按照填入的顺序进行分类显示,应填入6个分类ID,填入数字和‘|’以外的字符被视为非法。
							    </td>
							</tr>
							<tr>
								<td align="left">
									首页商品类别：
								</td>
								<td colspan="3">
									<asp:TextBox id="txtDefaultCategory" runat="server"  Width="350px"></asp:TextBox>
								</td>
							</tr>
							<tr style="display:none;">
								<td align="left">
									首页滚动公告数量：
								</td>
								<td colspan="3">
									<asp:TextBox id="txtBulletinSizeInIndex" CssClass="input" runat="server" Width="50px"></asp:TextBox><FONT color="red">*</FONT>
								</td>
							</tr>
							<tr>
								<td align="left">
									首页推荐商品数量：
								</td>
								<td>
									<asp:TextBox id="txtCommendProductSizeInIndex" CssClass="input" runat="server" Width="50px"></asp:TextBox><FONT color="red">*</FONT>
								</td>
								<td align="left">
									首页热卖商品数量：
								</td>
								<td>
									<asp:TextBox id="txtHotProductSizeInIndex" CssClass="input" runat="server" Width="50px"></asp:TextBox><FONT color="red">*</FONT>
								</td>
							</tr>
							<tr>
								<td align="left">
									首页最新商品数量：
								</td>
								<td>
									<asp:TextBox id="txtNewProductSizeInIndex" CssClass="input" runat="server" Width="50px"></asp:TextBox><FONT color="red">*</FONT>
								</td>
								<td align="left">
									首页折扣商品数量：
								</td>
								<td>
									<asp:TextBox id="txtDiscountProductSizeInIndex" CssClass="input" runat="server" Width="50px"></asp:TextBox><FONT color="red">*</FONT>
								</td>
							</tr>
						</table>
						<table class="tableBorder" cellSpacing="0" cellPadding="0" width="95%" align="center" border="0">
							<tr>
								<td class="tdbg-dark"><b>缺货处理</b>
								</td>
							</tr>
							<tr>
								<td>
									<asp:RadioButton id="rb1" runat="server" Text="继续在前台商品列表中显示，并允许购买" GroupName="Inventory"></asp:RadioButton>
									<br>
									<asp:RadioButton id="rb2" runat="server" Text="继续在前台商品列表中显示，但不允许购买，提示该商品缺货" GroupName="Inventory"></asp:RadioButton>
									<br>
									<asp:RadioButton id="rb3" runat="server" Text="前台商品列表不显示，并不允许购买" GroupName="Inventory"></asp:RadioButton>
								</td>
							</tr>
							<tr>
								<td align="center" colspan="4"><br>
									<asp:Button id="btnSave" CssClass="btn" runat="server" Text="保存"></asp:Button>&nbsp;&nbsp;
									<asp:Button id="btnCancel" CssClass="btn" runat="server" Text="取消" CausesValidation="False"></asp:Button></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>
