【JSP开源代码栏目提醒】:以下是网学会员为您推荐的JSP开源代码-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">欢迎<b><%=session.getAttribute("adminFlag")%></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="0" cellspacing="1" cellpadding="3" align=center bordercolor=<%=aTableBackColor%>><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%">论坛forumLogo地址</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><tr> <td width="41%">论坛表情地址</td><td width="59%"> <input type="text" name="faceURL" size="35" value="<%=faceURL%>"></td></tr><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><tr> <td width="41%">贴子上传图片</td><td width="59%"> <select name="uploadPic"><option value="0" <%if("0".equals(uploadPic)) {%>selected<%}%>>否 <option value="1" <%if("1".equals(uploadPic)) {%>selected<%}%>>是 </select></td></tr><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><tr> <td width="41%">用户头衔</td><td width="59%"> <select name="titleFlag"><option value="0" <%if ("0".equals(titleFlag)){%>selected<%}%>>隐藏 <option value="1" <%if ("1".equals(titleFlag)) {%>selected<%}%>>显示 </select></td></tr><tr> <td width="41%">在线名单显示客人在线</td><td width="59%"> <select name="guestUser"><option value="0" <%if ("0".equals(guestUser)){%>selected<%}%>>否 <option value="1" <%if("1".equals(guestUser)) {%>selected<%}%>>是 </select></td></tr><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><tr bgcolor=<%=aTableTitleColor%>> <td height="23" colspan="2" ><font color=<%=tableFontColor%>><b>关于贴子设置</b></font></td></tr><tr> <td height="17" width="41%">帖子内容最大的字节数</td><td height="17" width="59%"> <input type="text" name="announceMaxBytes" size="35" value="<%=announceMaxBytes%>"></td></tr><tr> <td width="41%">每页显示最多纪录</td><td width="59%"> <input type="text" name="maxAnnouncePerPage" size="35" value="<%=maxAnnouncePerPage%>"></td></tr><tr> <td width="41%">UBB风格浏览贴子每页显示贴子数</td><td width="59%"> <input type="text" name="maxTitleList" size="35" value="<%=maxTitleList%>"></td></tr><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%">论坛页首广告上一篇:admin_user.jsp