📄 boardset.jsp
字号:
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<jsp:useBean id="con" scope="page" class="numb1.com.db"/>
<jsp:useBean id="ht" scope="page" class="numb1.com.Dohtml"/>
<%
String id=(String)session.getAttribute("id");id=ht.donull(id);
String root=(String)session.getAttribute("root");root=ht.donull(root);
String bdid=request.getParameter("bdid");
String table="";
String logo="";
String bdname="";
String inform="";
String focus="";
String bdmast="";
boolean test=false;
if(root.compareTo("")==0){root="0";}
int step=Integer.parseInt(root);
String sql="select btable,name,logo,inform,focus,boardmast from board where id="+bdid;
ResultSet rs=con.query(sql);rs.next();
if(rs.getRow()!=0){
table=rs.getString(1);
bdname=con.getStr(rs.getString(2));
logo=rs.getString(3);
inform=con.getStr(rs.getString(4));
focus=con.getStr(rs.getString(5));
bdmast=con.getStr(rs.getString(6));
String mast[]=ht.split(bdmast,"*");
for(int i=0;i<mast.length-1;i+=2){
if(mast[i].compareTo(id)==0){
test=true;
}
}
}con.close();
if(step>2 || test){
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><%=bdname%>-版面管理</title>
<style type="text/css">
<!--
.style1 {color: #FFFFFF}
td{font-size:13px}
th{font-size:15px}
.style2 {color: #FF0000}
-->
</style>
</head>
<body><% if(step > 5){%><br>
<p align="center" class="style2">注意:斑竹不可随便修改,有可能造成斑竹数据库混乱,后果非常严重,且此处一但修改不可恢复</p>
<% }%>
<form action="action/actboardset.jsp" method="post" name="form1">
<table width="480" border="0" align="center" cellspacing="1" bgcolor="#7188e0">
<tr bgcolor="#f8f8f8">
<td colspan="2"><table width="100%" border="0" cellspacing="1">
<tr>
<th bgcolor="#7188e0"><span class="style1">论坛管理</span></th>
</tr>
</table></td>
</tr><% if(step == 6){%>
<tr bgcolor="#f8f8f8">
<td height="15"><div align="right">斑竹:</div></td>
<td height="15"><input name="mast" type="text" id="mast" value="<%=bdmast%>" size="25">
确定修改:<input name="ok" type="checkbox" id="ok" value="ok"></td>
</tr><% } if(step>4 && step<7){%>
<tr bgcolor="#f8f8f8">
<td height="15"><div align="right">帖子存储:</div></td>
<td height="15"><select name="table" disabled id="table">
<option value="btable1" <% if("btable1".equals(table)){%>selected<% }%>>table1</option>
</select></td>
</tr><% } if(step>3 && step<7){%>
<tr bgcolor="#f8f8f8">
<td width="102" height="15"><div align="right">版面图标:</div></td>
<td height="15"><input name="logo" type="text" id="logo" value="<%=logo%>" size="36" style="BORDER: #7188e0 1px solid;color:#1818FF;">
</td>
</tr><% }%>
<tr bgcolor="#f8f8f8">
<td><div align="right">公告信息:</div></td>
<td width="368"><textarea name="inform" cols="42" rows="4" id="inform" style="BORDER: #7188e0 1px solid; background:#f8f8f8; color:#1818FF; overflow:auto;"><%=inform%></textarea></td>
</tr>
<tr bgcolor="#f8f8f8">
<td><div align="right">今日话题:</div></td>
<td><textarea name="focus" cols="42" rows="4" id="focus" style="BORDER: #7188e0 1px solid; background:#f8f8f8; color:#1818FF; overflow:auto;"><%=focus%></textarea></td>
</tr>
<tr bgcolor="#f8f8f8">
<td colspan="2"><div align="center">
<input type="submit" name="Submit" value="提交">
<input name="bdid" type="hidden" id="bdid" value="<%=bdid%>">
<input type="reset" name="Submit" value="重置">
</div></td>
</tr>
</table>
</form>
</body>
</html>
<%
}else{
out.print("<meta http-equiv=\"refresh\" content=\"3;URL=main.jsp?id="+bdid+"\"><br><br><center><font color=#ff0000>对不起,您的权限值不够!</font></center>");
}
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -