<!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=gb2312">
<title>用户评论：<?php echo $arctitle?></title>
<link href="img/base.css" rel="stylesheet" type="text/css">
<script language="javascript" type="text/javascript">
function doit(){
	parent.document.getElementById("gbook").innerHTML=document.getElementById("gbooks").innerHTML;
}
</script>
</head>
<body onload="doit()">
<div id="gbooks"> 
<?php 
$mylist = $dlist->GetDataList();
while($row = $mylist->GetArray('dm'))
{
$count++;
?>
<li>
<p class="poster">
<span class="cDRed"><?php echo $count+5*$dlist->Getnum();?>楼</span>&nbsp;
<a href="<?php echo $cfg_plus_dir?>/feedback.php?fid=<?php echo $row['ID']?>&action=good&arcID=<?php echo $arcID?>" target="igbook">支持</a>(<span class="cDRed"><?php echo $row['good']?></span>)&nbsp;<a href="<?php echo $cfg_plus_dir?>/feedback.php?fid=<?php echo $row['ID']?>&action=bad&arcID=<?php echo $arcID?>" target="igbook">反对</a>(<span class="cDRed"><?php echo $row['bad']?></span>)&nbsp;&nbsp;<a href="#"><?php echo $row['username']?></a>&nbsp;@&nbsp;
<?php echo strftime("%y-%m-%d %H:%M:%S",$row['dtime'])?>&nbsp;
<?php echo  ereg_replace("[^\.]{1,3}$","*",$row['ip']);?>&nbsp;说：</p>
<p class='post'><?php echo $row['msg']?></p>
</li>
<?php 
}
?>
<div class="f_right"><?php echo $dlist->GetPageList(5);?></div>
<div id="form">
          <form action="<?php echo $cfg_plus_dir?>/feedback.php" method="post" target="igbook" 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"><br />
<?php echo $msgs?><br /><?php echo $username?><br /><b>评论:</b>请自觉遵守互联网相关政策法规,评论不得超过250字.<br />
<textarea name="msg" id="msg" cols="50" rows="8" wrap="VIRTUAL"></textarea><br />

验证码： <input name="validate" type="text" id="validate" size="6" class="nb" maxlength="4">
<a href="<?php echo $cfg_plus_dir?>/feedback.php?arcID=<?php echo $arcID?>" target="igbook"><img src='<?php echo $cfg_weburl?>/include/vdimgck.php' width='50' height='20'></a> 看不清请点击图片
<input type='button' value='发表评论' name='sb' onClick='javascript:if(document.feedback.msg.value!="") document.feedback.submit(); else alert("评论内容不能为空！");' style='width:60;height:20'>
</form>
</div>
</div>
</body>
</html>
