<?php (!defined('IN_ADMIN') || !defined('IN_MUDDER')) && exit('Access Denied'); ?>
<div id="body">
<? if($total['count'] > 0) {?>
<div class="space">
<form method="post" action="admincp.php?action=<?=$action?>&file=<?=$file?>&">
    <div class="space">
        <div class="subtitle">符合要求的点评数: <?=$total['count']?></div>
        <table class="maintable" border="0" cellspacing="0" cellpadding="0">
            <tr class="altbg1">
                <td width="20">[<a href="javascript:;" onclick="checkbox_checked('reviewid[]');">选</a>]</td>
                <td width="135">商铺名</td>
                <td width="*">内容</td>
                <td width="70">点评会员</td>
                <td width="30">鲜花</td>
                <td width="30">回应</td>
                <td width="80">IP</td>
                <td width="50">状态</td>
                <td width="50">编辑</td>
            </tr>
            <? if($reviews) { foreach($reviews as $review) { ?>
            <tr>
                <td><input type="checkbox" name="reviewid[]" value="<?=$review['rid']?>" /></td>
                <td><a href="<?=$MOD['url']?>shop.php?shopid=<?=$review['shopid']?>" target="_blank"><?=$review['shopname'].$review['subname']?></a></td>
                <td><a href="<?=$MOD['url']?>viewreview.php?reviewid=<?=$review['rid']?>" target="_blank"><?=$review['content']?></a></td>
                <td><a href="<?=$_modules['space']['url'].'index.php?suid='.$review['uid']?>" target="_blank"><?=$review['username']?></a></td>
                <td><?=$review['flower']?></td>
                <td><?=$review['respond']?></td>
                <td><?=$review['ip']?></td>
                <td><?=$review['statusname']?></td>
                <td><a href="<?="admincp.php?action=$action&file=editreview&reviewid={$review['rid']}"?>">编辑</a></td>
            </tr>
            <?}}?>
            <tr class="altbg1">
                <td colspan="9">
                    <input type="radio" name="operation[delete]" value="10" />删除
                    <input type="checkbox" name="operation[subpoint]" value="1" checked="checked" />删点评不减用户积分&nbsp;
                </td>
            </tr>
        </table>
        <?if($multipage){?><div class="multipage"><?=$multipage?></div><?}?>
        <center><input type="submit" name="dosubmit" value=" 提交 " class="btn" /></center>
    </div>
</form>
</div>
<? } ?>
<div class="space">
<form method="get" action="admincp.php">
    <input type="hidden" name="action" value="<?=$action?>" />
    <input type="hidden" name="file" value="<?=$file?>" />
    <div class="space">
        <div class="subtitle">搜索符合条件的点评</div>
        <table class="maintable" border="0" cellspacing="0" cellpadding="0">
            <tr>
                <td class="altbg1" width="45%">板块</td>
                <td><select name="search[classcode]" size="6" style="width:300px">
                    <? foreach($_classcode_option as $key=>$val) { ?>
                        <option value="<?=$key?>" style="color:#CC0000;">===<?=$_classcodes[$key]['classname']?>===</option>
                        <?=$val?>
                    <? } ?>
                </select></td>
            </tr>
            <tr>
                <td class="altbg1">地区</td>
                <td><select name="search[areacode]" style="width:300px">
                    <option value="">===选择地区===</option>
                    <?=$_areacode_option[$city]?>
                </select></td>
            </tr>
            <tr>
                <td class="altbg1">作者</td>
                <td><input type="text" name="search[author]" class="txtbox" value="" /></td>
            </tr>
            <tr>
                <td class="altbg1">关键字</td>
                <td><input type="text" name="search[keyword]" class="txtbox" value="" /></td>
            </tr>
        </table>
        <center><input type="submit" value=" 搜索 " class="btn" /></center>
    </div>
</form>
</div>
</div>