<?php (!defined('IN_ADMIN') || !defined('IN_MUDDER')) && exit('Access Denied'); ?>
<div id="body">
<? if($total['count'] > 0){?>
<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="5%">[<a href="javascript:;" onclick="allchecked();">选</a>]</td>
                <td width="12%">名称</td>
                <td width="15%">图片</td>
                <td width="16%">尺寸/大小</td>
                <td width="12%">所属商铺</td>
                <td width="13%">上传用户</td>
                <td width="12%">上传时间</td>
                <td width="10%">查看次数</td>
            </tr>
            <? if($pictures) { foreach($pictures as $picture) { ?>
            <tr>
                <td><input type="checkbox" name="pictureid[]" value="<?=$picture['pid']?>" /></td>
                <td><?=$picture['title']?></td>
                <td>[<a href="<?="{$_config[siteurl]}uploads/pictures/{$picture['folder']}/{$picture['filename']}"?>" target="_blank">下载</a>]<br /><?=$picture['filename']?></td>
                <td><?=$picture['width'].'×'.$picture['height']?><br /><?=$picture['size']?> bytes</td>
                <td><a href="<?="{$MOD[url]}shop_pic.php?shopid={$picture['shopid']}"?>" target="_blank"><?=$picture['shopname'].$picture['subname']?></a></td>
                <td><a href="<?="{$_modules['space']['url']}index.php?suid={$picture['uid']}"?>" target="_blank"><?=$picture['username']?></a></td>
                <td><?=$picture['addtime']?></td>
                <td><?=$picture['browse']?></td>
            </tr>
            <?}}?>
            <tr class="altbg1"><td colspan="2"><input type="radio" name="operation[delete]" value="1" />删除</td><td colspan="7"><input type="checkbox" name="operation[subpoint]" value="1" checked="checked" />删图片不减用户积分</td></tr></tr>
        </table>
        <div class="multipage"><?=$multipage?></div>
        <center><input type="submit" name="dosubmit" value=" 提交 " class="btn" /></center>
        <br />
    </div>
</form>
<? } ?>
<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 width="*"><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>
        <br /><center><input type="submit" value=" 搜索 " class="btn" /></center>
    </div>
</form>
</div>