<%@ page language="C#" masterpagefile="AdminIndexMaster.master" autoeventwireup="true" inherits="Admin_Config, HoWaveIMSV5.0" title="管理设置" validaterequest="false" debug="false" %>
<%@ Register Assembly="FreeTextBox" Namespace="FreeTextBoxControls" TagPrefix="ftb" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
 <script src="Js/tabpane.js"  type="text/javascript"></script>
 <script src="Js/Function.js" type="text/javascript"></script>
 <script type="text/javascript">      
      function addheight(action){
        var change=30;
        var obj=document.getElementById("ctl00_ContentPlaceHolder1_FormView1_RegProtocalContent");       
        var newheight;
        if(action=="add"){
          newheight = parseInt(obj.style.height, 10) + change;
        }
        else if(action=="sub") {	//大于最小高度100时才执行
          newheight = parseInt(obj.style.height, 10);
          if(newheight>70){
           newheight=newheight-change;
          }		  
		}
        obj.style.height = newheight + 'px';
      } 
          
      function ShowHide(ctlname,controlname){
        var hidecontrol=document.getElementById(controlname);
        if(document.getElementById(ctlname+"_1").checked){
           hidecontrol.style.display="";
         }
         else{
           hidecontrol.style.display="none";
         } 
      
      }
      
 </script>
 <fieldset style="margin:5px" >
<table class="adminheading">                       
  <tr>
    <th class="config" nowrap="nowrap">网站信息配置</th>
    <td style="width:15%; text-align:center;">
       <a id="ctl00_ContentPlaceHolder1_FormView1_SaveConfig" href="javascript:__doPostBack('ctl00$ContentPlaceHolder1$FormView1$SaveConfig','')">
      <asp:Image ID="Image1" runat="server"  ImageUrl="~/Images/Manage/save.png" AlternateText="保存"/><BR>
       保存 </a>
    </td>
  </tr>                        
