<!-- #include file="../../themes/admin/~css.php" -->
<form id="form" action="<?=url(RPGM.'user/')?>" method="get">
<input type="hidden" value="<?=MOD?>" name="mod"/>
<input type="hidden" value="user" name="action"/>
<input type="hidden" value="<?=GID?>" name="gid"/>
<h3 class="title">搜索</h3>

<div class="in">
<div class="fieldwrapper">
	<label for="" class="styled">注册日期</label>
	<div class="thefield">
    <input name="s" id="datepicker1"   value="<?=$arg_2?>" />
    <span style="float:left">至:</span>
    <input name="e" id="datepicker2"   value="<?=$arg_3?>"/>
    </div>
</div>
<div class="fieldwrapper">
	<label for="" class="styled">包含字</label>
	<div class="thefield">
    <input name="skey"  value="<?=$arg_4?>" />
    </div>
</div>
<div class="fieldwrapper">
	<label for="" class="styled">身份</label>
	<div class="thefield">
    <select name="teamid">
    <option value="" >
      </option>
<?php foreach($conf['sys_teams'] as $k=>$v){?>
                          <option value="<?=$k?>"  <?=$arg_6===$k?'selected="selected"':''?>>
                          <?=htmlspecialchars($v['name'])?>
                          </option>
      <?php }?>                   
    </select>
    </div>
</div>
<div align="center" >
	<input value="提交" type="submit" class="button"> 
    <input value="重置" type="reset" class="button">
</div>

</div>
</form>
<br>
<form action="<?=url(RPGM.'userdel/?ajax')?>" method="post" id="form2" onSubmit="return yun_submit(this.id,'要删除用户吗?')">

<h3 class="title"><span>用户列表</span><a class="add win" href="<?=url(RPGM.'usernew/?win')?>" >添加新用户</a><br /></h3>
<div class="in">
  <table width="100%">
    <thead>
      <tr>
        <th width="24"></th>
        <th width="24">ID</th>
        <th>名称</th>
        <th>邮箱</th>
        <th width="110">注册时间</th>
        <th width="110">身份</th>
        <th width="80">应用</th>
      </tr>
    </thead>
    <tbody>
      <?php foreach($arg_0 as $id=>$v){?>
      <tr id="us_<?=$id?>">
        <td class="a-center"><input name="ids[]" type="checkbox" value="<?=$id?>" /></td>
        <td class="a-center"><?=$id?></td>
        <td>
          <a href="<?=url(RPGM.'usershow/?win&id='.$id.'&ddd')?>" class="win"><?=$v['name']?></a></td>
        <td><?=$v['email']?></td>
        <td><?=$v['reg_time']?></td>
        <td><?=$v['team']?></td>
        <td>
        <a href="<?=url(RPGM.'usershow/?win&id='.$id)?>" class="win"><img height="16" width="16" src="<?=THEMEPATH?>images/icons/page_white_link.png" title="详细"/></a><a href="<?=url(RPGM.'useredit/?win&id='.$id)?>" class="win"><img height="16" width="16" src="<?=THEMEPATH?>images/icons/page_white_edit.png" title="编辑"/></a><a href="javascript:void(0)" onClick="yun_send('<?=url(RPGM.'userdel/?ajax&id='.$id)?>','要删除该用户吗?');return false;
"><img height="16" width="16" src="<?=THEMEPATH?>images/icons/page_white_delete.png" title="删除"/></a>
</td>
      </tr>
      <?php }?>
    </tbody>
  </table>
  <div align="center" >
      <input type="submit" value="删除所选" class="button"/>
      <input type="checkbox" onClick="CheckAll(this.form)" name="chkall"/>
  全选</div>
  
  </div>
</form>
<?=$arg_1?>
<script type="text/javascript">
     
 </script>
