📄 addnew.jsp
字号:
<html>
<head>
<title>BBS</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="../bbs.css">
</head>
<script language="javascript">
function checkForm() {
if(document.form1.topic.value == "") {
alert("文章的主题不能为空!");
form1.topic.focus();
return false;
}
if (document.form1.email.value != "" && (document.form1.email.value.indexOf("@")<1 || document.form1.email.value.indexOf(".")<1)) {
alert(" eamil地址不合法,请输入正确的地址");
form1.email.focus();
return false;
}
return true;
}
function openWindow(url) {
var newWin = window.open(url,"","toolbar=no,status=no,menubar=no,width=350,height=300");
return false;
}
</script>
<body bgcolor="#FFF9F0">
<%
String boardid = request.getParameter("boardid");
String username = (String) session.getValue("username");
if (username == null) {
%>
你只能以过客的名字发表文章,无法取得经验值,如果你没有登陆,请<a href="../logon.jsp" onclick="return openWindow(this.href);"><font color="red">登陆</font></a>,如果你没有注册,请<a href="../register.htm" onclick="return openWindow(this.href);"><font color="red">注册!</font></a><p>
<%
}
%>
<form action="addnew_write.jsp" method="post" name="form1">
<table border=0 cellspacing=0 cellpadding=0 align=center width="100%">
<tr>
<td>
<p> 主题 ----如果您想上传图片,请先发表帖子,然后接着上传图片。<br>
<input name=topic size=50>
<input type="hidden" name="boardid" value="<%= boardid %>">
<select name="type">
<option value="原创">原创</option>
<option value="转帖">转帖</option>
</select>
</p>
</td>
</tr>
<tr>
<td valign="top"><br>
表情
<table width="350" border="0">
<tr>
<td>
<input type="radio" name="face" value="1" checked>
<img src="../images/mod1.gif" width="20" height="20"></td>
<td>
<input type="radio" name="face" value="2">
<img src="../images/mod2.gif" width="20" height="20"></td>
<td>
<input type="radio" name="face" value="3">
<img src="../images/mod3.gif" width="20" height="20"></td>
<td>
<input type="radio" name="face" value="4">
<img src="../images/mod4.gif" width="20" height="20"></td>
<td>
<input type="radio" name="face" value="5">
<img src="../images/mod5.gif" width="20" height="20"></td>
<td>
<input type="radio" name="face" value="6">
<img src="../images/mod6.gif" width="20" height="20"></td>
</tr>
<tr>
<td>
<input type="radio" name="face" value="7">
<img src="../images/mod7.gif" width="20" height="20"></td>
<td>
<input type="radio" name="face" value="8">
<img src="../images/mod8.gif" width="20" height="20"></td>
<td>
<input type="radio" name="face" value="9">
<img src="../images/mod9.gif" width="20" height="20"></td>
<td>
<input type="radio" name="face" value="10">
<img src="../images/mod10.gif" width="20" height="20"></td>
<td>
<input type="radio" name="face" value="11">
<img src="../images/mod11.gif" width="20" height="20"></td>
<td>
<input type="radio" name="face" value="12">
<img src="../images/mod12.gif" width="20" height="20"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<p> <br>
发表文章(最多2000字)<br>
<textarea name=text cols=70 rows=10></textarea>
</p>
</td>
</tr>
<tr>
<td> <br>
电子邮件:
<input name=email size=40>
</td>
</tr>
<tr>
<td> 链接标题:
<input name=linktopic size=40>
</td>
</tr>
<tr>
<td> 链接地址:
<input name=linkurl size=40>
</td>
</tr>
</table><p>
<table border=0 cellspacing=0 cellpadding=0 align=center>
<tr>
<td align="center">
<table width="50%" border="0">
<tr>
<td>
<input type="submit" name="Submit2" value="发表" onclick="return checkForm();">
</td>
<td>
<input type="reset" name="Submit3" value="重写">
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
<p>
<div align=center><hr color="#FF9900" size=1>
<p align="center"> <a href="../../index.jsp" target="_top">返 回 首 页</a>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -