|
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
- <title>查看会员</title>
- <link rel="stylesheet" href="../static/web/css/bootstrap.min.css">
- <link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css">
- <link rel="stylesheet" href="../static/web/css/admin.css">
- <script language="javascript" src="../static/web/js/jquery.min.js"></script>
- <script language="javascript" src="../static/web/js/bootstrap.bundle.min.js"></script>
- <script language='javascript'src='../data/enums/area.js'></script>
- <script language="javascript" src="js/main.js"></script>
- <script>
- function checkSubmit()
- {
- if(document.form2.email.value=="")
- {
- document.form2.email.focus();
- ShowMsg("Email不能为空");
- return false;
- }
- if(document.form2.uname.value=="")
- {
- document.form2.uname.focus();
- ShowMsg("用户昵称不能为空");
- return false;
- }
- }
- </script>
- </head>
- <body>
- <table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table maintable mt-3 mb-3">
- <tr>
- <td height="26" background="../static/web/img/tbg.gif" style="padding-left:10px"><a href='<?php echo $ENV_GOBACK_URL; ?>'>会员管理</a> > 查看会员</td>
- </tr>
- <tr>
- <td height="200" align='center'>
- <?php
- if($row['matt']==10) echo "<span style='color:#dc3545'>当前用户是网站管理员关连的帐号,请小心操作</span>";
- ?>
- <table width="98%" border="0" cellspacing="0" cellpadding="6" class="table table-borderless">
- <form name="form2" action="member_do.php" method="post" onSubmit="return checkSubmit();">
- <input type="hidden" name="dopost" value="edituser">
- <input type="hidden" name="id" value="<?php echo $id?>">
- <tr>
- <td width="260" height="26" class="bline">用户名:</td>
- <td height="26" class="bline">
- <?php
- echo "".$row['userid']."";
- if($row['face']!='') {
- echo "<br><img src='{$row['face']}' style='max-width:80px;height:auto'>";
- }
- ?>
- </td>
- </tr>
- <tr>
- <td height="26" class="bline">密码:</td>
- <td height="26" ><input type="text" name="pwd" id="pwd" style="width:260px">(不修改留空)</td>
- </tr>
- <tr>
- <td height="26" class="bline">注册时间:</td>
- <td height="26" class="bline">
- <?php echo GetDateTimeMk($row['jointime'])?>
- IP:<?php echo $row['joinip']?>
- </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>
- </tr>
- <tr>
- <td height="26" class="bline">用户类型:</td>
- <td height="26" ><?php echo $row['mtype']; ?></td>
- </tr>
- <tr>
- <td height="26" class="bline">电子邮箱:</td>
- <td height="26" class="bline"><input name="email" type="text" id="email" value="<?php echo $row['email']?>" style="width:260px"></td>
- </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>
- </tr>
- <tr>
- <td height="26" class="bline">性别:</td>
- <td height="26" class="bline">
- <label><input type="radio" name="sex" class="np" value="男"<?php if($row['sex']=="男" ) echo" checked='1'" ; ?>>
- 男</label>
- <label><input type="radio" name="sex" class="np" value="女"<?php if($row['sex']=="女" ) echo" checked='1'" ; ?>>
- 女</label>
- <label><input type="radio" name="sex" class="np" value=""<?php if($row['sex']=="" ) echo" checked='1'" ; ?>>
- 保密</label>
- </td>
- </tr>
- <tr>
- <td height="26" class="bline">金币 :</td>
- <td height="26" class="bline">
- <input name="money" type="text" id="money" value="<?php echo $row['money']; ?>" style="width:60px">
- 积分:<input name="scores" type="text" id="scores" value="<?php echo $row['scores']; ?>" style="width:60px">
- </td>
- </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')){
- $MemberTypes[$nrow->rank] = $nrow->membername;
- }
- $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>
- </tr>
- <tr>
- <td height="26" class="bline">升级时间:</td>
- <td height="26" class="bline"><input type="text" name="uptime" value="<?php echo $row['uptime']=($row['uptime']=='0')? GetDateTimeMk(time()) : GetDateTimeMk($row['uptime']); ?>" id="uptime" style="width:160px">(如果您要升级会员,必须设置此时间为当前时间)</td>
- </tr>
- <tr>
- <td height="26" class="bline">会员天数:</td>
- <td height="26" class="bline"><input type="text" name="exptime" value="<?php echo $row['exptime']?>" id="exptime" style="width:60px">(如果您要升级会员,会员天数必须大于0)</td>
- </tr>
- <?php if($mhasDay!=0){ $mhasDay=($mhasDay>0)? $mhasDay : '<span style="color:#dc3545">该会员已经到期</span>'; ?>
- <tr>
- <td height="26" class="bline">会员剩余天数:</td>
- <td height="26" class="bline"><?php echo $mhasDay; ?></td>
- </tr>
- <tr>
- <?php } ?>
- <td height="26" class="bline">推荐级别:</td>
- <td height="26" class="bline">
- <input name="oldmatt" type="hidden" id="oldmatt" value="<?php echo $row['matt']?>" style="width:60px">
- <input name="matt" type="text" id="matt" value="<?php echo $row['matt']?>" style="width:60px">(0为普通,1为推荐,10为管理员不能在前台登录非管理员ID是严格使用10属性的,要新建管理在<a href='sys_admin_user_add.php' target='_blank'>系统帐号</a>地方增加)
- </td>
- </tr>
- <tr>
- <td height="26" class="bline">资料状况:</td>
- <td height="26" class="bline">
- <select name='spacesta' style='width:160px'>
- <?php
- foreach($staArr as $k=>$v)
- {
- if($row['spacesta']==$k) echo "<option value='$k' selected>$v</option>";
- else echo "<option value='$k'>$v</option>";
- }
- ?>
- </select>
- </td>
- </tr>
- <tr>
- <td height="26" height="60">空间信息:</td>
- <td height="26" class="bline">
- <?php
- $nrow = $dsql->GetOne("Select * From `#@__member_tj` where mid='{$row['mid']}' ");
- echo "文章:{$nrow['article']} 图集:{$nrow['album']} 文档:{$nrow['archives']} 收藏:{$nrow['stow']}";
- echo "<br>空间访问:{$nrow['homecount']} 页面访问:{$nrow['pagecount']} 留言:{$nrow['feedback']} 好友:{$nrow['friend']} ";
- ?>
- </td>
- </tr>
- <tr>
- <td height="26" class="bline">特殊操作:</td>
- <td height="26" class="bline">
- <a href="member_do.php?dopost=memberlogin&id=<?php echo $row['mid']; ?>&jumpurl=../user/edit_fullinfo.php" target="_blank">查看/修改详细资料</a>
- <a href="member_do.php?dopost=memberlogin&id=<?php echo $row['mid']; ?>" target="_blank">登录到此用户控制面板</a>
- <a href="../user/index.php?uid=<?php echo $row['userid']; ?>" target="_blank">浏览此用户的空间</a>
- </td>
- </tr>
- <tr>
- <td colspan="2" align="center" class="py-3">
- <button type="submit" name="Submit" class="btn btn-success btn-sm">保存</button>
- <button type="reset" name="Submit22" class="btn btn-success btn-sm">重置</button>
- <button type="button" onclick="javascript:history.go(-1);" class="btn btn-success btn-sm">返回</button>
- </td>
- </tr>
- </form>
- </table>
- </td>
- </tr>
- </table>
- </body>
- </html>
|