<?php include mayi_tpl('inc_header'); ?><link rel=stylesheet href=template/css/new.exchange.css><script language=javascript src=template/javascript.js></script><body class=blue><div class=container><div id=main class="main section-setting"><div class="clearfix main-inner"><div class=content><div class="clearfix content-inner"><div class=location><?=$location?></div><div class=content-main><div class=content-main-inner><div class=pwrap><div class=pbody>
<div class="cleafix pagetab-wrap">
<ul class=pagetab>
<li><a href=javascript:; onclick='window.location.href="?m=comment"' <?php if($m == 'comment'){?> class=current <?php }?>><span>店铺点评</span></a></li>
</ul></div>
<div class="cleafix pagetab-wrap smallnav"><ul class=pagetab><?php foreach(array('all'=>'所有评价','good'=>'好评','middle'=>'中评','bad'=>'差评') as $key => $val){?><li><a href="?m=comment&c=<?=$key?>" <?php if($c == $key){?> class=current <?php }?>><span><?=$val?></span></a></li><?php }?></ul></div><div id=msg_success></div><div id=msg_error></div><div id=msg_alert></div><?php if($c=='all'){?><div class=exchange-ranking><table class=ranking-stats><thead><tr><th>&nbsp;</th><th>最近1周</th><th>最近1个月</th><th>最近3个月</th><th>3个月前</th><th>总计</th></tr></thead><tbody><tr><th><img alt="" src=template/images/ping01.gif><span style=color:#c00>好评</span></th><td><a href="?m=comment&c=good&t=lastweek"><?=$count['good']['lastweek']?></a></td><td><a href="?m=comment&c=good&t=lastmonth"><?=$count['good']['lastmonth']?></a></td><td><a href="?m=comment&c=good&t=last3month"><?=$count['good']['last3month']?></a></td><td><a href="?m=comment&c=good&t=last3month"><?=$count['good']['ago3month']?></a></td><td><?=$count['good']['wms']?></td></tr><tr><th><img alt="" src=template/images/ping02.gif><span style=color:#070>中评</span></th><td><a href="?m=comment&c=middle&t=lastweek"><?=$count['middle']['lastweek']?></a></td><td><a href="?m=comment&c=middle&t=lastmonth"><?=$count['middle']['lastmonth']?></a></td><td><a href="?m=comment&c=middle&t=last3month"><?=$count['middle']['last3month']?></a></td><td><a href="?m=comment&c=middle&t=last3month"><?=$count['middle']['ago3month']?></a></td><td><?=$count['middle']['wms']?></td></tr><tr><th><img alt="" src=template/images/ping03.gif><span style=color:#000>差评</span></th><td><a href="?m=comment&c=bad&t=lastweek"><?=$count['bad']['lastweek']?></a></td><td><a href="?m=comment&c=bad&t=lastmonth"><?=$count['bad']['lastmonth']?></a></td><td><a href="?m=comment&c=bad&t=last3month"><?=$count['bad']['last3month']?></a></td><td><a href="?m=comment&c=bad&t=last3month"><?=$count['bad']['ago3month']?></a></td><td><?=$count['bad']['wms']?></td></tr><tr><th>总计</th><td><a href="?m=comment&t=lastweek"><?=$count['good']['lastweek'] + $count['middle']['lastweek'] + $count['bad']['lastweek']?></a></td><td><a href="?m=comment&t=lastmonth"><?=$count['good']['lastmonth'] + $count['middle']['lastmonth'] + $count['bad']['lastmonth']?></a></td><td><a href="?m=comment&t=last3month"><?=$count['good']['last3month'] + $count['middle']['last3month'] + $count['bad']['last3month']?></a></td><td><a href="?m=comment&t=last3month"><?=$count['good']['ago3month'] + $count['middle']['ago3month'] + $count['bad']['ago3month']?></a></td><td><?=$count['good']['wms'] + $count['middle']['wms'] + $count['bad']['wms']?></td></tr></tbody></table></div><?php }?><div class=clear10></div><form method=post action="?m=<?=$m?>&t=<?=$t?>&c=<?=$c?>&page=<?=$page?>"><div class=datatablewrap><table class=datatable><thead><tr><td><input class=checkall name=checkall type=checkbox id=checkall onclick=CheckAll(this.form)></td><td>点评内容</td><td>点评人</td><td>点评时间</td><td>状态</td><td>回复</td><td></td></tr></thead><tbody><?php if($rows_num == 0 ){?><tr><td colspan=5><div class=nodata>暂无评价</div></td></tr><?php } else {$i = 1;foreach($comment as $comment){?><tr <?php if($i%2 == 0) echo 'class="row-even"'?>><td><input class=checkbox type=checkbox name=selectedids[] value="<?=$comment[id]?>" id="<?=$comment[id]?>'"></td><td><?=$comment['content']?></td><td><?=$comment['fromuser']?></td><td><?=GetTime($comment['pubtime'])?></td><td><?php if (empty($comment['commentlevel'])) echo '<font color=red>待审</font>'; else echo '<font color=green>正常</font>'?></td><td><?php if (empty($comment[reply])) echo '<font color=red>未回复</font>'; else echo '<font color=green>已回复</font>'?></td><td><a href="?m=comment&id=<?=$comment[id]?>">回复</a></td></tr><?php $i ++;}unset($i);}?></tbody></table><div class="clearfix datacontrol"><div class=dataaction><span class=minbtn-wrap><span class=btn><input type=submit value=删除 class=button name=comment_submit onclick='if(!confirm("您确定要删除这些网友点评吗?一旦删除将不可恢复"))return!1'></span></span></div><div class=pagination><?php echo page2(); ?></div></div></div></form></div><div class=pfoot><p><b>-</b></p></div></div></div></div></div></div></div></div><?php include mayi_tpl('inc_foot'); ?></div></body>