<?php (!defined('IN_ADMIN') || !defined('IN_MUDDER')) && exit('Access Denied'); ?>
<div id="body">
<form method="get" action="admincp.php">
    <input type="hidden" name="action" value="<?=$action?>" />
    <input type="hidden" name="file" value="<?=$file?>" />
    <div class="space">
        <table class="maintable" border="0" cellspacing="0" cellpadding="0">
            <tr>
                <td width="10%" class="altbg1">
                    板块: <select name="pcd">
                        <option value="0">==全部==</option>
                        <? foreach($_panels as $key=>$val) { ?>
                            <option value="<?=$key?>"<?if($pcd==$key)echo' selected';?>><?=$val?></option>
                            <?=$val?>
                        <? } ?>
                    </select>
                    状态: <select name="status">
                        <option value="2"<?if($status==2)echo' selected';?>>未处理</option>
                        <option value="1"<?if($status==1)echo' selected';?>>已通过</option>
                        <option value="3"<?if($status==3)echo' selected';?>>未通过</option>
                        </select>
                    <input type="submit" value="搜索" class="btn2" />
                </td>
            </tr>
        </table>
    </div>
</form>
<form method="post" action="admincp.php?action=<?=$action?>&file=<?=$file?>&">
    <input type="hidden" name="status" value="<?=$status?>" />
    <input type="hidden" name="pcd" value="<?=$pcd?>" />
    <div class="space">
        <div class="subtitle">商铺认领处理</div>
        <table class="maintable" border="0" cellspacing="0" cellpadding="0">
            <tr class="altbg1">
                <td width="5%">选</td>
                <td width="*">认领对象</td>
                <td width="15%">用户</td>
                <td width="15%">认领人</td>
                <td width="15%">认领时间</td>
                <td width="8%">状态</td>
                <td width="15%">操作</td>
            </tr>
            <?if($apply) {?>
            <?foreach($apply as $val) {?>
            <tr>
                <td><input type="checkbox" name="applyids[]" value="<?=$val['applyid']?>" /></td>
                <td><a href="<?=$MOD['url']?>shop.php?shopid=<?=$val['shopid']?>" target="_blabk"><?=$val['fullname']?></a></td>
                <td><a href="<?=$_modules['space']['url']?>index.php?suid=<?=$val['uid']?>" target="_blabk"><?=$val['username']?></a></td>
                <td><?=$val['applyname']?></td>
                <td><?=date('Y-m-d H:i',$val['dateline'])?></td>
                <td><?=$val['status']==1?'已通过':($val['status']==2?'<span class="font_1">未处理</span>':($val['status']==3?'未通过':'未知'))?></td>
                <td>
                    <a href="<?=$_config['siteurl']?>uploads<?=$val['pic']?>" target="_blabk">营业执照</a><?if($val['status']==2){?>&nbsp;
                    <a href="admincp.php?action=<?=$action?>&file=<?=$file?>&op=process&applyid=<?=$val['applyid']?>">处理</a><?}?>
                </td>
            </tr>
            <?}?>
            <tr class="altbg1">
                <td colspan="7">
                    <button type="button" class="btn2" onclick="checkbox_checked('applyids[]');">全选</button>&nbsp;&nbsp;
                    <?=$multipage?>
                </td>
            </tr>
            <?} else {?>
            <tr><td colspan="7">暂无信息。</td>
            </tr>
            <?}?>
        </table>
        <center><input type="submit" name="dosubmit" value=" 删除所选 " class="btn" /></center>
    </div>
</form>
</div>