<%@ Page language="c#" Codebehind="SystemConfig.aspx.cs" AutoEventWireup="false" Inherits="XpShop.WebUI.Admin.SystemConfig" validateRequest="false" %>
<%@ Register TagPrefix="ftb" Namespace="FreeTextBoxControls" Assembly="FreeTextBox" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<HTML>
	<HEAD>
		 <!--#include file="inc/head.inc"-->
		<title>SystemConfig</title>		
		 <script type="text/javascript" src="inc/SystemConfig.js"></script>
			<script language="javascript">
			function ShopStop()
			{
				if(document.Form1.ddlShopStop.value == "0")
				{
					document.getElementById("stopwords").style.display = "";
				}
				else
				{
					document.getElementById("stopwords").style.display = "none";
				}
			}
			function Score()
			{
				if(document.Form1.ddlScores.value == "1")
				{
					document.getElementById("stopwords").style.display = "";
				}
				else
				{
					document.getElementById("stopwords").style.display = "none";
				}
			}
			function CacheTime()
			{
				if(document.Form1.ddlUseCache.value == "1")
				{
					document.getElementById("cacheTime").style.display = "";
				}
				else
				{
					document.getElementById("cacheTime").style.display = "none";
				}
			}
			</script>
	</HEAD>
	<body>
		<div class="container">		
		<div class="sub_container">
		<form id="Form1" method="post" runat="server">
		<div class="sub_container_title"><a href="../default.aspx" target="_blank">桌面</a><img src="images/admin_title.jpg" height=9px width=8px align="absmiddle" />基本设置</div>
		<div class="sub_container_tabs">
			<div class="tabmenu">
			    <ul>
			        <li class="menuitem tabon">全部信息</li>
			        <li class="menuitem tabout">网店基本信息</li>
			        <li class="menuitem tabout">商店设置</li>
			        <li class="menuitem tabout">邮件设置</li>
			        <li class="menuitem tabout">手机短信通知设置</li>
			        <li class="menuitem tabout">首页设置</li>
			        <li class="menuitem tabout">缺货处理</li>
			    </ul>
			</div>
		</div>
		<div class="sub_container_content">
		
		    <div class="frame tab">
		        <div class="frame_title">网站基本信息</div>
		        <div class="frame_content">
		            <table class="tableBorder" cellSpacing="0" cellPadding="0" width="95%" align="center" border="0">
				        <tr>
					        <td align="left" width="110">
						        网店名称：
					        </td>
					        <td>
						        <asp:TextBox id="txtSiteName" runat="server"></asp:TextBox><font color="red">*</font>
					        </td>
					        <td align="left" width="110">
						        网站网址：
					        </td>
					        <td>
						        <asp:TextBox id="txtSiteUrl" runat="server"></asp:TextBox>
					        </td>
				        </tr>
				        <tr>
					        <td align="left" height="18">
						        公司名称：
					        </td>
					        <td height="18">
						        <asp:TextBox id="txtCompanyName" runat="server"></asp:TextBox>
					        </td>
					        <td align="left">
						        联系人：
					        </td>
					        <td>
						        <asp:TextBox id="txtLinkman" runat="server"></asp:TextBox>
					        </td>
				        </tr>
				        <tr>
					        <td align="left" height="18">
						        固定电话：
					        </td>
					        <td height="18">
						        <asp:TextBox id="txtPhone" runat="server"></asp:TextBox>
					        </td>
					        <td align="left">
						        移动电话：
					        </td>
					        <td>
						        <asp:TextBox id="txtMobile" runat="server"></asp:TextBox>
					        </td>
				        </tr>
				        <tr>
					        <td align="left" height="18">
						        电子邮件：
					        </td>
					        <td height="18">
						        <asp:TextBox id="txtEmail" runat="server"></asp:TextBox>
					        </td>
					        <td align="left">
						        邮政编码：
					        </td>
					        <td>
						        <asp:TextBox id="txtPostalcode" runat="server"></asp:TextBox>
					        </td>
				        </tr>
				        <tr>
					        <td align="left" height="18">
						        联系地址：
					        </td>
					        <td height="18" colspan="3">
						        <asp:TextBox id="txtAddress" 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>
		        </div>
		    </div>
		    <div class="frame tab">
		        <div class="frame_title">商店设置</div>
		        <div class="frame_content">
		            <table class="tableBorder" cellSpacing="0" cellPadding="0" width="95%" align="center" border="0">
				        <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" Runat="server"></asp:TextBox><FONT color="red">*</FONT>
					        </td>
				        </tr>
				        -->
				        <tr>
					        <td align="left">用户地址簿数量上限：</td>
					        <td><asp:textbox id="txtMemberMaxAdrressCount" Width="30px" Runat="server">4</asp:textbox><FONT color="red">*</FONT></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="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">
						        是否使用缓存：
					        </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" 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" 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>
					        <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">
							        <asp:ListItem Value="1">是</asp:ListItem>
							        <asp:ListItem Value="0">否</asp:ListItem>
						        </asp:DropDownList>&nbsp;&nbsp;&nbsp;
							        <span id="span_time"><asp:RadioButton id="RadioButton1" runat="server" GroupName="1" Text="模糊时间" Checked="True"></asp:RadioButton>&nbsp;
							        <asp:RadioButton id="RadioButton2" runat="server" GroupName="1" Text="具体时间"></asp:RadioButton></span>
					        </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>
		        </div>
		    </div>
		    <div class="frame tab">
		        <div class="frame_title">邮件设置</div>
		        <div class="frame_content">
		            <table class="tableBorder" cellSpacing="0" cellPadding="0" width="95%" align="center" border="0">
		                <tr>
			                <td align="left" width="110">
				                SMTP服务器名称：
			                </td>
			                <td>
				                <asp:TextBox id="txtSmtpServer" runat="server"></asp:TextBox>
			                </td>
			                <td align="left">
				                SMTP邮箱帐号名称：
			                </td>
			                <td>
				                <asp:TextBox id="txtSmtpAccount" runat="server"></asp:TextBox>
			                </td>
		                </tr>
		                <tr>
			                <td align="left">
				                SMTP邮箱名称：
			                </td>
			                <td>
				                <asp:TextBox id="txtSmtpMailbox" runat="server"></asp:TextBox>
			                </td>
			                <td align="left">
				                SMTP邮箱帐号密码：
			                </td>
			                <td>
				                <asp:TextBox id="txtSmtpPassword" runat="server"></asp:TextBox>
			                </td>
		                </tr>
		                <tr>
			                <td align="left">
				                SMTP服务器端口：
			                </td>
			                <td>
				                <asp:TextBox id="txtSmtpPort" 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>
	        </div>
	        <div class="frame tab">
		        <div class="frame_title"><A name='message'></A>手机短信通知设置<font color=red>(目前您还剩<font color=blue><%=messageNum%></font>条短信通知)</font>&nbsp;<a href="http://www.estoreunion.com/default.aspx?Action=chongzhi&ResellerID=xpshop" target="_blank"><font color=red><b>>>我要去充值</b></font></a></div>
		        <div class="frame_content">
		            <table class="tableBorder" cellSpacing="0" cellPadding="0" width="95%" align="center" border="0">
				        <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>
	        </div>
	        <div class="frame tab">
		        <div class="frame_title">首页设置</div>
		        <div class="frame_content">
		            <table class="tableBorder" cellSpacing="0" cellPadding="0" width="95%" align="center" border="0">
				        <tr>
					        <td align="left">
						        首页Title：
					        </td>
					        <td colspan="3">
						        <asp:TextBox id="txtSiteTitle" runat="server" Width="350px"></asp:TextBox>
					        </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>
					        <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">
						        首页Meta_Description：
					        </td>
					        <td colspan="3">
						        <asp:TextBox id="txtMetaDesc" 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" 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>
					        <td align="left">
						        首页滚动公告数量：
					        </td>
					        <td colspan="3">
						        <asp:TextBox id="txtBulletinSizeInIndex" runat="server" Width="50px"></asp:TextBox><FONT color="red">*</FONT>
					        </td>
				        </tr>
				        <tr>
					        <td align="left">
						        首页推荐商品数量：
					        </td>
					        <td>
						        <asp:TextBox id="txtCommendProductSizeInIndex" runat="server" Width="50px"></asp:TextBox><FONT color="red">*</FONT>
					        </td>
					        <td align="left">
						        首页热卖商品数量：
					        </td>
					        <td>
						        <asp:TextBox id="txtHotProductSizeInIndex" runat="server" Width="50px"></asp:TextBox><FONT color="red">*</FONT>
					        </td>
				        </tr>
				        <tr>
					        <td align="left">
						        首页最新商品数量：
					        </td>
					        <td>
						        <asp:TextBox id="txtNewProductSizeInIndex" runat="server" Width="50px"></asp:TextBox><FONT color="red">*</FONT>
					        </td>
					        <td align="left">
						        首页折扣商品数量：
					        </td>
					        <td>
						        <asp:TextBox id="txtDiscountProductSizeInIndex" runat="server" Width="50px"></asp:TextBox><FONT color="red">*</FONT>
					        </td>
				        </tr>
			        </table>
		        </div>
	        </div>
	        <div class="frame tab">
		        <div class="frame_title">缺货处理</div>
		        <div class="frame_content">
		            <table class="tableBorder" cellSpacing="0" cellPadding="0" width="95%" align="center" border="0">
				        <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>
			        </table>
		        </div>
	        </div>	       
		</div>
		 <div class="save">
		        <asp:button id="btnSave" runat="server" Text="保存"></asp:button><asp:button id="btnCancel" runat="server" Text="取消" CausesValidation="False"></asp:button>
	     </div>
		</form>
		</div>
	</div>
</body>
</HTML>
