📄 addmast.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 root=(String)session.getAttribute("root");root=ht.donull(root);
String user_id=request.getParameter("id");user_id=ht.donull(user_id);
if(root.compareTo("")==0){root="0";}
int step=Integer.parseInt(root);
if(step<3 || user_id.compareTo("")==0){
out.print("<meta http-equiv=\"refresh\" content=\"3;URL=../index.jsp\"><center><font color=#FF0000><strong>对不起,您无权进入本页面</strong></font></center>");
}else{
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>任命斑竹</title>
<style type="text/css">
<!--
.style1 {color: #FFFFFF}
td{font-size:13px}
-->
</style>
<script language="JavaScript" type="text/JavaScript">
function checkselect(theform){
if (theform.mast.value=="-")
{
alert("选择版块");
theform.mase.focus();
return false;
}
}
</script>
</head>
<body><form name="form1" method="post" action="actaddmast.jsp" onSubmit="return checkselect(this)">
<table width="100%" border="0">
<tr>
<td height="25"></td>
</tr>
<tr>
<td height="25"><table width="320" 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>
<tr bgcolor="#f8f8f8">
<td colspan="2"> </td>
</tr>
<tr bgcolor="#f8f8f8">
<td width="131"><div align="right">版面名称:</div></td>
<td width="222"><%
String sql="select id,name from board";
ResultSet rs=con.query(sql);
%>
<select name="mast" id="mase">
<option value="-" selected>----</option>
<% while(rs.next()){ %>
<option value="<%=rs.getString(1)%>"><%=con.getStr(rs.getString(2))%></option>
<% }
%>
</select>
</td>
</tr>
<tr bgcolor="#f8f8f8">
<td colspan="2"> </td>
</tr>
<tr bgcolor="#f8f8f8">
<th colspan="2"><input name="imageField" type="image" src="../img/ok1.gif" onMouseOut="../this.src='img/ok1.gif'" onMouseOver="this.src='../img/ok2.gif'" width="60" height="22" border="0">
<input name="id" type="hidden" id="id" value="<%=user_id%>">
<img src="../img/close1.gif" onMouseOut="this.src='../img/close1.gif'" onMouseOver="../this.src='img/close2.gif'" width="60" height="22" style="cursor:hand" onClick="window.close();"></th>
</tr>
</table></td>
</tr>
<tr>
<td height="25"></td>
</tr>
</table>
</form>
</body>
</html>
<%
}
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -