<!--<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">-->
<!--<html xmlns="http://www.w3.org/1999/xhtml">-->
    <!--<head>-->
        <!--<title>管理栏目</title>-->
        <!--<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />-->
        <!--<meta name="viewport" content="width=device-width">-->
            <!--<link href="<?php echo $data['rootUrl']; ?>global/v1/m/images/style.css" rel="stylesheet" type="text/css" />-->
            <!--<script type="text/javascript" src="<?php echo $data['rootUrl']; ?>global/v1/js/jquery-1.7.2.min.js"></script>-->
            <!--<script type="text/javascript" src="<?php echo $data['rootUrl']; ?>global/v1/js/over.js"></script>-->
    <!--</head>-->
    <!--<body>-->
        <!--<div class="main_content new_product">-->
            <!--<div class="globle_form">-->
                <!--<form name="cityform" method="post">-->
                    <!--<table cellspacing="0" cellpadding="0" class="tableForm">-->
                        <!--<tr><th width="120">用户名  ：</th><td><input type="text" name="username" class="inputText"></td></tr>-->
                        <!--<tr><th width="120">电子邮箱：</th><td><input type="text" name="useremail" class="inputText"></td></tr>-->
                        <!--<tr><th width="120">密  码  ：</th><td><input type="password" name="password" class="inputText"></td></tr>-->
                        <!--<tr><td><input type="submit" name="citysubmit" value="添加用户"></td></tr>-->
                    <!--</table>-->
                <!--</form>-->
            <!--</div>-->
            <!--<div class="globle_form">-->
                <!--<form name="cityform" method="post">-->
                    <!--<table cellspacing="0" cellpadding="0" class="tableForm">-->
                        <!--<tr><th width="120">用户名或者电子邮箱：</th><td><input type="text" name="ttt" class="inputText"></td></tr>-->
                        <!--<tr><td><input type="submit" name="searchuser" value="查找用户"></td></tr>-->
                    <!--</table>-->
                <!--</form>-->
            <!--</div>-->

            <!--&lt;!&ndash;table列表&ndash;&gt;-->
            <!--<div class="globle_list">-->
                <!--<table cellspacing="0" cellpadding="0" class="tableList">-->
                    <!--<tbody>-->
                        <!--<tr>-->
                            <!--<th class="">用户名</th>-->
                            <!--<th class="">电子邮箱</th>-->
                            <!--<th class="">最近登录IP</th>-->
                            <!--<th class="">最近登录时间</th>-->
                            <!--<th class="">操作</th>-->
                        <!--</tr>-->
                        <!--&lt;!&ndash; loop userArray &ndash;&gt;-->
                        <!--<tr class="">-->
                            <!--<td class=""><?php echo $v1['username']; ?></td>-->
                            <!--<td class=""><?php echo $v1['useremail']; ?></td>-->
                            <!--<td class=""><?php echo zlong2ip($v1['lastloginip']); ?></td>-->
                            <!--<td class=""><?php echo formatDate($v1['lastlogintime'], 'Y-m-d'); ?></td>-->
                            <!--<td class=""><a href="#">修改</a>&nbsp;<a href="#">删除</a></td>-->
                        <!--</tr>-->
                        <!--&lt;!&ndash; endloop &ndash;&gt;-->
                    <!--</tbody>-->
                <!--</table>-->
                <!--<?php echo $data['pager']; ?>-->
            <!--</div>-->
        <!--</div>-->
    <!--</body>-->
<!--</html>-->

<?php include Doo::conf()->SITE_PATH .  Doo::conf()->PROTECTED_FOLDER . "viewc/admin/headAndLeftWrapper.php"; ?>
<div class="mainWrapper container-fluid">
    <div class="page-header pageTop">
        <h3>用户中心</h3>
    </div>
    <div class="shopContent clearfix">
        <!-- <div class="btnGroup">
          <a type="button" class="btn btn-primary" data-toggle="modal" data-target="#myModalAdd">添加用户</a>
        </div> -->
        <div class="search">
            <form name="cityform" method="post">
                <div class="input-group">
                    <input type="text" name="ttt" class="form-control" placeholder="注册手机/注册邮箱/称呼">
          <span class="input-group-btn">
            <button class="btn btn-default" type="submit" name="searchuser" value="搜索用户">点击搜索</button>
          </span>
                </div>
            </form>
        </div>
    </div>
    <div class="tableContent">
        <table class="table table-hover">
            <thead>
            <tr>
                <th width="150">注册手机</th>
                <th width="250">注册邮箱</th>
                <th width="200">称呼（原账号）</th>
                <th>最近登录IP</th>
                <th>最近登录时间</th>
                <?php if( isset($data['search']) ): ?><th width="100">账号余额</th><?php endif; ?>
            </tr>
            </thead>
            <?php foreach($data['userArray'] as $k1=>$v1): ?>
            <tr>
                <td><?php if( !empty($v1['mobile']) ): ?><?php echo $v1['mobile']; ?> <i class="text-success glyphicon glyphicon-ok-circle"></i><?php endif; ?></td>
                <td><?php if( !empty($v1['useremail']) ): ?><?php echo $v1['useremail']; ?> <?php if( empty($v1['status']) ): ?><i class="text-danger glyphicon glyphicon-ban-circle"></i><?php else: ?><i class="text-success glyphicon glyphicon-ok-circle"></i><?php endif; ?><?php endif; ?></td>
                <td><?php echo $v1['username']; ?></td>
                <td><?php echo zlong2ip($v1['lastloginip']); ?></td>
                <td><?php echo formatDate($v1['lastlogintime'], 'Y-m-d'); ?></td>
                <?php if( isset($data['search']) ): ?><td>￥<?php echo $v1['bank']; ?></td><?php endif; ?>
            </tr>
            <?php endforeach; ?>
        </table>
    </div>
    <nav style="margin: 20px 0">
        <?php echo $data['pager']; ?>
    </nav>
</div>
<!-- mainWrapper end -->
</div>

<!-- 添加 -->
<!-- <div class="modal fade" id="myModalAdd" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" id="myModalLabel">用户添加</h4>
      </div>
      <div class="modal-body">
        <form class="form-horizontal">
          <div class="form-group">
            <label for="adminName" class="col-sm-3 control-label">用户名称</label>
            <div class="col-sm-7">
              <input type="adminName" class="form-control" id="adminName" placeholder="请输入用户名">
            </div>
          </div>
          <div class="form-group">
            <label for="adminPassword" class="col-sm-3 control-label">电子邮箱</label>
            <div class="col-sm-7">
              <input type="adminPassword" class="form-control" id="adminPassword" placeholder="请输入电子邮箱">
            </div>
          </div>
          <div class="form-group">
            <label for="adminPassword" class="col-sm-3 control-label">密码</label>
            <div class="col-sm-7">
              <input type="adminPassword" class="form-control" id="adminPassword" placeholder="请输入密码">
            </div>
          </div>
        </form>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
        <button type="button" class="btn btn-primary">确认</button>
      </div>
    </div>
  </div>
</div> -->

<!--编辑 -->
<!-- <div class="modal fade" id="myModalEdit" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" id="myModalLabel">用户编辑</h4>
      </div>
      <div class="modal-body">
        <form class="form-horizontal">
          <div class="form-group">
            <label for="adminName" class="col-sm-3 control-label">用户名称</label>
            <div class="col-sm-7">
              <input type="adminName" class="form-control" id="adminName" value="zlf162543">
            </div>
          </div>
          <div class="form-group">
            <label for="adminPassword" class="col-sm-3 control-label">电子邮箱</label>
            <div class="col-sm-7">
              <input type="adminPassword" class="form-control" id="adminPassword" value="446550385@qq.com">
            </div>
          </div>
          <div class="form-group">
            <label for="adminPassword" class="col-sm-3 control-label">密码</label>
            <div class="col-sm-7">
              <input type="adminPassword" class="form-control" id="adminPassword" value="">
            </div>
          </div>
        </form>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
        <button type="button" class="btn btn-primary">确认</button>
      </div>
    </div>
  </div>
</div> -->

<!-- 删除 -->
<!-- <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" id="myModalLabel">确认删除</h4>
      </div>
      <div class="modal-body">
        <p>确定要删除该用户吗？</p>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default">确认</button>
        <button type="button" class="btn btn-primary" data-dismiss="modal">关闭</button>
      </div>
    </div>
  </div>
</div> -->


</body>
</html>

