Browse Source

修改会员和管理员调整

tags/6.1.8
xushubieli 2 years ago
parent
commit
bc00d762b4
3 changed files with 35 additions and 40 deletions
  1. +1
    -3
      src/admin/templets/member_toadmin.htm
  2. +24
    -25
      src/admin/templets/member_view.htm
  3. +10
    -12
      src/admin/templets/sys_admin_user_edit.htm

+ 1
- 3
src/admin/templets/member_toadmin.htm View File

@@ -99,9 +99,7 @@
<td height="26" class="bline">安全验证串:</td>
<td height="26" class="bline">
<input name="safecode" type="text" id="safecode" size="16" style="width:260px">
<input name="randcode" type="hidden" value="<?php echo $randcode; ?>">
(复制本代码:<span style='color:#e74d58'><?php echo $safecode; ?></span>)
</td>
<input name="randcode" type="hidden" value="<?php echo $randcode; ?>">(复制本代码:<span style='color:#e74d58'><?php echo $safecode; ?></span>)</td>
</tr>
<tr>
<td height="36"></td>


+ 24
- 25
src/admin/templets/member_view.htm View File

@@ -32,7 +32,7 @@ function checkSubmit()
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table maintable mt-3">
<tr>
<td height="26" background="../static/web/img/tbg.gif" style="padding-left:10px"><a href='<?php echo $ENV_GOBACK_URL; ?>'>会员管理</a> &gt; 查看会员</td>
</tr>
</tr>
<tr>
<td height="200" bgcolor="#ffffff" align='center'>
<?php
@@ -51,7 +51,7 @@ function checkSubmit()
echo "<br><img src='{$row['face']}' style='max-width:80px;height:auto'>";
}
?>
</td>
</td>
</tr>
<tr>
<td height="26" class="bline">密码:</td>
@@ -62,15 +62,14 @@ function checkSubmit()
<td height="26" class="bline">
<?php echo GetDateTimeMk($row['jointime'])?>
IP:<?php echo $row['joinip']?>
</td>
</td>
</tr>
<tr>
<td height="26" class="bline">最近登录时间:</td>
<td height="26" class="bline">
<?php echo GetDateTimeMk($row['logintime'])?>
 IP:
<?php echo $row['loginip']?>
</td>
IP:<?php echo $row['loginip']?>
</td>
</tr>
<tr>
<td height="26" class="bline">用户类型:</td>
@@ -82,9 +81,7 @@ function checkSubmit()
</tr>
<tr>
<td height="26" class="bline">昵称:</td>
<td height="26" class="bline">
<input name="uname" type="text" value="<?php echo $row['uname']?>" id="uname" style="width:260px">
</td>
<td height="26" class="bline"><input name="uname" type="text" value="<?php echo $row['uname']?>" id="uname" style="width:260px"></td>
</tr>
<tr>
<td height="26" class="bline">性别:</td>
@@ -106,23 +103,25 @@ function checkSubmit()
</tr>
<tr>
<td height="26" class="bline">等级:</td>
<td height="26" class="bline"><?php
$MemberTypes = array();
$dsql->SetQuery("Select `rank`,membername From `#@__arcrank` where `rank`>0");
$dsql->Execute('n');
$MemberTypes[0] = "限制会员";
while($nrow = $dsql->GetObject('n')){
<td height="26" class="bline">
<?php
$MemberTypes = array();
$dsql->SetQuery("Select `rank`,membername From `#@__arcrank` where `rank`>0");
$dsql->Execute('n');
$MemberTypes[0] = "限制会员";
while($nrow = $dsql->GetObject('n')){
$MemberTypes[$nrow->rank] = $nrow->membername;
}
$options = "<select name='rank' style='width:160px'>";
foreach($MemberTypes as $k=>$v)
{
}
$options = "<select name='rank' style='width:160px'>";
foreach($MemberTypes as $k=>$v)
{
if($k!=$row['rank']) $options .= "<option value='$k'>$v</option>";
else $options .= "<option value='$k' selected>$v</option>";
}
$options .= "</select>";
echo $options;
?></td>
}
$options .= "</select>";
echo $options;
?>
</td>
</tr>
<tr>
<td height="26" class="bline">升级时间:</td>
@@ -148,7 +147,7 @@ function checkSubmit()
<tr>
<td height="26" class="bline">资料状况:</td>
<td height="26" class="bline">
<select name='spacesta' style='width:160px'>
<select name='spacesta' style='width:160px'>
<?php
foreach($staArr as $k=>$v)
{
@@ -156,7 +155,7 @@ function checkSubmit()
else echo "<option value='$k'>$v</option>";
}
?>
</select>
</select>
</td>
</tr>
<tr>


+ 10
- 12
src/admin/templets/sys_admin_user_edit.htm View File

@@ -32,9 +32,7 @@
</tr>
<tr>
<td height="26" class="bline">用户笔名:</td>
<td height="26" class="bline">
<input name="uname" type="text" id="uname" size="16" value="<?php echo $row['uname']?>" style="width:260px"> &nbsp;(发布文章后显示责任编辑的名字)
</td>
<td height="26" class="bline"><input name="uname" type="text" id="uname" size="16" value="<?php echo $row['uname']?>" style="width:260px">(发布文章后显示责任编辑的名字)</td>
</tr>
<tr>
<td height="26" class="bline">用户密码:</td>
@@ -44,15 +42,15 @@
<td height="26" class="bline">用户类型:</td>
<td height="26" class="bline">
<select name='usertype' style='width:160px'>
<?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>";
else echo "<option value='".$myrow->rank."'>".$myrow->typename."</option>";
}
?>
<?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>";
else echo "<option value='".$myrow->rank."'>".$myrow->typename."</option>";
}
?>
</select>
</td>
</tr>


Loading…
Cancel
Save