<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>用户评论：<?php echo $arctitle?></title>
<link href="img/base.css" rel="stylesheet" type="text/css">
<link href="../img/base.css" rel="stylesheet" type="text/css">
</head>
<body>
<table width="860" border="0" align="center">
  <tr> 
<td><img src="img/feedback.gif" width="320" height="46"></td>
</tr>
<tr> 
    <td bgcolor="#CCCC66" height="6"></td>
</tr>
<tr>
    <td height="26" bgcolor="#F3FAE7"> <strong>&nbsp;评论： <a href='<?php echo $arcurl?>' style='font-size:11pt'> 
      <?php echo $arctitle?>
      </a> </strong></td>
</tr>
</table>

<table width="860" border="0" align="center" cellpadding="0" cellspacing="2">
  <tr> 
    <td width="660"><table width="100%" border="0" align="center" cellspacing="0">
        <tr> 
          <td> 
            <table width="100%" border="0" cellpadding="1" cellspacing="1" style="border:1px solid #cdcdcd;margin-bottom:6px">
              <tr>
                <td width="18%" height="28" align="center" bgcolor="#FBFEF5">用户评分：</td>
                <td width="82%" bgcolor="#FBFEF5">
				<?php 
				if(empty($agvrank)) $agvrank = 0.1;
				$cowidth = ceil(($agvrank/5)*100);
				$agvrank = number_format($agvrank,2);
				?>
				<table width="100%" border="0" cellspacing="1" cellpadding="1">
                  <tr height="18px">
                    <td width="70%" style="border:1px solid #ddeadd">
					<div style="width:<?php echo $cowidth?>%;height:18px;background-color:#B1E891">&nbsp;</div>
					</td>
					<td align="center"><?php echo $agvrank?> 分，最大 5 分</td>
                  </tr>
                </table>
				</td>
              </tr>
            </table>
            <?php 
$mylist = $dlist->GetDataList();
while($row = $mylist->GetArray('dm'))
{
?>
            <table width="100%" border="0" cellspacing="0" cellpadding="3" style="border:1px solid #cdcdcd;margin-bottom:6px">
              <tr bgcolor="#f3f3f3"> 
                <td width="7%" height="24" align="center" bgcolor="#FAFCEB"><img src="img/fbico.gif" width="16" height="15"></td>
                <td width="22%" bgcolor="#FAFCEB">用户： 
                  <?php echo $row['username']?>                </td>
                <td width="27%" bgcolor="#FAFCEB"> 时间： 
                  <?php echo strftime("%y-%m-%d %H:%M:%S",$row['dtime'])?>                </td>
                <td width="22%" bgcolor="#FAFCEB">IP地址： 
                  <?php echo  ereg_replace("[^\.]{1,3}$","*",$row['ip']);?>                </td>
                <td width="23%" bgcolor="#FAFCEB">
                	<a href="feedback.php?fid=<?php echo $row['ID']?>&action=good&arcID=<?php echo $arcID?>"><img src="img/good.gif" border="0"></a>鲜花(<?php echo $row['good']?>)
                	<a href="feedback.php?fid=<?php echo $row['ID']?>&action=bad&arcID=<?php echo $arcID?>"><img src="img/bad.gif" border="0"></a>鸡蛋(<?php echo $row['bad']?>)</td>
              </tr>
              <tr> 
                <td colspan="5"> 
                  <?php echo $row['msg']?> 
                </td>
              </tr>
            </table>
            <?php 
}
?>
          </td>
        </tr>
        <tr> 
          <td height="23" align="center" bgcolor="#F3FAE7" style="border:1px solid #cdcdcd"> 
            <?php echo $dlist->GetPageList(7);?>          </td>
        </tr>
    </table>
	<table width="100%" border="0" cellpadding="1" cellspacing="1" bgcolor="#DDEEBD" style="margin-top:6px">
              <form action="feedback.php" method="post" name="feedback">
                <input type="hidden" name="action" value="send">
                <input type="hidden" name="arcID" value="<?php echo $arcID?>">
				<input type="hidden" name="isconfirm" value="yes">
                <tr>
                  <td height="24" bgcolor="#F3FAE7">　<strong>§发表新评论：</strong></td>
                </tr>
                <tr> 
                  <td bgcolor="#FFFFFF">　用户名： 
                    <input name="username" type="text" id="username" size="10" class="nb">
                    （<a href="../member/index_do.php?fmdo=user&dopost=regnew" target="_blank"><u>新注册</u></a>） 
                    密码： 
                    <input name="pwd" type="text" id="pwd" size="10"class="nb"> 
                    <input name="notuser" type="checkbox" id="notuser" value="1">
                    匿名评论 
                    <input type='button' value='发表评论' name='sb' onClick='javascript:if(document.feedback.msg.value!="") document.feedback.submit(); else alert("评论内容不能为空！");' style='width:60;height:20'></td>
                </tr>
                <tr>
                  <td bgcolor="#FFFFFF">　评　分：
                    <input type="radio" name="rank" value="1">
1
<input type="radio" name="rank" value="2">
2
<input name="rank" type="radio" value="3">
3
<input type="radio" name="rank" value="4">
4
<input type="radio" name="rank" value="5">
5</td>
                </tr>
                <tr>
                  <td bgcolor="#FFFFFF"><table width="300" border="0" cellspacing="1" cellpadding="1">
                    <tr>
                      <td width="71">　验证码： </td>
                      <td width="81"><input name="validate" type="text" id="validate" size="10" class="nb"></td>
                      <td><img src='../include/vdimgck.php' width='50' height='20'></td>
                    </tr>
                  </table></td>
                </tr>
                <tr> 
                  <td bgcolor="#FFFFFF">　评论内容：(不能超过500字，请自觉遵守互联网相关政策法规)</td>
                </tr>
                <tr> 
                  <td height="70" align="center" bgcolor="#FFFFFF"><textarea name="msg" rows="4" id="msg" style="width:96%"></textarea></td>
                </tr>
              </form>
            </table>
	</td>    
    <td width="200" align="right" valign="top"> 
      <table width="97%" border="0" cellpadding="3" cellspacing="1" bgcolor="#DAE4D3">
        <tr> 
          <td height="21" align="center" bgcolor="#ECF8C9">↑最近热门评论↓</td>
</tr>
<tr> 
          <td height="146" valign="top" bgcolor="#FFFFFF">
            <?php echo $feedback_hot?>
          </td>
</tr>
</table>
    </td>
</tr>
</table>
<table width="860" border="0" align="center" cellpadding="0" cellspacing="2">
  <tr>
<td height="28" align="center">
<hr size="1"></td>
</tr>
<tr> 
<td height="40" align="center"><?php echo $cfg_powerby?></td>
</tr>
</table>
</body>
</html>
