📄 admin_config.aspx
字号:
<%@ 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="../IMS_Img/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>
<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>
<tr>
<td>版权信息</td>
<td>
<%-- <ftb:freetextbox id="CopyRight" runat="server" width="610px" Height="200px" Text='<%# Bind("CopyRight") %>' ></ftb:freetextbox>--%>
<asp:TextBox ID="CopyRight" runat="server" Width="610px" Height="200px" Text='<%# Bind("CopyRight") %>' />
</td>
</tr>
<tr>
<td>商业版本验证</td>
<td>
<asp:Button ID="CheckSiteBtn" runat="server" Text="验证域名是否注册授权" OnClick="CheckSite"/>
</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>
</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" width=98%"">
<tr>
<td style="width: 168px">登录方式</td>
<td width="80%">
<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><a href="#" onmouseover="showHelp('help2');" onmouseout="hidenHelp('help2');" ><img src="../IMS_Img/smallIcon/tooltip.png" border="0" /></a>
</td>
</tr>
<tr>
<td>登录验证码</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>登录失败允许次数</td>
<td>
<asp:TextBox ID="TryLoginTimes" CssClass="inputbox" runat="server" Text='<%# Bind("TryLoginTimes") %>' Width="300px" />
0表示不限制
</td>
</tr>
<tr>
<td>登录限制再登录时间间隔</td>
<td>
<asp:TextBox ID="LoginInterval" CssClass="inputbox" runat="server" Text='<%# Bind("LoginInterval") %>' Width="300px"/>
默认为20分钟
</td>
</tr>
<tr>
<td>禁止登录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>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -