📄 admin_boardaset.jsp
字号:
<%@ page contentType="text/html;charset=GBK"%>
<%@ include file="INC/const.jsp"%>
<%@ page import = "java.util.Vector,
com.bcxy.bbs.forum.admin.*"%>
<%
stats=forumName+"斑竹管理页面";
forumID=ParamUtil.getInt(request,"forumID",0);
String errMsg="";
%>
<%@ include file="INC/theme.jsp"%>
<%
out.println(headLine(1,forumName,forumLogo,"",1,stats,tableWidth));
%>
<%
try{
ForumNewsAdmin forumNewsAdmin = new ForumNewsAdmin(request,response);
%>
<table cellpadding=0 cellspacing=0 border=0 width=<%=tableWidth%> bgcolor=<%=tableBackColor%> align=center>
<tr>
<td>
<table cellpadding=3 cellspacing=1 border=0 width=100%>
<tr bgcolor='<%=tableTitleColor%>'>
<td align=center colspan="2"><font color="<%=tableFontColor%>">欢迎<b> <%=response.encodeURL(userName)%></b>进入版主管理页面</font></td>
</tr>
<tr bgcolor=<%=tableBodyColor%>>
<td width="30%" valign=top><font color="<%=tableContentColor%>">
注意:各个版面版主可以在自己版面自由发布公告和版面设置,管理员可以在所有版面发布,并对信息进行管理操作。
<br><BR>
版主管理选项:<BR>
主版主可增删副版主:<%if (bmFlag_1==1) {%>打开<%}else{%>关闭<%}%><BR>
主版主可修改颜色配置:<%if (bmFlag_2==1) {%>打开<%}else{%>关闭<%}%><BR>
主版主可更改论坛使用设置:<%if (bmFlag_3==1) {%>打开<%}else{%>关闭<%}%><BR>
所有版主均可修改颜色配置:<%if (bmFlag_4==1){%>打开<%}else{%>关闭<%}%><BR>
所有版主均可更改论坛设置:<%if (bmFlag_5==1) {%>打开<%}else{%>关闭<%}%><BR>
</font>
</td>
<td width="70%" valign=top>
<font color="<%=tableContentColor%>">
<table cellpadding=0 cellspacing=0 border=0 width=100% align=center>
<tr>
<td width="100%" height=24 bgcolor=<%=aTableTitleColor%>>
<font color="<%=tableContentColor%>">
<B>注意</B>:<BR>本页面为版主专用,使用前请看左边相对应的功能是否打开,在进行管理设置的时候,不要随意更改设置,如需更改,必须填写完整或者正确的填写。<BR>
<b>管理选项:<a href=admin_boardaset.jsp?forumID=<%=forumID%>><font color="<%=tableContentColor%>">论坛公告发布</font></a>
<%if (forumMaster||master) {%>
| <b><a href=admin_boardaset.jsp?action=manage&forumID=<%=forumID%>><font color="<%=tableContentColor%>">公告管理</font></a>
<%}%> |
<a href=admin_boardaset.jsp?action=editbminfo&forumID=<%=forumID%>><font color="<%=tableContentColor%>">基本信息管理</font></a> |
<a href=admin_boardaset.jsp?action=editbmset&forumID=<%=forumID%>><font color="<%=tableContentColor%>">基本设置管理</font></a> |
<a href=admin_boardaset.jsp?action=editbmcolor&forumID=<%=forumID%>><font color="<%=tableContentColor%>">颜色设置管理</font></a></b></font>
</td></tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<%
String action=ParamUtil.getString(request,"action");
if(action==null||action.equals("news")){
%>
<form action="admin_boardaset.jsp?action=new" method=post name=FORM>
<table cellpadding=0 cellspacing=0 border=0 width="<%=tableWidth%>" bgcolor="<%=tableBackColor%>" align=center>
<tr><td>
<table cellpadding=4 cellspacing=1 border=0 width="100%">
<tr>
<td width="20%" valign=top bgcolor="<%=tableBodyColor%>">
<div align="right"><font color="<%=tableContentColor%>">发布版面: </font></div>
</td>
<td width="80%" bgcolor="<%=tableBodyColor%>">
<%if (master) {%>
<select name="forumID" size="1">
<option value="0">论坛首页</option>
<%@include file="INC/forumList.jsp"%>
</select>
<%}else{%>
<%
Forum theForum=ForumFactory.getForum(forumID);
%>
<select name="forumID" size="1">
<option value="<%=forumID%>"><%=theForum.getForumType()%></option>
</select>
<%}%>
</td>
</tr>
<tr>
<td width="20%" valign=top bgcolor="<%=tableBodyColor%>">
<div align="right"><font color="<%=tableContentColor%>">发布人: </font></div>
</td>
<td width="80%" bgcolor="<%=tableBodyColor%>">
<input type=text name=username size=36 value="<%=userName%>" disabled>
<input type=hidden name=username value="<%=userName%>">
</td>
</tr>
<tr>
<td width="20%" valign=top bgcolor="<%=tableBodyColor%>">
<div align="right"><font color="<%=tableContentColor%>">标题: </font></div>
</td>
<td width="80%" bgcolor="<%=tableBodyColor%>">
<input type=text name=title size=50>
</td>
</tr>
<tr>
<td width="20%" valign=top bgcolor="<%=tableBodyColor%>">
<div align="right"><font color="<%=tableContentColor%>">内容: </font></div>
</td>
<td width="80%" bgcolor="<%=tableBodyColor%>">
<textarea cols=50 rows=6 name="content"></textarea>
</td>
</tr>
<tr>
<td width="100%" valign=top colspan="2" align=center bgcolor="<%=tableBodyColor%>">
<input type=hidden name="checked" value="yes">
<input type=Submit value="发 送" name=Submit">
<input type="reset" name="Clear" value="清 除">
</td>
</tr>
</table>
</td></tr></table>
</form>
<%
}
else if(action.equals("new")){
%>
<br>
<table cellspacing=0 border=0 width=<%=tableWidth%> bgcolor="<%=tableBackColor%>" align=center><tr><td height=1></td></tr></table>
<table cellpadding=0 cellspacing=0 border=1 width=<%=tableWidth%> align=center bordercolor=<%=tableBackColor%>>
<tr><td width="80%" align=center height=22 bgcolor=<%=tableTitleColor%>>
<font color="<%=tableFontColor%>">
发布成功!
</font>
</td></tr>
</table>
<%
}
else if(action.equals("del")){
%>
<br>
<table cellspacing=0 border=0 width=<%=tableWidth%> bgcolor="<%=tableBackColor%>" align=center><tr><td height=1></td></tr></table>
<table cellpadding=0 cellspacing=0 border=1 width=<%=tableWidth%> align=center bordercolor=<%=tableBackColor%>>
<tr><td width="80%" align=center height=22 bgcolor=<%=tableTitleColor%>>
<font color="<%=tableFontColor%>">
删除公告成功
</font>
</td></tr>
</table>
<%
}
else if(action.equals("update")){
%>
<br>
<table cellspacing=0 border=0 width=<%=tableWidth%> bgcolor="<%=tableBackColor%>" align=center><tr><td height=1></td></tr></table>
<table cellpadding=0 cellspacing=0 border=1 width=<%=tableWidth%> align=center bordercolor=<%=tableBackColor%>>
<tr><td width="80%" align=center height=22 bgcolor=<%=tableTitleColor%>>
<font color="<%=tableFontColor%>">
修改成功!
</font>
</td></tr>
</table>
<%
}
else if(action.equals("saveditbm")){
%>
<br>
<table cellspacing=0 border=0 width=<%=tableWidth%> bgcolor="<%=tableBackColor%>" align=center><tr><td height=1></td></tr></table>
<table cellpadding=0 cellspacing=0 border=1 width=<%=tableWidth%> align=center bordercolor=<%=tableBackColor%>>
<tr><td width="80%" align=center height=22 bgcolor=<%=tableTitleColor%>>
<font color="<%=tableFontColor%>">
修改成功
</font>
</td></tr>
</table>
<%
}
else if(action.equals("savebmset")){
%>
<br>
<table cellspacing=0 border=0 width=<%=tableWidth%> bgcolor="<%=tableBackColor%>" align=center><tr><td height=1></td></tr></table>
<table cellpadding=0 cellspacing=0 border=1 width=<%=tableWidth%> align=center bordercolor=<%=tableBackColor%>>
<tr><td width="80%" align=center height=22 bgcolor=<%=tableTitleColor%>>
<font color="<%=tableFontColor%>">
基本设置管理修改成功
</font>
</td></tr>
</table>
<%
}
else if(action.equals("savebmcolor")){
%>
<br>
<table cellspacing=0 border=0 width=<%=tableWidth%> bgcolor="<%=tableBackColor%>" align=center><tr><td height=1></td></tr></table>
<table cellpadding=0 cellspacing=0 border=1 width=<%=tableWidth%> align=center bordercolor=<%=tableBackColor%>>
<tr><td width="80%" align=center height=22 bgcolor=<%=tableTitleColor%>>
<font color="<%=tableFontColor%>">
颜色设置管理修改成功
</font>
</td></tr>
</table>
<%
}
else if(action.equals("manage")){
%>
<br>
<table cellspacing=0 border=0 width=<%=tableWidth%> bgcolor="<%=tableBackColor%>" align=center><tr><td height=1></td></tr></table>
<table cellpadding=2 cellspacing=0 border=1 width=<%=tableWidth%> align=center bordercolor=<%=tableBackColor%>>
<tr><td width="80%" height=22 bgcolor=<%=tableTitleColor%> align=center>
<font color="<%=tableFontColor%>">标题</font>
</td>
<td width="10%" bgcolor=<%=tableTitleColor%> align=center>
<font color="<%=tableFontColor%>">版块</font>
<td width="10%" bgcolor=<%=tableTitleColor%> align=center>
<font color="<%=tableFontColor%>">操作</font>
</td></tr>
<%
try{
Vector forumNewsVector = null;
if(master){
forumNewsVector = ForumNewsManager.getForumNewsVector();
}else{
forumNewsVector = ForumNewsManager.getForumNewsVector(forumID);
}
for(i=0;i<forumNewsVector.size();i++){
ForumNews forumNews=(ForumNews)forumNewsVector.get(i);
Forum forum = ForumFactory.getForum(forumNews.getBoardid());
%>
<tr><td width="80%" bgColor="<%=tableBodyColor%>" height=22><a href=admin_boardaset.jsp?action=edit&newsID=<%=forumNews.getId()%>&forumID=<%=forumNews.getBoardid()%>><font color="<%=tableContentColor%>"><%=forumNews.getTitle()%></font></a>
</td>
<td width="10%" bgColor="<%=tableBodyColor%>" align=center>
<%if("".equals(forum.getForumType())){%>
<a href=index.jsp>论坛首页</a>
<%}else{%>
<a href=list.jsp?forumID=<%=forumNews.getBoardid()%>><%=forum.getForumType()%></a>
<%}%>
</td>
<td width="10%" bgColor="<%=tableBodyColor%>" align=center><a href=admin_boardaset.jsp?action=del&newsID=<%=forumNews.getId()%>&forumID=<%=forumNews.getBoardid()%> onclick="return window.confirm('确定要删除吗?');"><font color="<%=tableContentColor%>">删除</font></a>
</td>
</tr>
<%
}
}
catch(Exception e){
e.printStackTrace();
}
%></table>
<%
}
else if(action.equals("edit")){
int newsID=ParamUtil.getInt(request,"newsID");
%>
<form action="admin_boardaset.jsp?action=update&newsID=<%=newsID%>" method=post>
<table cellspacing=0 border=0 width=<%=tableWidth%> bgcolor="<%=tableBackColor%>" align=center><tr><td height=1></td></tr></table>
<table cellpadding=4 cellspacing=0 border=1 width=<%=tableWidth%> align=center bordercolor=<%=tableBackColor%>>
<tr><td width="20%" align=right>
<font color="<%=tableContentColor%>">发布版面:</font>
</td>
<td width="80%">
<select name="forumID" size="1">
<option value="0" <%if (forumID==0) {%>selected<%}%>>论坛首页</option>
<%@include file="INC/forumList.jsp"%>
</select>
</td></tr>
<%
try{
ForumNews forumNews=ForumNewsManager.getSignalForumNews(newsID);
%>
<tr><td width="20%" align=right>
<font color="<%=tableContentColor%>">发布人:</font>
</td>
<td width="80%"><input type=text name=username size=36 value=<%=forumNews.getUserName()%>></td></tr>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -