📄 modboards.jsp
字号:
<%@ page language="java" contentType="text/html; charset=gb2312" %>
<jsp:useBean id="ModBoardsBean" scope="page" class="com.laoer.bbscs.board.Boards" />
<jsp:useBean id="DoTextBean" scope="page" class="com.laoer.bbscs.txthtml.DoText" />
<%
String name = (String) session.getValue("name");
String passwd = (String) session.getValue("passwd");
if (name != null && name.length() > 0 && passwd != null && passwd.length() > 0) {
String bsid = request.getParameter("bsid");
if (bsid != null && bsid.length() > 0) {
ModBoardsBean.getBoards(bsid);
%>
<html>
<head>
<title>管理界面</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css">
<!--
a { color: #0000FF; text-decoration: none }
a:link { text-decoration: none; color: #0000FF; font-family: "宋体" }
a:visited { text-decoration: none; color: #0000FF; font-family: "宋体" }
a:hover { text-decoration: underline; color: #FF0000 }
a:active { text-decoration: underline; color: #FF0000 }
body { font-family: "宋体"; font-size: 9pt}
table { font-family: "宋体"; font-size: 9pt}
-->
</style>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div align="center">
<form name="addbs" method="post" action="modboards_ok.jsp">
<INPUT TYPE="hidden" name="bid" value="<%=ModBoardsBean.getBoardID()%>">
<INPUT TYPE="hidden" name="bsid" value="<%= bsid%>">
<table width="272" border="0" align="center">
<tr>
<td colspan="2">
<div align="center"><B>修改版面</B></div>
</td>
</tr>
<tr>
<td width="90">
<div align="right">名称(中):</div>
</td>
<td width="172">
<input type="text" name="boardsname" size="20" maxlength="20" value="<%=DoTextBean.iso2gb(ModBoardsBean.getBoardsName())%>">
</td>
</tr>
<tr>
<td width="90">
<div align="right">名称(英):</div>
</td>
<td width="172">
<input type="text" name="eboardsname" size="20" maxlength="20" value="<%=DoTextBean.iso2gb(ModBoardsBean.getEBoardName())%>">
</td>
</tr>
<tr>
<td width="90">
<div align="right">斑竹:</div>
</td>
<td width="172">
<input type="text" name="bsmaster" size="20" maxlength="20" value="<%=DoTextBean.iso2gb(ModBoardsBean.getBsMaster())%>">
</td>
</tr>
<tr>
<td width="90">
<div align="right">版副:</div>
</td>
<td width="172">
<input type="text" name="bsmaster1" size="20" maxlength="20" value="<%=DoTextBean.iso2gb(ModBoardsBean.getBsMaster1())%>">
</td>
</tr>
<tr>
<td width="90">
<div align="right">隐身斑竹:</div>
</td>
<td width="172">
<input type="text" name="bsmaster2" size="20" maxlength="20" value="<%=DoTextBean.iso2gb(ModBoardsBean.getBsMaster2())%>">
</td>
</tr>
<tr>
<td width="90">
<div align="right">版面公告:</div>
</td>
<td width="172">
<input type="text" name="boardgg" size="20" value="<%=DoTextBean.iso2gb(DoTextBean.htmlEncode(ModBoardsBean.getBoardgg())) %>">
</td>
</tr>
<tr>
<td width="90">
<div align="right">版区属性:</div>
</td>
<%
int attrib = ModBoardsBean.getAttrib();
%>
<td width="172">
<select name="attrib">
<option value="1" <% if (attrib==1) { out.print("selected"); }%>>普通版面</option>
<option value="2" <% if (attrib==2) { out.print("selected"); }%>>一般用户不能发帖</option>
<option value="3" <% if (attrib==3) { out.print("selected"); }%>>可以使用HTML</option>
<option value="4" <% if (attrib==4) { out.print("selected"); }%>>非授权用户不能访问</option>
<option value="5" <% if (attrib==5) { out.print("selected"); }%>>测试版面</option>
</select>
</td>
</tr>
<tr>
<td width="90">
<div align="right">使用状态:</div>
</td>
<%
int usestate = ModBoardsBean.getUseState();
%>
<td width="172">
<select name="usestate">
<option value="1" <% if (usestate==1) { out.print("selected"); }%>>正常</option>
<option value="2" <% if (usestate==2) { out.print("selected"); }%>>废弃</option>
</select>
</td>
</tr>
<tr>
<td width="90">
<div align="right">序:</div>
</td>
<td width="172">
<input type="text" name="xu" size="3" maxlength="3" value="<%=ModBoardsBean.getBoardsXu()%>">
</td>
</tr>
<tr>
<td colspan="2">
<div align="center">
<input type="submit" name="pub_bmod" value="修改">
<input type="reset" name="Submit2" value="重填">
</div>
</td>
</tr>
</table>
<p><CENTER><a href="javascript:history.go(-1);">返回</a></CENTER></p>
</form>
</div>
</body>
</html>
<%
}
else {
out.print("参数错误!");
}
}
else {
out.println("错误!");
}
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -