<?php 
/**
 * ============================================================================
 * 版权所有 福建荣升信息技术有限公司，保留所有权利。
 * 网站地址: http://www.fjrsweb.cn；
 * ----------------------------------------------------------------------------
 * 这不是一个自由软件！您只能在不用于商业目的的前提下对程序代码进行修改和使用；
 * 不允许对程序代码以任何形式任何目的的再发布。
 * ============================================================================
*/

if(!defined('ADMIN')){
	exit('Access Denied');
}

include(ADMINTPL.'/header.tpl.php');
?>
<form action="" method="get">
<table cellspacing="0" width="100%" style="border:1px  solid #DCEAF7; border-bottom:0px; background:#E9F2FB">
        <tr>
              <td>&nbsp;<img src="images/arrow.gif" width="16" height="22" align="absmiddle" />&nbsp;<?php if($webset['taoapi']['auto_fanli']==1){?><a class="link3" href="<?=u('buy_log','list')?>">[淘宝浏览记录]</a><?php }?>&nbsp;<?php if($reycle==1){?><a href="<?=u(MOD,ACT)?>" class="link3">[返回列表]</a><?php }else{?><a href="<?=u(MOD,ACT,array('reycle'=>1))?>" class="link3">[回收站]</a><?php }?></td>
              <td align="right"><?=select($select3_arr,$se3,'se3')?>&nbsp;<?=select($user_level_type,$t,'t')?>&nbsp;<?=select($select1_arr,$se1,'se1')?>：<input type="text" name="q" value="<?=$q?>" />&nbsp;<?=select($select2_arr,$se2,'se2')?>：<input type="text" style="width:30px" name="linput" value="<?=$linput?>" />-<input type="text" style="width:30px" name="hinput" value="<?=$hinput?>" />&nbsp;<input type="submit" value="搜索" />&nbsp;共有 <b><?php echo $total;?></b> 条记录&nbsp;&nbsp;</td>
            </tr>
      </table>
      <input type="hidden" name="mod" value="<?=MOD?>" />
      <input type="hidden" name="act" value="<?=ACT?>" />
      </form>
      <form name="form2" method="get" action="" style="margin:0px; padding:0px">
      <table id="listtable" border=1 cellpadding=0 cellspacing=0 bordercolor="#dddddd">
                    <tr>
                      <th width="40"><input type="checkbox" onClick="checkAll(this,'ids[]')" /></th>
                      <th width="60">id</th>
                      <th width="40">来源</th>
                      <th width="150">用户名</th>
                      <th width="60">推荐人</th>
                      <th width="150">邮箱</th>
                      <th width="70">QQ</th>
                      <th width="70">注册时间</th>
                      <th width="70"><a href="<?=u(MOD,'list',array('lastlogintime'=>$listorder))?>">最近登录</a></th>
                      <th width="60"><a href="<?=u(MOD,'list',array('loginnum'=>$listorder))?>">登录次数</a></th>
                      <th width="60"><a href="<?=u(MOD,'list',array('type'=>$listorder))?>">帐号类型</a></th>
                      <th width="60"><a href="<?=u(MOD,'list',array('level'=>$listorder))?>">等级</a></th>
                      <th width="50"><a href="<?=u(MOD,'list',array('money'=>$listorder))?>">金额</a></th>
                      <th width="50"><a href="<?=u(MOD,'list',array('jifenbao'=>$listorder))?>"><?=TBMONEY?></a></th>                     
                      <th width="50"><a href="<?=u(MOD,'list',array('jifen'=>$listorder))?>">积分</a></th>
                      <th width="">操作</th>
                    </tr>
					<?php foreach ($row as $r){?>
					  <tr>
                        <td><input type='checkbox' name='ids[]' value='<?=$r["id"]?>' id='content_<?=$r["id"]?>' /></td>
                        <td><?=$r["id"]?></td>
                        <td title="注册来源"><?=$select3_arr[$r['platform']]?></td>
                        <td><?=$r["ddusername"]?></td>
						<td><?=$r["tjr"]?></td>
                        <td><?=$r["email"]?></td>
                        <td><?=qq($r["qq"])?></td>
                        <td title="<?=$r["regtime"]?>"><?=date('Y-m-d',strtotime($r["regtime"]))?></td>
                        <td title="<?=$r["lastlogintime"]?>"><?=date('Y-m-d',strtotime($r["lastlogintime"]))?></td>
                        <td><?=$r["loginnum"]?></td>
                        <td><?=$user_level_type[$r["type"]]?></td>
                        <td><?=$r["level"]?></td>
                        <td><?=(float)$r["money"]?></td>
                        <td><?=jfb_data_type($r["jifenbao"])?></td>
                        <td><?=$r["jifen"]?></td>
						<td><a href="<?=u(MOD,'addedi',array('id'=>$r['id']))?>">查看</a>&nbsp;<a href="<?=u('mingxi','list',array('uname'=>$r['ddusername']))?>">明细</a>&nbsp;<a href="<?=u(MOD,'award',array('id'=>$r['id']))?>">奖励</a></td>
                        <td></td>
					  </tr>
					<?php }?>
		</table>
        <div style="position:relative; padding-bottom:10px">
            <input type="hidden" name="mod" value="<?=MOD?>" /><input type="hidden" name="act" id="act" value="del" /><input type="hidden" id="msg" name="msg" value="" />
            <?php if($reycle==1){?>
            <input type="hidden" id="do_input" name="do" value="del" />
            <div style="position:absolute; left:5px; top:5px"><input type="submit" value="删除" class="myself" onclick='return confirm("确定要删除?")'/> &nbsp;<input type="submit" value="还原" class="myself" onclick='$("#do_input").val("reset");return confirm("确定要还原?")'/></div>
            <?php }else{?>
            <div style="position:absolute; left:5px; top:10px"><input type="submit" value="删除" onclick='return confirm("确认要删除转移到回收站?")'/><input id="pltz" type="submit" value="批量发送站内信" onclick='$("#msg").val("1");$("#act").val("list");return confirm("确定要批量发送站内信?")'/></div>
            <?php }?>
            <div class="megas512" style=" margin-top:15px;"><?=pageft($total,$pagesize,u(MOD,'list',$page_arr));?></div>
            </div>
       </form>
<?php include(ADMINTPL.'/footer.tpl.php');?>