157 lines
4.8 KiB
HTML
157 lines
4.8 KiB
HTML
{php include pubTemplate("header_admin")}
|
||
<div class="midder">
|
||
|
||
{php include template("admin/menu");}
|
||
|
||
<div>
|
||
<form method="get" action="{SITE_URL}index.php">
|
||
<input type="hidden" name="app" value="user" />
|
||
<input type="hidden" name="ac" value="admin" />
|
||
<input type="hidden" name="mg" value="user" />
|
||
<input type="hidden" name="ts" value="list" />
|
||
UID:<input type="text" name="userid" /> 用户名:<input type="text" name="username" /> <input type="submit" value="搜索" />
|
||
|
||
<a class="btn btn-sm btn-outline-primary" href="{SITE_URL}index.php?app=user&ac=admin&mg=user&ts=clean">一键删除被停用用户</a>
|
||
|
||
|
||
</form>
|
||
|
||
</div>
|
||
|
||
<div class="page">{$pageUrl}</div>
|
||
|
||
<table class="table table-hover">
|
||
|
||
|
||
<thead class="thead-light">
|
||
|
||
<tr>
|
||
<th>UID</th>
|
||
<th>邀请ID</th>
|
||
<th>用户组</th>
|
||
<th>Email</th>
|
||
<th>手机号</th>
|
||
<th>姓名</th>
|
||
<th>注册时间</th>
|
||
<th>登录IP</th>
|
||
<th>来自</th>
|
||
|
||
<th>操作</th></tr>
|
||
|
||
</thead>
|
||
|
||
|
||
|
||
<tbody>
|
||
|
||
{loop $arrAllUser $key $item}
|
||
<tr class="odd">
|
||
|
||
<td>{$item[userid]}</td>
|
||
|
||
<td>{$item[fuserid]}</td>
|
||
<td>
|
||
|
||
<select id="user_{$item['userid']}" onchange="changeGroup('{$item['userid']}')">
|
||
<option value="0" {if $item['ugid']==0}selected{/if}>未分组</option>
|
||
{loop $arrUg1 $ukey $uitem}
|
||
<option value="{$ukey}" {if $item['ugid']==$ukey}selected{/if}>{$uitem}</option>
|
||
{/loop}
|
||
</select>
|
||
|
||
</td>
|
||
|
||
<td>
|
||
|
||
{$item[email]}
|
||
|
||
|
||
{if $TS_USER['userid']==1 && $item['userid']!=1}
|
||
<div class="fs12">
|
||
{if $item['isverify']==1}
|
||
已验证 <a onclick="return confirm('确定取消?')" href="{SITE_URL}index.php?app=user&ac=admin&mg=user&ts=isverify&userid={$item['userid']}">[取消]</a>
|
||
{else}
|
||
<font color="red">未验证</font> <a href="{SITE_URL}index.php?app=user&ac=admin&mg=user&ts=isverify&userid={$item['userid']}">[验证]</a>
|
||
{/if}
|
||
</div>
|
||
{/if}
|
||
|
||
</td>
|
||
<td>
|
||
|
||
{$item['phone']}
|
||
|
||
{if $TS_USER['userid']==1 && $item['userid']!=1}
|
||
<div class="fs12">
|
||
{if $item['isverifyphone']==1}
|
||
已验证 <a onclick="return confirm('确定取消?')" href="{SITE_URL}index.php?app=user&ac=admin&mg=user&ts=isverifyphone&userid={$item['userid']}">[取消]</a>
|
||
{else}
|
||
<font color="red">未验证</font> <a href="{SITE_URL}index.php?app=user&ac=admin&mg=user&ts=isverifyphone&userid={$item['userid']}">[验证]</a>
|
||
{/if}
|
||
</div>
|
||
{/if}
|
||
|
||
</td>
|
||
|
||
<td>{$item[username]}</td>
|
||
|
||
<td class="fs12 c9">{php echo date('Y-m-d H:i:s',$item[addtime])}</td>
|
||
|
||
<td class="fs12 c9">{$item['ip']}</td>
|
||
<td>{$item['comefrom']}</td>
|
||
|
||
<td>
|
||
|
||
<a href="{SITE_URL}index.php?app=user&ac=admin&mg=user&ts=isrenzheng&&userid={$item[userid]}">
|
||
{if $item[isrenzheng]=='0'}[手工认证]{else}<font color="green">[取消认证]</font>{/if}
|
||
</a>
|
||
|
||
<a href="{SITE_URL}index.php?app=user&ac=admin&mg=user&ts=view&userid={$item[userid]}">[明细]</a>
|
||
|
||
{if $item['isadmin']==0}
|
||
<a href="{SITE_URL}index.php?app=user&ac=admin&mg=user&ts=isenable&&userid={$item[userid]}&page={$page}">
|
||
{if $item[isenable]=='0'}[停用]{else}<font color="red">[启用]</font>{/if}</a>
|
||
{/if}
|
||
|
||
{if $item['userid']!=1}
|
||
<a href="{SITE_URL}index.php?app=user&ac=admin&mg=user&ts=pwd&userid={$item[userid]}">[修改密码]</a>
|
||
<a href="{SITE_URL}index.php?app=user&ac=admin&mg=user&ts=face&userid={$item[userid]}">[清除头像]</a>
|
||
{/if}
|
||
|
||
{if $TS_USER['userid']==1 && $item['userid']!=1}
|
||
<a href="{SITE_URL}index.php?app=user&ac=admin&mg=user&ts=deldata&userid={$item[userid]}">[删除]</a>
|
||
<a href="{SITE_URL}index.php?app=user&ac=admin&mg=user&ts=admin&userid={$item['userid']}&token={$_SESSION['token']}">
|
||
{if $item['isadmin']==0}
|
||
[设为管理员]
|
||
{elseif $item['isadmin']==1}
|
||
<font color="red">[取消管理员]</font>
|
||
{/if}
|
||
</a>
|
||
{/if}
|
||
|
||
</td>
|
||
</tr>
|
||
{/loop}
|
||
|
||
</tbody>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
</table>
|
||
|
||
</div>
|
||
|
||
<script>
|
||
function changeGroup(userid){
|
||
var ugid = document.getElementById("user_"+userid).value;
|
||
$.post('index.php?app=user&ac=admin&mg=user&ts=ugid',{'userid':userid,'ugid':ugid},function(rs){
|
||
|
||
})
|
||
}
|
||
</script>
|
||
|
||
{php include pubTemplate("footer_admin")} |