</table>
<asp:FormView ID="FormView1" runat="server" DataSourceID="ObjectDataSource1" DefaultMode="Edit" DataKeyNames="id" OnItemCreated="FormView1_ItemCreated"  EnableViewState="false" >
      <EditItemTemplate>
         <div class="tab-page" id="configPane">
            <script type="text/javascript">
               var tabPane1 = new WebFXTabPane( document.getElementById( "configPane" ), 1 )
             </script>
                <div class="tab-page" id="site-page">
                   <h2 class="tab">网站配置</h2>
                   <script type="text/javascript">
                         tabPane1.addTabPage( document.getElementById( "site-page" ) );
                    </script>                   
                    <table class="adminform">
                       <tr>
                          <td width="185">网站离线:</td>
                           <td>
                               <asp:RadioButtonList id="CloseSite" runat="server" AutoPostBack="False" RepeatDirection="Horizontal" CssClass="inputbox" SelectedValue='<%# Bind("CloseSite") %>' EnableViewState="true">
                                   <asp:ListItem Value="0">否(No)</asp:ListItem>
                                    <asp:ListItem Value="1">是(Yes)</asp:ListItem>
                               </asp:RadioButtonList>
                            </td>
                         </tr>
                          <tr>
                             <td valign="top">离线消息:</td>
                             <td>
                                 <asp:TextBox ID="CloseMessage"  CssClass="text_area" TextMode="MultiLine" Height="40px" Width="500px" Columns="60" runat="server" Text='<%# Bind("CloseMessage") %>' EnableViewState="true"/>
						    </td>
                         </tr>
                         <tr>
                           <td>网站名称:</td>
                           <td><asp:TextBox CssClass="text_area" Text='<%# Bind("SiteName") %>' ID="SiteName" runat="server" Width="300px"/></td>
                         </tr>
                         <tr>
                           <td>HowaveV5.0所在网站地址</td>
                           <td><asp:TextBox CssClass="text_area" Text='<%# Bind("SiteUrl") %>' ID="SiteUrl" runat="server" Width="300px"/></td>
                         </tr>
                         <tr>
                           <td>LogoUrl:</td>
                           <td><asp:TextBox CssClass="text_area" Text='<%# Bind("LogoUrl") %>' ID="LogoUrl" runat="server" Width="300px"/></td>
                         </tr>
					     <tr>
                           <td>BanderUrl</td>
                           <td><asp:TextBox CssClass="text_area" Text='<%# Bind("BannerUrl") %>' ID="BannerUrl" runat="server" Width="300px"/></td>
                         </tr>
                         <tr>
                           <td>站长姓名</td>
                           <td><asp:TextBox CssClass="text_area" Text='<%# Bind("WebMasterName") %>' ID="WebMasterName" runat="server" Width="300px"/></td>
                         </tr>
                         <tr>
                           <td>站长邮箱</td>
                           <td><asp:TextBox CssClass="text_area" Text='<%# Bind("WebMasterEmail") %>' ID="WebMasterEmail" runat="server" Width="300px"/></td>
                         </tr>
                         <tr>
                           <td>版权信息</td>
                           <td>
                              <ftb:freetextbox id="CopyRight" runat="server" width="610px" Height="300px" Text='<%# Bind("CopyRight") %>' ></ftb:freetextbox>
                           </td>
                         </tr>
                         <tr style="display:none;">
                           <td>版本型号</td>
                           <td>
						      <asp:RadioButtonList id="VersionType" runat="server" AutoPostBack="False" RepeatDirection="Horizontal" CssClass="inputbox" SelectedValue='<%# Bind("VersionType") %>' EnableViewState="true">                            
						          <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:RadioButtonList>
                            </td>
                         </tr>
                         <tr  style="display:none;">
                           <td>序列号</td>
                           <td>
                               <asp:TextBox ID="SiteKey"  CssClass="text_area" TextMode="MultiLine" Height="40px" Width="500px" Columns="60" runat="server" Text='<%# Bind("SiteKey") %>'/>
                           </td>
                         </tr>
					     <tr  style="display:none;">
                           <td>后台管理目录地址</td>
                           <td><asp:TextBox ID="AdminDir" CssClass="text_area" Width="300px" Height="40px" runat="server" Text='<%# Bind("AdminDir") %>'/></td>
                         </tr>
					     <tr style="display:none;">
					       <td>网站模块设置</td>
					       <td>
                          <asp:CheckBoxList ID="SystemSet" AutoPostBack="false" RepeatDirection="Horizontal" runat="server" SelectedValue='<%# Bind("SystemSet") %>' EnableViewState="true">
					          <asp:ListItem Value="1" Text="首页"/>
						      <asp:ListItem Value="1" Text="客户服务中心"/>
						      <asp:ListItem Value="1" Text="广告管理"/>
         				      <asp:ListItem Value="1" Text="客户关系管理系统"/>
		        		   </asp:CheckBoxList>
					      </td>
				         </tr>
					     <tr>
					       <td>找回密码设置</td>
   					       <td>
   						      <asp:RadioButtonList id="WebLiveSet" runat="server" AutoPostBack="False" RepeatDirection="Horizontal" CssClass="inputbox" SelectedValue='<%# Bind("WebLiveSet") %>' EnableViewState="true">                            
						          <asp:ListItem Value="0" Selected="true" Text="发送到安全邮箱方式"/>
                                  <asp:ListItem Value="1" Text="直接修改密码方式"/>							
                             </asp:RadioButtonList>
					      </td>
				         </tr>                    
                     </table>
                </div>
                <div class="tab-page" id="Locale-page">
                  <h2 class="tab">登录设置</h2>
                  <script type="text/javascript">
                      tabPane1.addTabPage( document.getElementById( "Locale-page" ) );
                  </script>
                  <table class="adminform">
                      <tr>
			            <td style="width: 168px">登录方式</td>
				         <td >
					          <asp:RadioButtonList id="LoginType" SelectedValue='<%# Bind("GuestBookShowIP") %>' runat="server" AutoPostBack="False" RepeatDirection="Horizontal" CssClass="inputbox">                            
				                   <asp:ListItem Value="0" Selected="true" Text="同步整合登录"/>
                                   <asp:ListItem Value="1" Text="异步整合登录"/>							    
                             </asp:RadioButtonList>
				        </td>
					  </tr>                 
                      <tr>
                        <td width="185">登录验证码</td>
                        <td>
                            <asp:RadioButtonList id="EnableLoginCheckCode" runat="server" AutoPostBack="False" RepeatDirection="Horizontal" CssClass="inputbox" SelectedValue='<%# Bind("EnableLoginCheckCode") %>' EnableViewState="true">                            
						         <asp:ListItem Value="0" Selected="true" Text="不开启"/>
                                 <asp:ListItem Value="1" Text="开启"/>							
                            </asp:RadioButtonList>
					   </td>
                      </tr>					   
					  <tr>
                        <td width="185">登录失败允许次数</td>
                        <td>
						     <asp:TextBox ID="TryLoginTimes" CssClass="inputbox" runat="server" Text='<%# Bind("TryLoginTimes") %>' Width="300px" />
						     0表示不限制
						 </td>
                      </tr>
					  <tr>
                        <td width="185">登录限制再登录时间间隔</td>
                        <td>
					     	<asp:TextBox ID="LoginInterval" CssClass="inputbox" runat="server" Text='<%# Bind("LoginInterval") %>' Width="300px"/>
					     	默认为20分钟
					    </td>
                      </tr>
                      <tr>
                        <td width="185">禁止登录IP黑名单</td>
                        <td>
						     <asp:TextBox ID="LoginIPBan"  CssClass="text_area" TextMode="MultiLine" Height="40px" Width="500px" Columns="60" runat="server" Text='<%# Bind("LoginIPBan") %>'/>
						</td>
                      </tr>
                      <tr>
                        <td>允许登录IP白名单</td>
                        <td>
						     <asp:TextBox ID="LoginIPAccess"  CssClass="text_area" TextMode="MultiLine" Height="40px" Width="500px" Columns="60" runat="server" Text='<%# Bind("LoginIPAccess") %>'/>
                               白名单仅超级管理员可修改
                         </td>
                      </tr>                    
                  </table>
                </div>
                <div class="tab-page" id="content-page">
                  <h2 class="tab">注册设置</h2>
                  <script type="text/javascript">
                      tabPane1.addTabPage( document.getElementById( "content-page" ) );
                  </script>
                  <table class="adminform">   
                      <tr>
                        <td style=" width:185px" >是否关闭注册:</td>
                        <td >
						<asp:RadioButtonList id="EnableReg" runat="server" AutoPostBack="False" RepeatDirection="Horizontal" CssClass="inputbox" SelectedValue='<%# Bind("EnableReg") %>' EnableViewState="true">                            
						    <asp:ListItem Value="0" Text="是"/>
                            <asp:ListItem Value="1" Text="否"/>							
                       </asp:RadioButtonList>
						</td>
                        <td width="385"></td>
                      </tr>
                       <tr>
                        <td width="185">注册页面URL</td>
                        <td>
                           <asp:TextBox ID="RegPageSet" Text='<%# Bind("RegPageSet") %>' CssClass="inputbox" runat="server" Width="300px"/><br />注册页面，为空则表示从那个系统点击注册就在该系统注册，若不为空，则跳到该页面进行注册!
					   </td>
                      </tr>	
					    <tr>
                        <td>开启注册验证码:</td>
                        <td>
						<asp:RadioButtonList id="EnableRegCode" runat="server" AutoPostBack="False" RepeatDirection="Horizontal" CssClass="inputbox" SelectedValue='<%# Bind("EnableRegCode") %>' EnableViewState="true">                            
						    <asp:ListItem Value="0" Text="否(No)"/>
                            <asp:ListItem Value="1" Text="是(Yes)"/>							
                       </asp:RadioButtonList>
						</td>
                        <td></td>
                      </tr>
					    <tr>
                        <td>允许同一Email注册:</td>
                        <td>
						<asp:RadioButtonList id="EnableEmailOnce" runat="server" AutoPostBack="False" RepeatDirection="Horizontal" CssClass="inputbox" SelectedValue='<%# Bind("EnableEmailOnce") %>' EnableViewState="true">                            
						    <asp:ListItem Value="0" Text="否(No)"/>
                            <asp:ListItem Value="1" Text="是(Yes)"/>							
                       </asp:RadioButtonList>
						</td>
                        <td></td>
                      </tr>
					  <tr>
                        <td>是否开启密码注册强度检测:</td>
                        <td>
						<asp:RadioButtonList id="EnablePasswordCheck" runat="server" AutoPostBack="False" RepeatDirection="Horizontal" CssClass="inputbox" SelectedValue='<%# Bind("EnablePasswordCheck") %>' EnableViewState="true">                            
						    <asp:ListItem Value="0"  Text="否(No)"/>
                            <asp:ListItem Value="1" Text="是(Yes)"/>							
                       </asp:RadioButtonList>
						</td>
                        <td></td>
                      </tr>
					    <tr>
					      <td>限制注册邮箱域名</td>
					      <td colspan="2">
						  <asp:TextBox ID="RegBanEmail"  CssClass="text_area" TextMode="MultiLine" Height="40px" Width="500px" Columns="60" runat="server" Text='<%# Bind("RegBanEmail") %>'/>
						</td>
				      </tr>
					    <tr>
                        <td>注册验证方式:</td>
                        <td>
						   <asp:RadioButtonList id="RegConfirm" runat="server" AutoPostBack="False" RepeatDirection="Horizontal" 
						   CssClass="inputbox" SelectedValue='<%# Bind("RegConfirm") %>' EnableViewState="true">                            
						         <asp:ListItem Value="0" Text="不验证"/>
                                 <asp:ListItem Value="1" Text="邮件验证"/>
						     	<asp:ListItem Value="2" Text="管理员验证"/>
						     	<asp:ListItem Value="3" Text="管理员验证"/>							
                           </asp:RadioButtonList>                        
						</td>
                        <td></td>
                      </tr>
					  <tr id="div_RegConfirm" style="display:none;">
                          <td style="width: 185px">开启邮件认证后则会在注册时自动发一封邮件到注册邮箱:</td>
						  <td colspan="2"  align="left">
						    <asp:TextBox ID="RegEmailContent"  CssClass="text_area" TextMode="MultiLine" Height="100px" Width="500px"  runat="server" Text='<%# Bind("RegEmailContent") %>' />
						  </td>
					  </tr>					 
					    <tr>
                        <td>注册积分初始设置:</td>
                        <td>
                        <p>通行币
						  <asp:TextBox ID="RegPresent1" CssClass="inputbox" runat="server" Text='<%# Bind("RegPresent1") %>' Width="100px" />
                          <br>
                          点&nbsp;&nbsp;&nbsp;&nbsp;券
                           <asp:TextBox ID="RegPresent2" CssClass="inputbox" runat="server" Text='<%# Bind("RegPresent2") %>' Width="100px" />
                          <br>
                          经验值
                          <asp:TextBox ID="RegPresent3" CssClass="inputbox" runat="server" Text='<%# Bind("RegPresent3") %>' Width="100px"/>
                          <br>
                          积&nbsp;&nbsp;&nbsp;&nbsp;分
                          <asp:TextBox ID="RegPresent4" CssClass="inputbox" runat="server" Text='<%# Bind("RegPresent4") %>' Width="100px" />
						 
                        </p>
                          </td>
                        <td></td>
                      </tr>
					    <tr>
                        <td>注册名设置:</td>
                        <td>
						<asp:RadioButtonList id="RegNameSet" runat="server" AutoPostBack="False" RepeatDirection="Horizontal" CssClass="inputbox" SelectedValue='<%# Bind("RegNameSet") %>' EnableViewState="true">                            
						    <asp:ListItem Value="0" Text="不限制"/>
                            <asp:ListItem Value="1" Text="禁止全数字"/>
							<asp:ListItem Value="2" Text="禁止英文名"/>
							<asp:ListItem Value="3" Text="禁止中文名"/>							
                       </asp:RadioButtonList>
						</td>
                        <td></td>
                      </tr>
					    <tr>
                        <td>注册用户名最短长度:</td>
                        <td>
						<asp:TextBox ID="RegNameMin" CssClass="inputbox" runat="server" Text='<%# Bind("RegNameMin") %>' Width="100px" />
						</td>
                        <td></td>
                      </tr>
					    <tr>
                        <td>注册用户名最大长度:</td>
                        <td>
						<asp:TextBox ID="RegNameMax" CssClass="inputbox" runat="server" Text='<%# Bind("RegNameMax") %>' Width="100px" />
						</td>
                        <td></td>
                      </tr>
                      <tr>
                        <td>禁止注册的包含的用户名:</td>
                        <td colspan="2">
						<asp:TextBox ID="RegBanName"  CssClass="text_area" TextMode="MultiLine" Height="40px" Width="500px" Columns="60" runat="server" Text='<%# Bind("RegBanName") %>'/>						                      
                        </td>
                      </tr>
                      <tr>
                        <td>注册跳转页设置:</td>
                        <td>
						<asp:RadioButtonList id="RegURLSet" runat="server" AutoPostBack="False" RepeatDirection="Horizontal" CssClass="inputbox" SelectedValue='<%# Bind("RegURLSet") %>' EnableViewState="true">                            
						    <asp:ListItem Value="0" Text=" 系统默认"/>
                            <asp:ListItem Value="1" Text="首页"/>
							<asp:ListItem Value="2" Text="自定义页面" />												
                       </asp:RadioButtonList>
					    </td>
                        <td></td>
                      </tr>
                      <tr>
					    <td colspan="3">
					    <div id="div_RegURLSet">
						<table width="100%" border="0" cellpadding="0" cellspacing="0">
						   <tr>
                             <td align="left" style="width: 184px">注册跳转自定义页面URL地址:</td>
                              <td width="734" colspan="2" align="left">
							  <asp:TextBox ID="RegURl" CssClass="inputbox" runat="server" Text='<%# Bind("RegURL") %>' Width="300px" /></td>
                           </tr>
						 </table>
						 </div>
						 </td>
					  </tr>
                      <tr>
                        <td>IP注册间隔限制:</td>
                        <td>
						<asp:RadioButtonList id="RegIPOnce" runat="server" AutoPostBack="False" RepeatDirection="Horizontal" CssClass="inputbox" SelectedValue='<%# Bind("RegIPOnce") %>' EnableViewState="true">                            
						    <asp:ListItem Value="0"  Text=" 不限制"/>
                            <asp:ListItem Value="10" Text="10分钟"/>
							<asp:ListItem Value="20" Text="20分钟" />
							<asp:ListItem Value="30" Text="30分钟" />
							<asp:ListItem Value="60" Text="60分钟" />																		
                       </asp:RadioButtonList>
						</td>
                        <td>
						</td>
                      </tr>
                      <tr>
                        <td>注册发送欢迎短信:</td>
                        <td>
						   <asp:RadioButtonList id="RegSendMsg" runat="server" AutoPostBack="False" RepeatDirection="Horizontal" CssClass="inputbox" SelectedValue='<%# Bind("RegSendMsg") %>' EnableViewState="true">                            
						      <asp:ListItem Value="0" Text=" 不开启"/>
                              <asp:ListItem Value="1" Text="开启"/>	
                           </asp:RadioButtonList>					 
						</td>
                        <td></td>
                      </tr>
                      <tr id="div_RegSendMsg" style="display:none">                        
                         <td width="195" align="left">编辑欢迎短信:</td>
                         <td width="508" colspan="2">
							 <asp:TextBox ID="RegMsgContent"  CssClass="text_area" TextMode="MultiLine" Height="100px" Width="500px"  runat="server" Text='<%# Bind("RegMsgContent") %>'/>
						 </td>                        
                      </tr>
                      <tr>
                        <td>注册回答问题:</td>
                        <td>
						<asp:RadioButtonList id="RegAnswerCheck" runat="server" AutoPostBack="False" RepeatDirection="Horizontal" CssClass="inputbox" SelectedValue='<%# Bind("RegAnswerCheck") %>' EnableViewState="true">                            
						    <asp:ListItem Value="0" Text="不开启"/>
                            <asp:ListItem Value="1" Text="开启"/>	
                       </asp:RadioButtonList>
						</td>
                        <td>&nbsp;</td>
                      </tr>
                      <tr id="RegAnswerdisplay" style="display:none">                        
					    <td></td>
					    <td>
                              问题:<asp:TextBox ID="RegQuestion" CssClass="inputbox" runat="server" Text='<%# Bind("RegQuestion") %>' Width="300px"/><br />
                              答案:<asp:TextBox ID="RegAnswer" CssClass="inputbox" runat="server" Text='<%# Bind("RegAnswer") %>' Width="300px"/>
                        </td>	
                        <td>&nbsp;</td>
                      </tr>								  
					  <tr>
                        <td>注册协议:</td>
                        <td colspan="2">
						 <asp:TextBox ID="RegProtocalContent" Text='<%# Bind("RegProtocalContent") %>' CssClass="text_area" TextMode="MultiLine" Height="40px" Width="500px" Columns="60" runat="server" />&nbsp;&nbsp;<a href="javascript:void(0)" onclick='addheight("add");'>+</a>&nbsp;&nbsp; <a href="javascript:void(0)" onclick='addheight("sub");'>-</a>
						
						</td>
                      </tr>
                      <%--<tr>
                        <td>注册必填项目:</td>
                        <td colspan="2" rowspan="4">
						<asp:CheckBoxList ID="RegItems" runat="server" RepeatDirection="Horizontal" RepeatColumns="5">
						    <asp:ListItem Text="帐号"  Value="1" Selected="true"  Enabled="false"/>
							<asp:ListItem Text="密码"  Value="2" Selected="true" Enabled="false"/>
							<asp:ListItem Text="邮箱"  Value="3" Selected="true" Enabled="false"/>
							<asp:ListItem Text="密码问题"  Value="4" Selected="true" />
							<asp:ListItem Text="密码答案"  Value="12" Selected="true"/>
							<asp:ListItem Text="年龄"  Value="6" Selected="false"/>
							<asp:ListItem Text="生日"  Value="7" Selected="false"/>
							<asp:ListItem Text="性别"  Value="5" Selected="false"/>							
							<asp:ListItem Text="真实姓名"  Value="9" Selected="false"/>
							<asp:ListItem Text="QQ"  Value="10" Selected="false"/>
							<asp:ListItem Text="MSN"  Value="11" Selected="false"/>
							<asp:ListItem Text="手机号码"  Value="8" Selected="false"/>							
							<asp:ListItem Text="ICQ"  Value="13" Selected="false"/>
							<asp:ListItem Text="UC"  Value="14" Selected="false"/>
							<asp:ListItem Text="雅虎通"  Value="15" Selected="false"/>
							<asp:ListItem Text="主页"  Value="16" Selected="false"/>
							<asp:ListItem Text="办公电话"  Value="17" Selected="false"/>
							<asp:ListItem Text="联系地址"  Value="18" Selected="false"/>
							<asp:ListItem Text="签名档"  Value="19" Selected="false"/>							
						</asp:CheckBoxList>						
                        </td>
                      </tr>--%>
                      <tr>
                        <td>&nbsp;</td>
                      </tr>
                      <tr>
                        <td>&nbsp;</td>
                      </tr>
                      <tr>
                        <td>&nbsp;</td>
                      </tr>
                      <%--<tr>
                        <td>自定义注册选项</td>
                        <td colspan="2">
						     <asp:RadioButtonList id="EnableRegSelectItem" SelectedValue='<%# Bind("EnableRegSelectItem") %>' runat="server" AutoPostBack="False" RepeatDirection="Horizontal" CssClass="inputbox">                            
						         <asp:ListItem Value="0" Text=" 不开启"/>
                                 <asp:ListItem Value="1" Text="开启"/>	
                            </asp:RadioButtonList>						
					    </td>
                      </tr>
                      <tr>
                        <td>&nbsp;</td>
                        <td colspan="2" style="height: 113px">
						<table width="483" border="0" cellpadding="0" cellspacing="0" id="RegSelectItemTable" style="display:none">
                          <tr>
                            <td width="63">选择</td>
                            <td width="176">名称</td>
                            <td style="width: 222px">类型</td>
                          </tr>
                          <tr>
                            <td><asp:CheckBox ID="RegSelectItem1" runat="server"/></td>
                            <td><asp:TextBox ID="RegSelectItemName1" runat="server"/></td>
                            <td style="width: 222px">
							<asp:RadioButtonList id="RegSelectChoice" runat="server" AutoPostBack="False" RepeatDirection="Horizontal" CssClass="inputbox">                            
						         <asp:ListItem Value="0" Selected="true" Text=" 文本"/>
                                 <asp:ListItem Value="1" Text="下拉列表"/>
							     <asp:ListItem Value="3" Text="复选框"/>	
                           </asp:RadioButtonList>                              
						    </td>
                          </tr>
                          <tr>
                            <td><asp:CheckBox ID="RegSelectItem2" runat="server"/></td>
                            <td><asp:TextBox ID="RegSelectItemName2" runat="server"/></td>
                            <td style="width: 222px">
							<asp:RadioButtonList id="RegSelectChoice2" runat="server" AutoPostBack="False" RepeatDirection="Horizontal" CssClass="inputbox">                            
						         <asp:ListItem Value="0" Selected="true" Text=" 文本"/>
                                 <asp:ListItem Value="1" Text="下拉列表"/>
							     <asp:ListItem Value="3" Text="复选框"/>	
                           </asp:RadioButtonList>                              
						    </td>
                          </tr>
                        </table>
                        </td>
                     </tr>       --%>      
                  </table>
                </div>
                <div class="tab-page" id="email-page">
                  <h2 class="tab">邮件设置</h2>
                  <script type="text/javascript"> 
                     tabPane1.addTabPage( document.getElementById( "email-page" ) );
                   </script>
                  <table class="adminform" width="100%">                   
                      <tr>
                        <td style="width: 177px">邮件发送主题:</td>
                        <td>
						<asp:TextBox ID="MailObject" runat="server"  CssClass="text_area" Width="300px" Text='<%# Bind("MailObject") %>' />
						</td>
                      </tr>
                      <tr>
                        <td style="width: 177px">SMTP邮件服务器地址:</td>
                        <td>
						  <asp:TextBox ID="MailSmtpServer" runat="server" CssClass="text_area" Width="300px" Text='<%# Bind("MailSmtpServer") %>'/>
						</td>
                      </tr>
                      <tr>
                        <td style="width: 177px">SMTP登录用户名:</td>
                        <td>
						   <asp:TextBox ID="MailServerUserName" runat="server" CssClass="text_area" Width="300px" Text='<%# Bind("MailServerUserName") %>'/>
						</td>
                      </tr>
                      <tr>
                        <td style="width: 177px">SMTP登录密码:</td>
                        <td>
						 <asp:TextBox ID="MailServerPassWord" runat="server" CssClass="text_area" Width="300px" Text='<%# Bind("MailServerPassWord") %>'/>
						</td>
                      </tr>
                      <tr>
                        <td style="width: 177px">用于发送的邮箱名</td>
                        <td>
						<asp:TextBox ID="MailServerFrom" runat="server" CssClass="text_area" Width="300px" Text='<%# Bind("MailServerFrom") %>'/>
						</td>
                      </tr>                    
                  </table>
                </div>
                <div id="guestbook-page" style="display:none;">
                  <h2 class="tab">留言设置</h2>
                    <script type="text/javascript">
                      //tabPane1.addTabPage( document.getElementById( "guestbook-page" ) );
                    </script>
                    <table class="adminform" width="100%">   
                       <tr>
				           <td style="width: 168px">是否开启留言:</td>
					       <td>
					           <asp:RadioButtonList id="GuestBookEnable" SelectedValue='<%# Bind("GuestBookEnable") %>' runat="server" AutoPostBack="False" RepeatDirection="Horizontal" CssClass="inputbox">                            
					               <asp:ListItem Value="0" Text=" 不开启"/>
                                   <asp:ListItem Value="1" Text="开启"/>							    
                               </asp:RadioButtonList> 
					        </td>
				     	</tr> 
				        <tr>
				            <td style="width: 168px">允许游客留言 </td>
					        <td >
					            <asp:RadioButtonList id="GuestBookEnableVistor" SelectedValue='<%# Bind("GuestBookEnableVistor") %>' runat="server" AutoPostBack="False" RepeatDirection="Horizontal" CssClass="inputbox">                            
					              <asp:ListItem Value="0" Selected="true" Text=" 不开启"/>
                                  <asp:ListItem Value="1" Text="开启"/>							    
                                </asp:RadioButtonList> 
					        </td>
					     </tr> 
				     	 <tr>
				            <td style="width: 168px">留言验证码</td>
					         <td >
						          <asp:RadioButtonList id="GuestBookCheckCode" SelectedValue='<%# Bind("GuestBookCheckCode") %>' runat="server" AutoPostBack="False" RepeatDirection="Horizontal" CssClass="inputbox">                            
					                   <asp:ListItem Value="0" Selected="true" Text=" 不开启"/>
                                       <asp:ListItem Value="1" Text="开启"/>							    
                                 </asp:RadioButtonList>
					        </td>
					     </tr> 
					     <tr>
				            <td style="width: 168px">留言审核</td>
					         <td >
						          <asp:RadioButtonList id="GuestBookCheck" SelectedValue='<%# Bind("GuestBookCheck") %>'  runat="server" AutoPostBack="False" RepeatDirection="Horizontal" CssClass="inputbox">                            
					                   <asp:ListItem Value="0" Selected="true" Text=" 不开启"/>
                                       <asp:ListItem Value="1" Text="开启"/>							    
                                 </asp:RadioButtonList>
					        </td>
					     </tr> 
					    
					     <tr>
				            <td  colspan="2">
				               <asp:LinkButton ID="SaveConfig" runat="server" CommandName="Update" Text="保存"  />
					        </td>
					     </tr>
				    </table>					 
                </div>
                 <div class="tab-page" id="Intergation">
                  <h2 class="tab">整合设置</h2>
                    <script type="text/javascript">
                      tabPane1.addTabPage( document.getElementById( "Intergation" ) );
                    </script>
                    <table class="adminform" width="100%">   
                       <tr>
				           <td style="width: 168px">是否开启整合:</td>
					       <td>
					           <asp:RadioButtonList id="HLIntergation" SelectedValue='<%# Bind("HLIntegration") %>' runat="server" AutoPostBack="False" RepeatDirection="Horizontal" CssClass="inputbox" EnableViewState="true">                            
					               <asp:ListItem Value="0" Text=" 不开启"/>
                                   <asp:ListItem Value="1" Text="开启"/>							    
                               </asp:RadioButtonList> 
					        </td>
				     	</tr>
				     	<tr>
				            <td style="width: 168px">网站根域名</td>
					         <td >
						        <asp:TextBox ID="DomainName" runat="server" Text='<%# Bind("DomainName") %>' /><a href="#"  onmouseover="showHelp('help1');" onmouseout="hidenHelp('help1');" ><img src="../Images/smallIcon/tooltip.png" border="0" /></a>
					        </td>
					     </tr> 
				     	 <tr>
				            <td style="width: 168px">前台整合密钥</td>
					         <td >
						        <asp:TextBox ID="SecurityKey" runat="server" Text='<%# Bind("SecurityKey") %>' />
					        </td>
					     </tr> 
					     <tr>
				            <td style="width: 168px">后台整合密钥</td>
					         <td >
						        <asp:TextBox ID="AdminSecurityKey" runat="server" Text='<%# Bind("AdminSecurityKey") %>'/>
					        </td>
					     </tr>
					     <tr>
				            <td  colspan="2">
				               <asp:LinkButton ID="LinkButton1" runat="server" CommandName="Update" Text="保存"  />
					        </td>
					     </tr>
				    </table>					 
                </div>
                <div  id="shop_config" style=" display:none;">
                  <h2 class="tab">商城设置</h2>
                    <script type="text/javascript">
                     // tabPane1.addTabPage( document.getElementById( "shop_config" ) );
                    </script>
                    <table class="adminform" width="100%">   
                       <tr>
				           <td style="width: 168px">确认订单时站内短信/Email通知内容：:</td>
					       <td>
					           <asp:TextBox ID="MessageOfOrderConfirm" TextMode="MultiLine" Height="50px" Width="400px" runat="server"  Text='<%# Bind("MessageOfOrderConfirm") %>' CssClass="text_area" />
					        </td>
				     	</tr>
				     	 <tr>
				           <td style="width: 168px">收到银行汇款时站内短信/Email通知内容：:</td>
					       <td>
					           <asp:TextBox ID="MessageOfReceiveMoney" TextMode="MultiLine" Height="50px" Width="400px" runat="server"  Text='<%# Bind("MessageOfReceiveMoney") %>' CssClass="text_area" />
					        </td>
				     	</tr> 
				     	<tr>
				           <td style="width: 168px">退货时站内短信/Email通知内容：:</td>
					       <td>
					           <asp:TextBox ID="MessageOfRefund" TextMode="MultiLine" Height="50px" Width="400px" runat="server"  Text='<%# Bind("MessageOfRefund") %>' CssClass="text_area" />
					        </td>
				     	</tr>
					    <tr>
				           <td style="width: 168px">发出货物时站内短信/Email通知内容：:</td>
					       <td>
					           <asp:TextBox ID="MessageOfDeliver" TextMode="MultiLine" Height="50px" Width="400px" runat="server"  Text='<%# Bind("MessageOfDeliver") %>' CssClass="text_area" />
					        </td>
				     	</tr>
				     	<tr>
				           <td style="width: 168px">交付充值卡时站内短信/Email通知内容：:</td>
					       <td>
					           <asp:TextBox ID="MessageOfSendCard" TextMode="MultiLine" Height="50px" Width="400px" runat="server"  Text='<%# Bind("MessageOfSendCard") %>' CssClass="text_area" />
					        </td>
				     	</tr>
				     	<tr>
				           <td style="width: 168px">绑定Email时发送Email通知内容：:</td>
					       <td>
					           <asp:TextBox ID="MessageOfConfrimEmail" TextMode="MultiLine" Height="50px" Width="400px" runat="server"  Text='<%# Bind("MessageOfConfrimEmail") %>' CssClass="text_area" />
					        </td>
				     	</tr>
				     	<tr>
				           <td style="width: 168px">忘记密码发送Email通知内容：:</td>
					       <td>
					           <asp:TextBox ID="MessageOfConfrimPassword" TextMode="MultiLine" Height="50px" Width="400px" runat="server"  Text='<%# Bind("MessageOfConfrimPassword") %>' CssClass="text_area" />
					        </td>
				     	</tr>
					     <tr>
				            <td  colspan="2">
				               <asp:LinkButton ID="LinkButton2" runat="server" CommandName="Update" Text="保存"  />
					        </td>
					     </tr>
				    </table>					 
                </div>
        </div>     
     </EditItemTemplate>  
    </asp:FormView>
