<?php echo $this->fetch('header.html'); ?>
<div class="row">
	<div class="span12">
    <h3><a href="<?php echo $this->_var['appadmin']; ?>?m=admin_user">用户管理</a><small>共<?php echo $this->_var['rscount']; ?>条记录</small></h3>
    <div>
    <form method="get" action="<?php echo $this->_var['appadmin']; ?>" class="form form-inline">
    <input type="hidden" name="m" value="admin_user" />
    userid:<input type="text" name="userid" value="<?php echo intval($_GET['userid']); ?>" style="width:50px" />
    昵称：<input type="text" name="nickname" value="<?php echo $_GET['nickname']; ?>" />
    <input type="submit" value="搜索" class="btn btn-success" />
    </form>
    </div>
    <table class="table table-bordered" width="100%">
    	<tr>
        <td width="11%">ID</td>
        <td width="17%">昵称</td>
        <td width="25%">状态</td>
        <td width="25%">类型</td>
        <td width="47%">操作</td>
        </tr>
       <?php $_from = $this->_var['data']; if (!is_array($_from) && !is_object($_from)) { $_from=array();}; $this->push_vars('', 'c');if (count($_from)):
    foreach ($_from AS $this->_var['c']):
?>
       <tr>
        <td><?php echo $this->_var['c']['userid']; ?></td>
        <td><?php echo $this->_var['c']['nickname']; ?></td>
        <td><?php if ($this->_var['c']['status'] == 1): ?>已通过<?php elseif ($this->_var['c']['status'] == 10): ?>未审核<?php else: ?>已禁止<?php endif; ?></td>
        <td><?php echo $this->_var['user_type_list'][$this->_var['c']['user_type']]; ?></td>
        <td> <a href="<?php echo APPADMIN; ?>?m=admin_user&a=add&userid=<?php echo $this->_var['c']['userid']; ?>">编辑</a> </td>
        </tr>
       <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?> 
    
    </table>
    <?php echo $this->_var['pagelist']; ?>
    </div>
</div>
<?php echo $this->fetch('footer.html'); ?>