| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <title></title>
- <meta name="description" content="">
- <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
- <meta name="robots" content="all,follow">
- <!-- Bootstrap CSS-->
- <link rel="stylesheet" href="__VENDOR__/bootstrap/css/bootstrap.min.css">
- <!-- Font Awesome CSS-->
- <link rel="stylesheet" href="__VENDOR__/font-awesome/css/font-awesome.min.css">
- <!-- Fontastic Custom icon font-->
- <!--<link rel="stylesheet" href="__CSS__/fontastic.css">-->
- <link rel="stylesheet" href="__CSS__/iconfont.css">
- <!-- Google fonts - Poppins -->
- <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Poppins:300,400,700">
- <!-- theme stylesheet-->
- <link rel="stylesheet" href="__CSS__/style.default.css" id="theme-stylesheet">
- <!-- Custom stylesheet - for your changes-->
- <link rel="stylesheet" href="__CSS__/custom.css">
- <!-- Favicon-->
- <link rel="shortcut icon" href="__IMG__/favicon.ico">
- <!-- Tweaks for older IEs--><!--[if lt IE 9]>
- <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
- <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script><![endif]-->
- </head>
- <body>
- <div class="page">
- <!-- Main Navbar-->
- {include file="layout/header" /}
- <div class="page-content d-flex align-items-stretch">
- <!-- Side Navbar -->
- {include file="layout/navigation" /}
- <div class="content-inner">
- <!-- Page Header-->
- <header class="page-header">
- <div class="container-fluid">
- <h2 class="no-margin-bottom">用户列表</h2>
- </div>
- </header>
- <!-- Breadcrumb-->
- <div class="breadcrumb-holder container-fluid">
- <ul class="breadcrumb">
- <li class="breadcrumb-item">用户管理</li>
- <li class="breadcrumb-item active">用户列表</li>
- </ul>
- </div>
- <section class="tables">
- <div class="container-fluid">
- <div class="row">
- <div class="col-lg-12">
- <div class="card">
- <div class="card-header d-flex align-items-center">
- <h3 class="h4">平台用户</h3>
- </div>
- <div class="card-body">
- <div class="table-responsive">
- <table class="table table-striped">
- <thead>
- <tr>
- <th>序号</th>
- <th>平台用户名</th>
- <th>用户名</th>
- <th>注册时间</th>
- <th>注册IP</th>
- <th>手机号</th>
- <th>操作</th>
- </tr>
- </thead>
- <tbody>
- <?php foreach ($userList as $k => $v): ?>
- <tr>
- <th scope="row">{$k+1}</th>
- <td>{$v['platform_user']}</td>
- <td>{$v['user_name']}</td>
- <td><?php echo date('Y-m-d H:i',$v['user_platform_rtime']); ?></td>
- <td>{$v['user_platform_rip']}</td>
- <td>{$v['user_phone']}</td>
- <td>
- <span onclick="deleteUser({$v['user_platform_id']})" style="color: #ce2714; cursor:pointer" class="icon iconfont icon-delete" title="删除"></span>
- </td>
- </tr>
- <?php endforeach; ?>
- </tbody>
- </table>
- <ul class="list-unstyled" style="display: flex; justify-content: end;">
- <?php if (count($page) > 1): ?>
- <?php foreach ($page as $k => $v): ?>
- <li>
- <a onclick="changePage({$v})" style="{$currentPage == $v ? 'pointer-events:none;' : ''}" class="btn btn-xs {$currentPage == $v ? 'btn-secondary' : ''}">{$v}</a>
- </li>
- <?php endforeach; ?>
- <?php endif; ?>
- </ul>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </section>
- <!-- Page Footer-->
- {include file="layout/footer" /}
- </div>
- </div>
- </div>
- <!-- JavaScript files-->
- <script src="__VENDOR__/jquery/jquery.min.js"></script>
- <script src="__VENDOR__/popper.js/umd/popper.min.js"> </script>
- <script src="__VENDOR__/bootstrap/js/bootstrap.min.js"></script>
- <script src="__VENDOR__/jquery.cookie/jquery.cookie.js"> </script>
- <script src="__VENDOR__/chart.js/Chart.min.js"></script>
- <script src="__VENDOR__/jquery-validation/jquery.validate.min.js"></script>
- <script src="__JS__/jquery.form.js"></script>
- <script src="__JS__/plugins/layer/layer.min.js"></script>
- <!-- Main File-->
- <script src="__JS__/front.js"></script>
- <script>
- function onSearch() {
- let userName = $("#userName").val();
- let urlParam = '';
- if (userName) {
- urlParam = "{:url('admin/index/userlist')}"+"?userName="+userName;
- } else {
- urlParam = "{:url('admin/index/userlist')}";
- }
- window.location.href = urlParam;
- }
- function deleteUser(id) {
- let msg = '确认删除该关联关系';
- layer.confirm(msg, {icon: 3, title:'提示'}, function(index){
- $.getJSON("{:url('admin/index/delPlatUser')}", {'id' : id}, function(res){
- if(1 == res.code){
- layer.alert(res.msg, {title: '友情提示', icon: 1, closeBtn: 0}, function(){
- location.reload();
- });
- }else if(111 == res.code){
- window.location.reload();
- }else{
- layer.alert(res.msg, {title: '友情提示', icon: 2});
- }
- });
- layer.close(index);
- })
- }
- function changePage(page) {
- let param = getQueryString();
- param.currentPage = page;
- let urlParam = "{:url('admin/index/platformUser')}"+"?"+putUrlParam(param);
- window.location.href = urlParam;
- }
- // 获取URL参数.
- function getQueryString() {
- var qs = location.search.substr(1), // 获取url中"?"符后的字串
- args = {}, // 保存参数数据的对象
- items = qs.length ? qs.split("&") : [], // 取得每一个参数项
- item = null,
- len = items.length;
- for(var i = 0; i < len; i++) {
- item = items[i].split("=");
- var name = decodeURIComponent(item[0]),
- value = decodeURIComponent(item[1]);
- if(name) {
- args[name] = value;
- }
- }
- return args;
- }
- // 对象转URL参数
- function putUrlParam(param) {
- let urlParam = '';
- let n = 1;
- for(let key in param){
- if (n === 1) {
- urlParam = key+'='+param[key];
- } else {
- urlParam += '&'+key+'='+param[key];
- }
- n++;
- }
- return urlParam;
- }
- </script>
- </body>
- </html>
|