</fieldset> 
 <div id="help1" style="position:absolute;z-index:1000; border:solid 1px black; padding:10px; background:white; display:none;" onmouseover="this.style.display='';" onmouseout="this.style.display='none'">
      什么叫域名？比如你的网址是www.ABC.com那么ABC.com则为你的顶级域名。<br />
二级域名则是你的顶级域名的前字符和“.”所组成如bbs.ABC.com  ,blog.ABC.com,
     
   </div> 
<asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="GetSiteConfig"
                TypeName="SetupBLL" UpdateMethod="UpdateSetup"  >
        <UpdateParameters>
            <asp:Parameter Name="CloseSite" Type="Int32" />
            <asp:Parameter Name="CloseMessage" Type="String" />
            <asp:Parameter Name="SiteName" Type="String" />
            <asp:Parameter Name="SiteUrl" Type="String" />
            <asp:Parameter Name="LogoUrl" Type="String" />
            <asp:Parameter Name="BannerUrl" Type="String" />
            <asp:Parameter Name="WebMasterName" Type="String" />
            <asp:Parameter Name="WebMasterEmail" Type="String" />
            <asp:Parameter Name="CopyRight" Type="String" />
            <asp:Parameter Name="VersionType" Type="Int32" />
            <asp:Parameter Name="SiteKey" Type="String" />
            <asp:Parameter Name="AdminDir" Type="String" />
            <asp:Parameter Name="EnableLoginCheckCode" Type="Int32" />
            <asp:Parameter Name="TryLoginTimes" Type="Int32" />
            <asp:Parameter Name="LoginIPBan" Type="String" />
            <asp:Parameter Name="LoginInterval" Type="Int32" />
            <asp:Parameter Name="LoginIPAccess" Type="String" />
            <asp:Parameter Name="EnableReg" Type="Int32" />
            <asp:Parameter Name="EnableRegCode" Type="Int32" />
            <asp:Parameter Name="EnableEmailOnce" Type="Int32" />
            <asp:Parameter Name="EnablePasswordCheck" Type="Int32" />
            <asp:Parameter Name="RegConfirm" Type="Int32" />
            <asp:Parameter Name="RegEmailContent" Type="String" />
            <asp:Parameter Name="RegPresent1" Type="Int32" />
            <asp:Parameter Name="RegPresent2" Type="Int32" />
            <asp:Parameter Name="RegPresent3" Type="Int32" />
            <asp:Parameter Name="RegPresent4" Type="Int32" />
            <asp:Parameter Name="RegNameSet" Type="Int32" />
            <asp:Parameter Name="RegURLSet" Type="Int32" />
            <asp:Parameter Name="RegURl" Type="String" />
            <asp:Parameter Name="RegIPOnce" Type="Int32" />
            <asp:Parameter Name="RegSendMsg" Type="Int32" />
            <asp:Parameter Name="RegMsgContent" Type="String" />
            <asp:Parameter Name="RegAnswerCheck" Type="Int32" />
            <asp:Parameter Name="RegQuestion" Type="String" />
            <asp:Parameter Name="RegAnswer" Type="String" />
            <asp:Parameter Name="RegProtocalContent" Type="String" />
            <asp:Parameter Name="RegBanEmail" Type="String" />
            <asp:Parameter Name="RegBanName" Type="String" />
            <asp:Parameter Name="RegNameMin" Type="Int32" />
            <asp:Parameter Name="RegNameMax" Type="Int32" />
            <asp:Parameter Name="RegItems" Type="String" />
            <asp:Parameter Name="EnableRegSelectItem" Type="Int32"  DefaultValue="1"/>
            <asp:Parameter Name="MailObject" Type="String" />
            <asp:Parameter Name="MailSmtpServer" Type="String" />
            <asp:Parameter Name="MailServerUserName" Type="String" />
            <asp:Parameter Name="MailServerPassWord" Type="String" />
            <asp:Parameter Name="MailServerFrom" Type="String" />
            <asp:Parameter Name="GuestBookEnable" Type="Int32" />
            <asp:Parameter Name="GuestBookEnableVistor" Type="Int32" />
            <asp:Parameter Name="GuestBookCheckCode" Type="Int32" />
            <asp:Parameter Name="GuestBookCheck" Type="Int32" />
            <asp:Parameter Name="GuestBookShowIP" Type="Int32" />
            <asp:Parameter Name="SystemSet" Type="String" />
            <asp:Parameter Name="WebLiveSet" Type="Int32" />
            <asp:Parameter Name="id" Type="Int32" />
            <asp:Parameter Name="SecurityKey" Type="String" />
            <asp:Parameter Name="AdminSecurityKey" Type="String" />
            <asp:Parameter Name="DomainName" Type="String" />
            <asp:Parameter Name="HLIntegration" Type="Int32" />
            <asp:Parameter Name="MessageOfOrderConfirm" Type="String" />
            <asp:Parameter Name="MessageOfReceiveMoney" Type="String" />
            <asp:Parameter Name="MessageOfRefund" Type="String" />
            <asp:Parameter Name="MessageOfDeliver" Type="String" />
            <asp:Parameter Name="MessageOfConfrimEmail" Type="String" />
            <asp:Parameter Name="MessageOfConfrimPassword" Type="String" />
            <asp:Parameter Name="MessageOfSendCard" Type="String" />
            <asp:Parameter Name="RegPageSet" Type="String" />
        </UpdateParameters>        
    </asp:ObjectDataSource>          
</asp:Content>

