?? add.jsp
字號(hào):
<%@ page contentType="text/html; charset=gb2312" import="java.sql.*"%>
<html>
<head>
<title>添加新聞</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<link href="css/style.css" rel="stylesheet" type="text/css">
<script language="javascript">
function add()
{
if(add_form.title.value.length == 0 || add_form.content.value.length == 0 )
{
alert("不能為空");
}
else
{
add_form.submit();
}
}
</script>
</head>
<body>
<form name="add_form" method="post" action="deal.jsp?action=add">
<table>
<input type="hidden" name="author" value="<%=(String)session.getAttribute("username")%>">
<tr>
<td width="60" class="text-login">新聞標(biāo)題</td>
<td width="120" class="text-login"><input type=text name="title" class="inputlength300" maxlength="100"></td>
</tr>
<tr>
<td width="60" class="text-login">新聞內(nèi)容</td>
<td width="120" height="200"><textarea name="content" class="addtextarea"></textarea></td>
</tr>
<tr>
<td colspan="2"><input type="button" value="提交" onclick="add()" class="logbutton"></td>
</tr>
</table>
</form>
</body>
</html>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -