📄 portalsettings.ascx
字号:
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="PortalSettings.ascx.cs"
Inherits="admin_Portal_PortalSettings_PortalSettings" %>
<%@ Register src="../../../controls/SkinList.ascx" tagname="SkinList" tagprefix="uc1" %>
<%@ Register src="../../../controls/ContainerList.ascx" tagname="ContainerList" tagprefix="uc2" %>
<%@ Register src="../../../controls/selfile.ascx" tagname="selfile" tagprefix="uc3" %>
<%--<script type="text/javascript">
$(document).ready(function(){
$("#portalSettingsContainer").accordion(
{
autoHeight: true ,
panelHeight: 200
//fillSpace: true
}
);
<% if(currentpane>0)
{ %>
$("#portalSettingsContainer").activate(<%=currentpane %>);
<%} %>
});
</script>--%>
<script type="text/javascript" >
function ShowPane(n) {
document.getElementById('hidcp').value = n;
for (i = 0; i < 3; i++) {
if (i == n) {
document.getElementById("pane" + i).style.display = "";
}
else {
document.getElementById("pane" + i).style.display = "none";
}
}
}
$(document).ready(function(){
ShowPane(<%=currentpane %>);
}
);
</script>
<table style=" width:500px" class="table_3d">
<tr>
<td>
<a href='javascript:void(ShowPane(0))' class="title" >基本设置
</a>
</td>
<td><a href='javascript:void(ShowPane(1))' class="title" >高级设置 </a>
</td>
<td>
<a href='javascript:void(ShowPane(2))' class="title" >全局样式表编辑
</a>
</td>
</tr>
</table>
<input type="hidden" id="hidcp" name="cp" value="<%=currentpane %>" />
<ul id="portalSettingsContainer" >
<li id="pane0" >
<div class="pane" style="height:500px">
<p>对网站进行基本设置</p>
<ul >
<li>
网站信息
<div>
<table class="table_3d" >
<tr>
<td style="width:100px">
标题</td>
<td>
<asp:TextBox ID="txtTitle" runat="server" Width="300px" EnableViewState="false"></asp:TextBox>
</td>
</tr>
<tr>
<td valign="top">
简要概述</td>
<td>
<asp:TextBox ID="txtDescription" runat="server" Height="68px"
TextMode="MultiLine" Width="300px" EnableViewState="false"></asp:TextBox>
</td>
</tr>
<tr>
<td valign="top">
关键字</td>
<td>
<asp:TextBox ID="txtKeyWord" runat="server" Height="68px" TextMode="MultiLine"
Width="300px" EnableViewState="false"></asp:TextBox>
</td>
</tr>
<tr>
<td>站点域名</td>
<td>
<asp:TextBox ID="txtDomain" runat="server" Width="300px" EnableViewState="false"></asp:TextBox>
</td>
</tr>
<tr>
<td>站点电子邮件地址</td>
<td>
<asp:TextBox ID="txtSiteEmail" runat="server" Width="300px" EnableViewState="false"></asp:TextBox>
</td>
</tr>
<tr>
<td>邮件服务器</td>
<td>
<asp:TextBox ID="txtSmtp" runat="server" Width="139px" EnableViewState="false"></asp:TextBox>
端口<asp:TextBox ID="txtsmtpport" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td>SMTP用户名</td>
<td>
<asp:TextBox ID="txtSmtpUser" runat="server" Width="300px" EnableViewState="false"></asp:TextBox>
</td>
</tr>
<tr>
<td>SMTP用户密码</td>
<td>
<asp:TextBox ID="txtSmtpPwd" runat="server" Width="300px" EnableViewState="false" TextMode="Password" ></asp:TextBox>
</td>
</tr>
<tr>
<td>
版权声明</td>
<td>
<asp:TextBox ID="txtFootText" runat="server" Width="300px" EnableViewState="false"></asp:TextBox>
</td>
</tr>
</table>
</div>
</li>
<li>
外观
<div>
<table class="table_3d" >
<tr>
<td style="width:100px" valign="top">
Logo
</td>
<td>
<uc3:selfile ID="selfile1" runat="server" />
</td>
</tr>
<tr>
<td valign="top">
网站皮肤</td>
<td>
<uc1:SkinList ID="SkinListSite" runat="server" />
</td>
</tr>
<tr>
<td valign="top">
网站容器</td>
<td>
<uc2:ContainerList ID="ContainerListSite" runat="server" />
</td>
</tr>
<tr>
<td>
管理员皮肤</td>
<td>
<uc1:SkinList ID="SkinListAdmin" runat="server" />
</td>
</tr>
<tr>
<td>
管理员容器</td>
<td>
<uc2:ContainerList ID="ContainerListAdmin" runat="server" />
</td>
</tr>
</table>
</div>
</li>
</ul>
</div>
</li>
<li id="pane1">
<div class="pane">
<ul>
<li><p>设置站点的各个特殊页面</p>
<table class="table_3d">
<tr>
<td style="width: 100px">
首页
</td>
<td>
<asp:DropDownList ID="dplHomePage" runat="server" Width="300" EnableViewState="false">
</asp:DropDownList>
</td>
</tr>
<tr>
<td valign="top">
登录页
</td>
<td>
<asp:DropDownList ID="dplLoginPage" runat="server" Width="300" EnableViewState="false">
</asp:DropDownList>
</td>
</tr>
<tr>
<td valign="top">
用户信息页
</td>
<td>
<asp:DropDownList ID="dplUserInfoPage" runat="server" Width="300" EnableViewState="false">
</asp:DropDownList>
</td>
</tr>
<tr>
<td valign="top">
注册页</td>
<td>
<asp:DropDownList ID="dplRegisterPage" runat="server" Width="300"
EnableViewState="false">
</asp:DropDownList>
</td>
</tr>
</table></li>
<li>
<p>优化设置</p>
<table class="table_3d">
<tr>
<td style="width: 400px">
<asp:CheckBox ID="chkIsGzip" runat="server" Text="是否启用GZIP压缩" />
</td>
</tr>
<tr>
<td style="width: 400px">
<asp:CheckBox ID="chkIsFriendUrl" runat="server" Text="是否启用友好URL" />
</td>
</tr>
</table>
</li>
<li>
<p>
其他操作</p>
<table class="table_3d">
<tr>
<td style="width: 400px">
<asp:LinkButton ID="lnkBtnReset" runat="server" OnClick="lnkBtnReset_Click">
重新启动本网站程序</asp:LinkButton>
</td>
</tr>
</table>
</li>
</ul>
</div>
</li>
<li id="pane2">
<div class="pane">
<ul>
<li><p>这里设置的样式表会应用在每个页面。
<asp:Button ID="btnSaveCss" runat="server" Text="更新样式表"
onclick="btnSaveCss_Click" /> </p>
<table style="height:310px" class="table_3d">
<tr>
<td>
<asp:TextBox ID="txtCss" runat="server" Width="450" TextMode="MultiLine" Height="300" EnableViewState="false" ></asp:TextBox>
</td>
</tr>
</table>
</li>
</ul>
</div>
</li>
<li>
<div style="text-align:center ">
<asp:Button ID="btnSave" runat="server" Text="更新" OnClick="btnSave_Click" />
<asp:Button ID="btnCancel" runat="server" Text="取消" />
</div>
</li>
</ul>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -