【JSP开源代码栏目提醒】:网学会员在JSP开源代码频道为大家收集整理了add_sort.jsp提供大家参考,希望对大家有所帮助!
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.
sql.*" errorPage="" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD
HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题
文档</title>
<style type="text/css">
<!--
body,td,th {
font-size: 12px;
}
a {
font-size: 12px;
}
a:link {
text-decoration: none;
}
a:visited {
text-decoration: none;
}
a:hover {
text-decoration: none;
}
a:active {
text-decoration: none;
}
.style2 {
color: #FFFFFF;
font-weight: bold;
}
.style3 {
color: #6600CC;
font-weight: bold;
}
-->
</style>
<SCRIPT language=javascript>
function CheckForm()
{
if (document.addSort.Sort.value==""){
alert("请输入用户名!");
document.addSort.Sort.focus();
return false;
}
</SCRIPT>
</head>
<body>
<%
String UserName=new String(session.getAttribute("Admin").getBytes("ISO8859_1"),"GBK");
if (UserName==null)
response.sendRedirect("admin/login.jsp");
%>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td> </td>
</tr>
<tr>
<td align="left" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="6"><img src="../images/part1_37.gif" width="5" height="28"></td>
<td width="709" background="../images/part1_38.gif"><div align="center" class="style2">::: 类 别 管 理 :::</div></td>
<td width="5"><img src="../images/part1_41.gif" width="8" height="28"></td>
</tr>
<tr>
<td width="6" height="45" background="../images/part1_44.gif"> </td>
<td>
<table width="80%" border="0" align="center" cellpadding="2" cellspacing="1">
<tr>
<td height="23" colspan="3" background="../images/bg_02.gif" class="text1"><div align="center" class="style3">增 加 类 别</div></td>
</tr>
<tr>
<td class="text1" colspan="3">
<form name="addSort" method="post" action="addsort_check.jsp">
<p align="center">论坛类别:
<input name="Sort" type="text" id="Sort" size="20" maxlength="50">
<input type="submit" name="Submit" value="提交"onclick=return(Checkform(this)) >
<input name="reset" type="reset" id="reset3" value="重置">
</p>
<p align="center"> </p>
</form> </tr>
</table>
<div align="center">
</td>
<td width="5" background="../images/part1_48.gif"> </td>
</tr>
<tr>
<td width="6"><img src="../images/part1_51.gif" width="5" height="14"></td>
<td background="../images/part1_52.gif"> </td>
<td width="5"><img src="../images/part1_55.gif" width="8" height="14"></td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>