📄 admin_var.jsp
字号:
<%@ page contentType="text/html;charset=GBK"%><%@ include file="INC/const.jsp"%><%@ page import = "java.util.Vector, net.acai.forum.admin.*"%><title><%=forumName%>--管理页面</title><link rel="stylesheet" type="text/css" href="forum.css"><BODY bgcolor="#ffffff" alink="#333333" vlink="#333333" link="#333333" topmargin="20"><% try{ if(session.getAttribute("adminFlag")==null) throw new Exception("本页面为管理员专用,请<a href=elogin.jsp>登陆管理</a>后进入。"); %><table cellpadding=0 cellspacing=0 border=0 width=95% bgcolor=<%=aTableBackColor%> align=center > <tr> <td> <table cellpadding=3 cellspacing=1 border=0 width=100%> <tr bgcolor='<%=aTableTitleColor%>'> <td align=center colspan="2"><font size=4><b>系统设置管理</b></font><!-- 欢迎<b><%=session.getAttribute("adminName")%></b>进入管理页面 --> </td> </tr> <tr bgcolor=<%=tableBodyColor%>> <td width="20%" valign=top><%@include file="admin_left.jsp"%> </td> <td width="80%" valign=top><% String action=ParamUtil.getString(request,"action"); if(action!=null&&"save".equals(action)){ ForumPropertiesManager.saveConst(request); out.println("操作成功!"); } else{%> <form method="POST" action=admin_var.jsp?action=save><!-- <table width="95%" border="1" cellspacing="0" cellpadding="3" align=center bordercolor=<%=aTableBackColor%>> --><table border="1" cellspacing="0" width="95%" cellpadding="2" align=center><tr bgcolor=<%=aTableTitleColor%>> <td height="23" colspan="2" ><font color=<%=tableFontColor%>><b>系统参数设置</b></font></td></tr><tr> <td width="41%">系统名称</td><td width="59%"> <input type="text" name="forumName" size="35" value="<%=forumName%>"></td></tr><tr> <td width="41%">系统的URL</td><td width="59%"> <input type="text" name="forumURL" size="35" value="<%=forumURL%>"></td></tr><tr> <td width="41%">主页名称</td><td width="59%"> <input type="text" name="companyName" size="35" value="<%=companyName%>"></td></tr><tr> <td width="41%">主页URL</td><td width="59%"> <input type="text" name="hostURL" size="35" value="<%=hostURL%>"></td></tr><tr> <td width="41%">SMTP Server地址</td><td width="59%"> <input type="text" name="SMTPServer" size="35" value="<%=SMTPServer%>"></td></tr><tr> <td width="41%">系统管理员Email</td><td width="59%"> <input type="text" name="systemEmail" size="35" value="<%=systemEmail%>"></td></tr><tr> <td width="41%">服务器时差</td><td width="59%"> <input type="text" size="35" value="<%=timeAdjust%>" name="timeAdjust"></td></tr><tr> <td width="41%">服务器脚本超时时间值</td><td width="59%"> <input type="text" name="scriptTimeOut" size="35" value="<%=scriptTimeOut%>"></td></tr><tr> <td width="41%">系统MailLogo地址</td><td width="59%"> <input type="text" name="forumLogo" size="35" value="<%=forumLogo%>"></td></tr><tr> <td width="41%">系统图片目录</td><td width="59%"> <input type="text" name="picURL" size="35" value="<%=picURL%>"></td></tr><input type="hidden" name="faceURL" size="35" value="<%=faceURL%>"><tr> <td width="41%">发送邮件组件</td><td width="59%"> <select name="emailFlag"><option value="0" <%if(emailFlag==0) {%>selected<%}%>>不支持 <option value="1" <%if (emailFlag==1) {%>selected<%}%>>JMAIL <option value="2" <%if (emailFlag==2) {%>selected<%}%>>CDONTS <option value="3" <%if (emailFlag==3) {%>selected<%}%>>ASPEMAIL </select></td></tr><input type="hidden" name="uploadPic" size="35" value="0"><tr> <td width="41%">用户IP</td><td width="59%"> <select name="ipFlag"><option value="0" <%if ("0".equals(ipFlag)) {%>selected<%}%>>保密 <option value="1" <%if ("1".equals(ipFlag)) {%>selected<%}%>>公开 </select></td></tr><tr> <td width="41%">形象上传</td><td width="59%"><select name="uploadFlag"><option value="0" <%if ("0".equals(uploadFlag)) {%>selected<%}%>>否 <option value="1" <%if ("1".equals(uploadFlag)) {%>selected<%}%>>是 </select></td></tr><tr> <td width="41%">用户来源</td><td width="59%"> <select name="fromFlag"><option value="0" <%if ("0".equals(fromFlag)) {%>selected<%}%>>保密 <option value="1" <%if ("1".equals(fromFlag)) {%>selected<%}%>>公开 </select></td></tr><input type="hidden" name="titleFlag" size="35" value="0"><input type="hidden" name="guestUser" size="35" value="0"><tr> <td width="41%">有新邮件弹出窗口</td><td width="59%"> <select name="openMSG"><option value="0" <%if ("0".equals(openMSG)) {%>selected<%}%>>否 <option value="1" <%if ("1".equals(openMSG)) {%>selected<%}%>>是 </select></td></tr><input type="hidden" name="announceMaxBytes" size="35" value="100"><input type="hidden" name="maxAnnouncePerPage" size="35" value="20"><input type="hidden" name="maxTitleList" size="35" value="10"><tr bgcolor=<%=aTableTitleColor%>> <td height="23" colspan="2" ><font color=<%=tableFontColor%>><b>关于颜色字体设置</b></font></td></tr><tr> <td width="41%">表格背景(边框颜色)1<br>一般页面</td><td width="59%"> <input type="text" name="tableBackColor" size="35" value="<%=tableBackColor%>"></td></tr><tr> <td width="41%">表格背景(边框颜色)2<br>用户页面、提示页面</td><td width="59%"> <input type="text" name="aTableBackColor" size="35" value="<%=aTableBackColor%>"></td></tr><tr> <td width="41%">标题表格颜色1<br>一般页面</td><td width="59%"> <input type="text" name="tableTitleColor" size="35" value="<%=tableTitleColor%>"></td></tr><tr> <td width="41%">标题表格颜色2<br>用户页面、提示页面</td><td width="59%"> <input type="text" name="aTableTitleColor" size="35" value="<%=aTableTitleColor%>"></td></tr><tr> <td width="41%">表格体颜色1</td><td width="59%"> <input type="text" name="tableBodyColor" size="35" value="<%=tableBodyColor%>"></td></tr><tr> <td width="41%">表格体颜色2(1和2颜色在首页显示中穿插)</td><td width="59%"> <input type="text" name="aTableBodyColor" size="35" value="<%=aTableBodyColor%>"></td></tr><tr> <td width="41%">表格内文字标题颜色</td><td width="59%"> <input type="text" name="tableFontColor" size="35" value="<%=tableFontColor%>"></td></tr><tr> <td width="41%">表格内文字内容颜色</td><td width="59%"> <input type="text" name="tableContentColor" size="35" value="<%=tableContentColor%>"></td></tr><tr> <td width="41%">警告提醒语句的颜色</td><td width="59%"> <input type="text" name="alertFontColor" size="35" value="<%=alertFontColor%>"></td></tr><tr> <td width="41%">显示帖子的时候,相关帖子,转发帖子,回复等的颜色</td><td width="59%"> <input type="text" name="contentTitle" size="35" value="<%=contentTitle%>"></td></tr><tr bgcolor=<%=aTableTitleColor%>> <td height="23" colspan="2" ><font color=<%=tableFontColor%>><b>版权广告信息</b></font></td></tr><tr> <td width="41%">系统页首广告代码</td><td width="59%"> <input type="text" name="ads1" size="35" value="<%=ads1%>"></td></tr><tr> <td width="41%">系统页尾广告代码</td><td width="59%"> <input type="text" name="ads2" size="35" value="<%=ads2%>"></td></tr><tr> <td width="41%">版权信息</td><td width="59%"> <input type="text" name="copyRight" size="35" value="<%=copyRight%>"></td></tr><tr> <td width="41%">版本信息</td><td width="59%"> <input type="text" name="version" size="35" value="<%=version%>"></td></tr><tr bgcolor=<%=aTableTitleColor%>> <td width="41%"> </td><td width="59%"> <div align="center"> <input type="submit" name="Submit" value="提 交"></div></td></tr></table></form><% }%> </td> </tr> </table> </td> </tr></table><%}catch(Exception e){ e.printStackTrace(); String errMsg=e.getMessage(); %> <%@include file="INC/error.jsp"%> <%}%><%@ include file="foot.jsp"%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -