HighSpeaker/.history/app/view/user_20221223143653.html

81 lines
4.0 KiB
HTML
Raw Permalink Normal View History

2022-12-24 19:40:40 +05:30
<?php
$page_title='用户配置';
include('common_head.html');?>
<link href="vendor/datatables/dataTables.bootstrap4.min.css" rel="stylesheet">
<!-- Begin Page Content -->
<div class="container-fluid">
<!-- Page Heading -->
<h1 class="h3 mb-4 text-gray-800">用户配置</h1>
<small style="color: #e83e8c;">请注意:HighSpeaker是单用户的,您添加的所有用户都具备和您一样的管理员权限并甚至可以删除您的账号!</small>
<div class="card shadow mb-4">
<div class="card-header py-3">
<h6 class="m-0 font-weight-bold text-primary">用户列表</h6>
</div>
<div class="card-body">
<div class="table-responsive">
<table class="table table-bordered" id="dataTable" width="100%" cellspacing="0">
<thead>
<tr>
<th>头像</th>
<th>姓名</th>
<th>邮箱</th>
<th>账号</th>
<th>密码</th>
<th>操作</th>
</tr>
</thead>
<tfoot>
<tr>
<th>头像</th>
<th>姓名</th>
<th>邮箱</th>
<th>账号</th>
<th>密码</th>
<th>操作</th>
</tr>
</tfoot>
<tbody>
<?php
foreach($user as $us){
$us=json_decode($us);
$headurl='https://cravatar.cn/avatar/' . md5(strtolower(trim( $us->email )));
echo <<<EOF
<tr>
<td><img height="35px" style="border-radius: 100%;" src="$headurl"></img></td>
<td><input name="name" value="$us->name" /></td>
<td>$us->email</td>
<td>$us->account</td>
<td>Start date</td>
<td>Salary</td>
</tr>
EOF;
}
?>
<tr>
<td>新用户</td>
<td>管理员</td>
<td>admin@admin.com</td>
<td>admin</td>
<td>Start date</td>
<td>Salary</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
<!-- /.container-fluid -->
</div>
<!-- End of Main Content -->
<?php include('common_foot.html');?>