📄 eval.html
字号:
#set ($p = ${StringUtil.getInt($request,"p")})
#set ($type = ${StringUtil.getInt($request,"type")})
#set ($pid = ${StringUtil.getLong($request,"pid")})
${pc.setPageNo($p)}
${pc.setPageSize(7)}
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>
#if($type==1)
体验
#elseif ($type==2)
评价
#else
关注
#end
${detailProduct.getString("name")}
购物圈子 - ${systemConfig.getStringConfigValue("webtitle")}</title>
<link href="../css/light.css" rel="stylesheet" type="text/css" />
<link href="css/style.css" rel="stylesheet" type="text/css" />
<script>
function go(p)
{
document.dataForm.p.value=p;
window.location = "eval-${type}-${pid}-"+document.dataForm.p.value+".html";
}
</script>
</head>
<body>
${group_head}
<br />
<table width="990" height="530" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="560" align="left" valign="top">
<span style="font-size:14px;color:#FF0099">
圈友
#if($type==1)
体验
#elseif ($type==2)
评价
#else
关注
#end
</span>
<span style="font-size:14px;">
${detailProduct.getString("name")}
</span>
<br />
<br />
<br />
#set($newEnjoys=${groupMgr.getGroupProductEvaluateByTypePid($type,$pid,$pc)})
#set($enjoyCount=${StringUtil.getRowLength($newEnjoys)})
#if ($enjoyCount>0)
#foreach ( $newEnjoy in $newEnjoys )
<table width="544" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="24" align="left" valign="middle" id="enjoy"><a href="detail-eval-${newEnjoy.getString("gpeid")}.html" title="${newEnjoy.getString("title")}" target="_blank">${StringUtil.cutString(${newEnjoy.getString("title")}, 18, "...")}</a> <span style="font-size:12px;color:#999999">(${newEnjoy.getString("rep_count")}回应)</span></td>
</tr>
<tr>
<td id="enjoy-bottom"><span style="color:#336699;">${newEnjoy.getString("nick_name")}</span> <span style="color:#666666">发表 on ${newEnjoy.getString("post_date")}</span><br />
<br />
${StringUtil.cutString(${newEnjoy.getString("content")}, 130, "...")}
<br /></td>
</tr>
</table>
<br />
<br />
#end
<br />
<form name="dataForm">
<input type="hidden" name="p" value="${p}">
<input type="hidden" name="type" value="${type}">
</form>
<DIV class=pages align="right">
${StringUtil.getTurnPage($pc,$p)} </div>
#else
<div style="border:1px #CCCCCC dashed;padding:10px;color:#999999">
<img src="imgs/eval.gif" width="14" height="14" align="absmiddle" /> 暂无评论,如果您发表,将会是第一篇</div>
#end
</td>
<td width="50" valign="top"> </td>
<td valign="top">
<table width="370" height="14" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="149" align="left" valign="top" >
<img src="${systenFolder}.${upload_pro_img}${detailProduct.getString("img_b")}" width="120" height="120" border="0" /> </td>
<td width="221" align="left" valign="top"><span style="font-size:14px;color:#27A4E2;font-weight:bold">${detailProduct.getString("name")}</span>
<br /><br />
价格:
<span style="color:#FF0000;font-size:13px;font-weight:bold">
<script src="../product/my_price_js.jsp?pid=${pid}"></script>
</span><br />
<br />
<a href="../product/detail-${detailProduct.getString("pid")}.html"><img src="imgs/buy.jpg" width="105" height="30" border="0" /></a></td>
</tr>
<tr>
<td colspan="2" align="left" valign="top" style="color:#666666"><br />
${detailProduct.getString("short_desc")} </td>
</tr>
</table>
<br />
<br />
<div style="width:370px;"><img src="imgs/announce_top.gif" width="370" height="10" /></div>
<div style="width:348px;height:80px;padding:10px;line-height:20px;border-left:1px #eeeeee solid;border-right:1px #eeeeee solid;background:#f8f8f8">
#if($type==0&&${isLogin}==0)
<table width="348" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20" height="72" align="left" valign="middle"> </td>
<td width="101" align="left" valign="middle"><img src="imgs/alert.gif" width="46" height="47" /></td>
<td width="227" style="color:#999999;line-height:20px;">登录后,您也能发表意见<br />
<a href="../member/login.html?backurl=${StringUtil.getCurrentURL()}">注册/登录 >></a> </td>
</tr>
</table>
#elseif($type==0&&${isLogin}==1)
<script>
function check(theForm)
{
if (theForm.title.value=="")
{
alert("请填写标题");
return(false);
}
else if (theForm.content.value=="")
{
alert("请填写提问内容");
return(false);
}
else
{
return(true);
}
}
</script>
<form action="${ConfigBean.getStringValue("systenFolder")}appController/addAskGroupProductEvaluate" method="post" name="form_ask" onSubmit="return check(this)">
<input type="hidden" name="pid" value="${detailProduct.getString("pid")}">
<table width="348" border="0" cellspacing="0" cellpadding="4">
<tr>
<td style="font-size:14px;color:#FF0099">我也要提问······</td>
</tr>
<tr>
<td width="348">
标题<br />
<input type="text" name="title" style="width:300px;"/> </td>
</tr>
<tr>
<td>提问内容<br />
<textarea name="content" style="width:300px;height:100px;"></textarea> </td>
</tr>
<tr>
<td>
<input type="submit" name="Submit" value="发表" style="border-top:1px #CCCCCC solid;border-left:1px #CCCCCC solid;border-left:1px #999999 solid;border-bottom:1px #999999 solid;background:#eeeeee;width:80px;height:25px;"/> </td>
</tr>
</table>
</form>
#else
<table width="348" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20" height="72" align="left" valign="middle"> </td>
<td width="80" align="left" valign="middle"><img src="imgs/fx.gif" width="37" height="36" /></td>
<td width="248" style="color:#999999;line-height:20px;"><a href="../member/my_product.html">如果您购买了这个商品,您也能与大家<br />
分享下使用感受!
</a></td>
</tr>
</table>
#end
</div>
<div style="width:370px;"><img src="imgs/announce_bottom.gif" width="370" height="10" /></div>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br />
${foot}
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -