?? compose.jsp
字號:
<%@ page language="java" contentType="text/html; charset=GB2312"
pageEncoding="GB2312"%>
<%if (session.getAttribute("userName") == null) {
response.sendRedirect("login.jsp");
}%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GB2312">
<meta http-equiv="Content-Language" content="zh-cn">
<title>新聞-撰寫</title>
<script language="JavaScript"><!--
function validateCompose(){
var MB_TITLE = document.frmCompose.MB_TITLE.value;
var MB_CONTENT = document.frmCompose.MB_CONTENT.value;
if (MB_TITLE ==""){
alert("必須填寫標題!");
return false;
}
if (MB_CONTENT ==""){
alert("必須填寫內容!");
return false;
}
}
-->
</script>
</head>
<body>
<div align=center>
<form name="frmCompose" method="POST" action="ComposeServlet"
onSubmit="javaScript:return validateCompose();"><br>
<table border="0" width=400 bgcolor="#efefef" cellspacing="0"
cellpadding="0">
<tr>
<td width="100%" align=center colspan="2" height="30"
bgcolor="#0000FF"><font color="#FFFFFF"><b>撰寫新聞</b></font></td>
</tr>
<tr>
<td width="20%" bgcolor="#FCFCFC" align=right>標題: </td>
<td width="80%" bgcolor="#FCFCFC"><input type="text" name="MB_TITLE"
size="35" maxlength="30"></td>
</tr>
<tr>
<td width="20%" bgcolor="#FCFCFC" align=right>內容: </td>
<td width="80%" bgcolor="#FCFCFC"><textarea rows="8" name="MB_CONTENT"
cols="34">
</textarea></td>
</tr>
<tr>
<td width="20%" bgcolor="#FCFCFC" align=right>撰寫人: </td>
<td width="80%" bgcolor="#FCFCFC"><font color=#FF0000><%=session.getAttribute("userName")%></font>
</td>
</tr>
<tr>
<td width="100%" align=center colspan="2" height="50"><input
type="hidden" value="Compose" name="action"> <input type="submit"
value="提交" name="submit"> <input type="reset" value="重置"
name="reset"></td>
</tr>
</table>
</form>
</div>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -