<!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='../data/enums/area.js'></script> <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="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"> <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" bgcolor="#ffffff" align='center'> <?php if($row['matt']==10) { echo "<span style='color:#e74d58'>已经是管理员了,不要再提升了</span>"; } else { ?> <table width="98%" border="0" cellspacing="0" cellpadding="6" class="table table-borderless"> <form name="form2" action="member_toadmin.php" method="post" onSubmit="return checkSubmit();"> <input type="hidden" name="dopost" value="toadmin"> <input type="hidden" name="userid" value="<?php echo $row['userid']?>"> <input type="hidden" name="id" value="<?php echo $id?>"> <tr> <td width="120" class="bline">用户名:</td> <td class="bline" height="26" class="bline"> <?php echo "".$row['userid'].""; if($row['face']!='') { echo "<br><img src='{$row['face']}' width='80'/>"; } ?> </td> </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">(发布文章后显示责任编辑的名字)</td> </tr> <tr> <td height="26" class="bline">用户密码:</td> <td height="26" class="bline"><input name="pwd" type="text" id="pwd" size="16" style="width:260px">(留空则不修改,只能用'0-9a-zA-Z.@_-!'以内范围的字符)</td> </tr> <tr> <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>"; } ?> </select> </td> </tr> <tr> <td height="26" class="bline">负责频道:</td> <td height="26" class="bline"> <select name="typeids[]" id="typeid" style="width:260px;height:200px" multiple="true"> <option value="0" class='alltype'>所有频道</option> <?php echo $typeOptions?> </select>(按 Ctrl 可以进行多选) </td> </tr> <tr> <td height="26" class="bline">真实姓名:</td> <td height="26" class="bline"><input name="tname" type="text" id="tname" size="16" style="width:260px" value=""></td> </tr> <tr> <td height="26" class="bline">电子邮箱:</td> <td height="26" class="bline"><input name="email" type="text" id="email" size="16" style="width:260px" value="<?php echo $row['email']?>"></td> </tr> <tr> <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> </tr> <tr> <td height="36"></td> <td height="36" height="26" class="bline"> <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> <?php } ?> </td> </tr> </table> </body> </html>