📄 addnewsstep1.jsp
字号:
<%@page contentType="text/html;charset=gb2312"%>
<%@ include file="../incoming/Common.jsp"%>
<%@ include file="../incoming/ConnectDB.jsp"%>
<%@ include file="../incoming/Check.jsp"%>
<html>
<head>
<title><%=title%>管理</title>
<link href="../incoming/style.css" rel="stylesheet" type="text/css">
</head>
<script Language="JavaScript">
function check_input(theForm)
{
if (theForm.newstitle.value == "")
{
alert("请输入新闻标题.");
theForm.newstitle.focus();
return (false);
}
if (theForm.newsbody.value == "")
{
alert("请输入新闻的内容.");
theForm.newsbody.focus();
return (false);
}
if (theForm.newstitle.value.length > 50)
{
alert("新闻标题长度应小于25个字.");
theForm.newstitle.focus();
return (false);
}
}
</script>
<body>
<%
String categoryid = new String(request.getParameter("categoryid").getBytes("ISO8859_1"),"GBK");
%>
<table border="1" width=700 align=center cellpadding=0 cellspacing=0>
<form method="POST" action="AddNewsStep2.jsp?categoryid=<%=categoryid%>" onsubmit="return check_input(this)">
<tr align="center" bgcolor="#CCCCCC" height=25>
<td height="42" colspan=2><a class="title">发布新闻(*为必填项目)</a></TD>
</tr>
<tr>
<td width="10%" height="31" align="center" class="text"><B>新闻标题</B></td>
<td width="90%" class="text"> <input name=newstitle TYPE="text" id="newstitle" size=50 maxlength=25>
*不超过25个汉字</TD>
</tr>
<tr>
<td height="29" colspan="2" align="center" >
<B>新闻内容</B><span class="text">*</span> </td>
</tr>
<tr>
<td height="80" colspan=2 align=center ><FONT color=#000000>
<textarea name="newsbody" cols="95%" rows="30" wrap="VIRTUAL" class="smallarea" id="newsbody" title="请在此填写新闻的内容。"></textarea>
</font></td>
</tr>
<tr>
<td height="54" colspan=2 align=center ><font color=#000000>
<input name=Submit type=submit value="发布">
<input name=Submit2 type=reset value="取消">
</font></td>
</tr>
</form>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -