www.pudn.com > Jsp-Blog.rar > log.jsp, change:2010-05-26,size:4328b


<%@page language="java" contentType="text/html;charset=utf-8"%> 
<html> 
	<head> 
 
		<title>添加日志首页</title> 
		<link rel="stylesheet" href="css/index.css" type="text/css"> 
		<script language="javascript"> 
function check(){ 
  //帐号、密码不能为空的校验 
	   var  logtitle=document.forms[0].elements["logtitle"].value; 
	   var  logcontent=document.forms[0].elements["logcontent"].value; 
	   if(logtitle==""){ 
	    alert("请填写日志标题!"); 
	    return; 
	   } 
	   if(logcontent==""){ 
	    alert( "请填写内容!"); 
	     return; 
	   } 
	 if(logtitle!=""&&logcontent!=""){ 
	   document.forms[0].submit(); 
	   } 
  } 
  
</script> 
	</head> 
	<body> 
		<form action="/myblog/log" method="post"> 
			<table width="800" border="0" cellspacing="0" cellpadding="0"> 
				<tr> 
					<td valign="top"> 
						<img src="images/menu[1].jpg" width="980" height="36" /> 
					</td> 
				</tr> 
				<tr> 
					<td height="168" valign="top" background="images/wrapper[1].jpg"> 
						<table width="915" border="0" cellspacing="0" cellpadding="0"> 
							<tr> 
								<td width="55" height="153" valign="top"> 
									  
								</td> 
								<td width="190" valign="top"> 
									<table width="168" border="0" align="center" cellpadding="0" 
										cellspacing="0"> 
										<tr> 
											<td width="185"> 
												<p> 
													<img src="images/tb032.jpg" width="40" height="40" /> 
													<strong><font color="#FF0000">发表日志窗口</font> </strong> 
												</p> 
												<p> 
													<strong><font color="#FF0000">可以点此<a 
															href="index.jsp">返回</a> </font> </strong> 
												</p> 
											</td> 
										</tr> 
									</table> 
								</td> 
								<td width="64" valign="top"> 
									  
								</td> 
								<td width="707" valign="top"> 
 
									<table width="400" border="0" align="center" cellpadding="4" 
										cellspacing="0" bgcolor="#87cefa"> 
										<tr> 
											<td colspan="2" align="center"> 
												<% 
													Object logmsg = request.getAttribute("logmsg"); 
													if (logmsg != null) { 
												%> 
												<font color="red"> 
													<h2> 
														<% 
															out.print(logmsg); 
															} 
														%> 
													</h2> 
												</font> 
											</td> 
										</tr> 
										<tr> 
											<td colspan="2" align="center"> 
												<font color="#cb4400">记录下你的每一天,让精彩永远停留</font> 
											</td> 
										</tr> 
 
										<tr> 
											<td valign="top"> 
												日志标题: 
											</td> 
											<td valign="top"> 
												<input name="logtitle" type="text" size="30" maxlength="30" /> 
											</td> 
										</tr> 
 
										<tr> 
											<td valign="top"> 
												日志内容: 
											</td> 
											<td valign="top"> 
												<textarea rows="10" cols="35" name="logcontent"></textarea> 
 
											</td> 
										</tr> 
 
										<tr> 
											<td valign="top"> 
												<input type="submit" name="Submit" value="提交" 
													onclick="check()" /> 
											</td> 
											<td valign="top" align="left" colspan="2"> 
												<input name="clear" type="reset" value="清空" /> 
											</td> 
										</tr> 
 
									</table> 
 
								</td> 
							</tr> 
						</table> 
					</td> 
				</tr> 
				<tr> 
					<td height="116" valign="top" background="images/footer[1].jpg"> 
						<table width="919" border="0" cellspacing="0" cellpadding="0"> 
							<tr> 
								<td width="283" height="94"> 
									  
								</td> 
								<td width="636" valign="top"> 
									<table width="458" height="40" border="0" align="center" 
										cellpadding="0" cellspacing="0"> 
										<tr> 
											<td align="center"> 
												<p> 
													<strong>2010年潍坊学院计算机与通信工程学院毕业设计</strong> 
												</p> 
												<p> 
												<strong>2006级   网络工程一班     徐仁强</strong> 
												</p> 
											</td> 
										</tr> 
									</table> 
								</td> 
							</tr> 
						</table> 
					</td> 
				</tr> 
			</table> 
		</form> 
	</body> 
</html>