<?php (!defined('IN_ADMIN') || !defined('IN_MUDDER')) && exit('Access Denied'); ?>
<div id="body">
<form method="post" action="admincp.php?action=<?=$action?>&file=<?=$file?>&op=process&">
    <input type="hidden" name="applyid" value="<?=$applyid?>" />
    <div class="space">
        <div class="subtitle">商铺认领处理</div>
        <table class="maintable" border="0" cellspacing="0" cellpadding="0">
            <tr>
                <td class="altbg1" width="100">认领商铺：</td>
                <td width="*"><a href="<?=$MOD['url']?>shop.php?shopid=<?=$apply['shopid']?>" target="_blabk"><?=$apply['fullname']?></a></td>
            </tr>
            <tr>
                <td class="altbg1">认领会员：</td>
                <td><a href="<?=$_modules['space']['url']?>index.php?suid=<?=$apply['uid']?>" target="_blabk"><?=$apply['username']?></a></td>
            </tr>
            <tr>
                <td class="altbg1">联系人：</td>
                <td><?=$apply['applyname']?></td>
            </tr>
            <tr>
                <td class="altbg1">联系方式：</td>
                <td><?=$apply['contact']?></td>
            </tr>
            <tr>
                <td class="altbg1">营业执照：</td>
                <td><a href="<?=$_config['siteurl']?>uploads<?=$apply['pic']?>" target="_blabk">点击查看</a></td>
            </tr>
            <tr>
                <td class="altbg1" valign="top">认领说明：</td>
                <td><?=$apply['content']?></td>
            </tr>
            <tr>
                <td class="altbg1">申请时间：</td>
                <td><?=date('Y-m-d H:i:s',$apply['dateline'])?></td>
            </tr>
            <tr>
                <td class="altbg1">处理结果：</td>
                <td>
                    <input type="radio" id="p_g" name="status" value="1" onclick="myreturned(this);" checked /><label for="p_g">申请通过</label>
                    <input type="radio" id="p_r" name="status" value="3" onclick="myreturned(this);" /><label for="p_r">不通过</label>
                </td>
            </tr>
            <tr style="display:none;" id="status_returned">
                <td class="altbg1" valign="top">未通过理由：</td>
                <td><textarea name="returned" rows="5" cols="60"></textarea>
                </td>
            </tr>
        </table>
        <center>
            <button type="submit" name="dosubmit" value="yes" class="btn" />提交操作</button>&nbsp;
            <button type="button" onclick="history.go(-1);" class="btn" />返回</button>&nbsp;
        </center>
    </div>
</form>
</div>
<script type="text/javascript">
function myreturned(obj) {
    if(obj.value==3) {
        $("#status_returned").css("display","");
    } else {
        $("#status_returned").css("display","none");
    }
}
</script>