|
|
|
@ -10,7 +10,7 @@ String path = request.getContextPath();
|
|
|
|
|
%>
|
|
|
|
|
|
|
|
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml"> <!-- 1.插入时间格式的包.2.插入处理时间的包。34.使用JSTL(JSP标准标签库)5.使得EL不当成字符串处理-->
|
|
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
|
|
|
<head>
|
|
|
|
|
<meta http-equiv="pragma" content="no-cache" />
|
|
|
|
|
<meta http-equiv="cache-control" content="no-cache" />
|
|
|
|
@ -21,7 +21,7 @@ String path = request.getContextPath();
|
|
|
|
|
<link rel="stylesheet" type="text/css" href="<%=path %>/css/base.css" />
|
|
|
|
|
|
|
|
|
|
<script language="javascript">
|
|
|
|
|
function c() //如果评价内容为空,提示请输入评论内容
|
|
|
|
|
function c()
|
|
|
|
|
{
|
|
|
|
|
if(document.formAdd.neirong.value=="")
|
|
|
|
|
{
|
|
|
|
@ -29,13 +29,13 @@ String path = request.getContextPath();
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
document.formAdd.submit(); //如果不为空则提交信息
|
|
|
|
|
document.formAdd.submit();
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
</head>
|
|
|
|
|
|
|
|
|
|
<body leftmargin="2" topmargin="9" background='<%=path %>/img/allbg.gif'> <!-- 距离左边为2,距离上面为9,背景图片为。。 -->
|
|
|
|
|
<form action="<%=path %>/xinyong?type=xinyongAdd" name="formAdd" method="post"> <!--表单的方法为提交 -->
|
|
|
|
|
<body leftmargin="2" topmargin="9" background='<%=path %>/img/allbg.gif'>
|
|
|
|
|
<form action="<%=path %>/xinyong?type=xinyongAdd" name="formAdd" method="post">
|
|
|
|
|
<table width="98%" border="0" cellpadding="2" cellspacing="1" bgcolor="#D1DDAA" align="center" style="margin-top:8px">
|
|
|
|
|
<tr bgcolor="#E7E7E7">
|
|
|
|
|
<td height="14" colspan="4" background="<%=path %>/img/tbg.gif"> </td>
|
|
|
|
@ -64,7 +64,7 @@ String path = request.getContextPath();
|
|
|
|
|
</td>
|
|
|
|
|
<td width="90%" bgcolor="#FFFFFF" align="left">
|
|
|
|
|
<input type="text" name="shijian" size="40" value="<%=new SimpleDateFormat("yyyy-MM-dd HH:mm").format(new Date())%>"/>
|
|
|
|
|
<!-- 取得系统当前时间,格式为yyyy年-MM月-dd号 HH点:mm分 -->
|
|
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr align='center' bgcolor="#FFFFFF" height="22">
|
|
|
|
@ -72,8 +72,7 @@ String path = request.getContextPath();
|
|
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
<td width="90%" bgcolor="#FFFFFF" align="left">
|
|
|
|
|
<input type="hidden" name="user_id" value="<%=request.getParameter("user_id") %>"/> <!-- 插入隐藏域,获得用户的id -->
|
|
|
|
|
<input type="button" value="提交" onclick="c()"/>
|
|
|
|
|
<input type="hidden" name="user_id" value="<%=request.getParameter("user_id") %>"/>
|
|
|
|
|
<input type="reset" value="重置"/>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|