Browse Source

权限

develop
叙述、别离 1 month ago
parent
commit
684a1410b7
2 changed files with 19 additions and 1 deletions
  1. +1
    -1
      src/admin/sys_admin_user_edit.php
  2. +18
    -0
      src/admin/templets/sys_admin_user_edit.htm

+ 1
- 1
src/admin/sys_admin_user_edit.php View File

@@ -69,7 +69,7 @@ if ($dopost == 'saveedit') {
$dsql->ExecuteNoneQuery($query);
$query = "UPDATE `#@__member` SET uname='$uname',email='$email' $pwdm $usql WHERE mid='$id'";
$dsql->ExecuteNoneQuery($query);
ShowMsg("成功修改一个账户", "sys_admin_user.php");
ShowMsg("成功修改一个账户", "sys_admin_user_edit.php?id=".$cuserLogin->getUserID()."&dopost=edit");
exit();
} else if ($dopost == 'delete') {
if (empty($userok)) $userok = '';


+ 18
- 0
src/admin/templets/sys_admin_user_edit.htm View File

@@ -12,7 +12,9 @@
<div class="container-fluid">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<?php if ($cuserLogin->getUserType() >= 10) {?>
<li class="breadcrumb-item"><a href="sys_admin_user.php">管理员管理</a></li>
<?php }?>
<li class="breadcrumb-item active">修改管理员</li>
</ol>
<div class="card shadow-sm">
@@ -65,6 +67,22 @@
<span>(支持多选)</span>
</td>
</tr>
<?php } else {?>
<tr>
<td>类型</td>
<td>
<select name="usertype" class="admin-input-sm">
<?php
$dsql->SetQuery("SELECT * FROM `#@__admintype` ORDER BY `rank` ASC");
$dsql->Execute("ut");
while($myrow = $dsql->GetObject("ut"))
{
if ($row['usertype']==$myrow->rank) echo "<option value='".$myrow->rank."' selected='1'>".$myrow->typename."</option>";
}
?>
</select>
</td>
</tr>
<?php }?>
<tr>
<td>姓名</td>


Loading…
Cancel
Save