<?php (!defined('IN_ADMIN') || !defined('IN_MUDDER')) && exit('Access Denied'); ?>
<div id="body">
<form method="post" action="admincp.php?action=<?=$action?>&file=<?=$file?>&">
    <div class="space">
        <div class="subtitle">礼品兑换处理</div>
        <table class="maintable" border="0" cellspacing="0" cellpadding="0">
			<tr class="altbg2">
                <th colspan="8">
                    <ul class="subtab">
                        <?foreach($arr_status as $key => $val) { ?>
                        <li<?=$status==$key?' class="current"':''?>><a href="admincp.php?action=<?=$action?>&file=<?=$file?>&status=<?=$key?>"><?=$val?></a></li>
                        <?}?>
                    </ul>
                </th>
            </tr>
            <tr class="altbg1">
                <td>兑换会员</td>
                <td>礼品名称</td>
                <td>兑换数量</td>
                <td>兑换总价</td>
                <td>兑换时间</td>
                <td>当前状态</td>
                <td>处理者</td>
                <td>处理</td>
            </tr>
            <? if($gifts) foreach($gifts as $gift) { ?>
            <tr>
                <td><a href="<?=$_modules['space']['url']?>index.php?suid=<?=$gift['uid']?>"><?=$gift['username']?></a></td>
                <td><?=$gift['giftname']?></td>
                <td><?=$gift['number']?></td>
                <td><?=$gift['totalprice']?></td>
                <td><?=$gift['exchangetime']?></td>
                <td><?=$gift['status_name']?></td>
                <td><?=$gift['checker']?></td>
                <td><a href="admincp.php?action=<?=$action?>&file=disposal&exchangeid=<?=$gift['exchangeid']?>">处理</a></td>
            </tr>
            <? } ?>
        </table>
    </div>
</form>
</div>