<?php include_once(mvc::$cfg['PATH_TPL'].'public/headBase.php');?>
<div class="marauto mar10" style="padding-left: 65px;">
    <div class="searchParam">
        <form method="get" action="" id="" >
        <b>用户名：</b><input type="text" class="form-control" name="username" value="<?php echo $_GET['username'];?>" placeholder="请输入">&nbsp;&nbsp;&nbsp;&nbsp;
        <button type="submit" class="btn btn-primary"> 搜索 </button>&nbsp;&nbsp;&nbsp;&nbsp;
        </form>
    </div>
    <table class="table table-bordered table-hover" style="margin-bottom: 20px;cursor: pointer;">
        <thead>
            <tr>
                <th width="50">操作</th>
                <th width="50">用户名</th>
                <th width="50">昵称</th>
                <th width="50">真实名称</th>
                <th width="50">邮箱</th>
                <th width="50">电话</th>
                <th width="50">单位</th>
                <th width="50">性别</th>
                <th width="50">地址</th>
            </tr>
        </thead>
        <tbody>
            <?php if(empty($data)){ ?>
            <tr>
                <td colspan="9"><div class="shoplist-error-msg">无相关用户信息！</div></td>
            </tr>
            <?php }else{ ?>
            <?php foreach($data as $v){ ?>
            <tr>
                <td><a class="a_blue" href="<?php echo mvc::$cfg['ADMIN_URI'];?>shop/prepare?userid=<?php echo $v['u_id'];?>">开通店铺</a></td>
                <td><?php echo $v['u_name'];?></td>
                <td><?php echo $v['u_nickname'];?></td>
                <td><?php echo $v['u_real_name'];?></td>
                <td><?php echo $v['u_email'];?></td>
                <td><?php echo $v['u_mobile'];?></td>
                <td><?php echo $v['ui_company'];?></td>
                <td><?php echo $uiSex[$v['ui_sex']];?></td>
                <td><?php echo $v['ui_province'].$v['city'].$v['ui_address'];?></td>
            </tr>
            <?php } ?>
            <?php } ?>
        </tbody>
    </table>
</div>
<div id="mask_layer" style="display: none;"></div>
<?php include_once(mvc::$cfg['PATH_TPL'].'public/footBase.php');?>
