国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

129 lines
5.7KB

  1. <!DOCTYPE html
  2. PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
  6. <title>提升为管理员</title>
  7. <link rel="stylesheet" href="../static/css/bootstrap.min.css">
  8. <link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet">
  9. <link href="css/base.css" rel="stylesheet" type="text/css">
  10. <script language='javascript' src='../data/enums/area.js'></script>
  11. <script language="javascript" src="../static/js/jquery.js"></script>
  12. <script language="javascript" src="../static/js/bootstrap.bundle.js"></script>
  13. <script language="javascript" src="js/main.js"></script>
  14. <script>
  15. function checkSubmit() {
  16. if (document.form2.email.value == "") {
  17. document.form2.email.focus();
  18. ShowMsg("Email不能为空!");
  19. return false;
  20. }
  21. if (document.form2.uname.value == "") {
  22. document.form2.uname.focus();
  23. ShowMsg("用户昵称不能为空!");
  24. return false;
  25. }
  26. }
  27. </script>
  28. </head>
  29. <body background='images/allbg.gif' leftmargin='8' topmargin='8'>
  30. <table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6" class="table maintable table-bordered mt-3">
  31. <tr>
  32. <td height="19" background="images/tbg.gif" style="padding-left:10px;"><a
  33. href='<?php echo $ENV_GOBACK_URL; ?>'><b>会员管理</b></a> &gt;&gt; 提升为管理员</td>
  34. </tr>
  35. <tr>
  36. <td height="200" bgcolor="#FFFFFF" align='center'><?php
  37. if($row['matt']==10)
  38. {
  39. echo "<font color='red'>已经是管理员了,不要再提升了!</font>";
  40. }else{
  41. ?>
  42. <table width="98%" border="0" cellspacing="0" cellpadding="6" class="table table-borderless">
  43. <tr>
  44. <td colspan="2" height="10"></td>
  45. </tr>
  46. <form name="form2" action="member_toadmin.php" method="post" onSubmit="return checkSubmit();">
  47. <input type="hidden" name="dopost" value="toadmin" />
  48. <input type="hidden" name="userid" value="<?php echo $row['userid']?>" />
  49. <input type="hidden" name="id" value="<?php echo $id?>" />
  50. <tr>
  51. <td width="17%" align="right" class='bline'>用户名:</td>
  52. <td width="83%" class='bline' align="left"><?php
  53. echo "<b>".$row['userid']."</b>";
  54. if($row['face']!='') {
  55. echo "<br /><img src='{$row['face']}' width='80'/>";
  56. }
  57. ?></td>
  58. </tr>
  59. <tr>
  60. <td height="30" align="right">用户笔名:</td>
  61. <td align="left">
  62. <input name="uname" type="text" id="uname" size="16" value="<?php echo $row['uname']?>"
  63. style="width:200px" /> &nbsp;(发布文章后显示责任编辑的名字)
  64. </td>
  65. </tr>
  66. <tr>
  67. <td height="30" align="right">用户密码:</td>
  68. <td align="left"><input name="pwd" type="text" id="pwd" size="16" style="width:200px" />
  69. &nbsp;(留空则不修改,只能用'0-9a-zA-Z.@_-!'以内范围的字符) </td>
  70. </tr>
  71. <tr>
  72. <td height="30" align="right">用户类型:</td>
  73. <td align="left"><select name='usertype' style='width:200px'>
  74. <?php
  75. $dsql->SetQuery("Select * from #@__admintype order by rank asc");
  76. $dsql->Execute("ut");
  77. while($myrow = $dsql->GetObject("ut"))
  78. {
  79. if($row['usertype']==$myrow->rank) echo "<option value='".$myrow->rank."' selected='1'>".$myrow->typename."</option>\r\n";
  80. else echo "<option value='".$myrow->rank."'>".$myrow->typename."</option>\r\n";
  81. }
  82. ?>
  83. </select></td>
  84. </tr>
  85. <tr>
  86. <td height="30" align="right">负责频道:</td>
  87. <td align="left"><select name="typeids[]" id="typeid" size='10' style="width:200px;height: 200px;" multiple="true">
  88. <option value="0" class='alltype'>--所有频道--</option>
  89. <?php echo $typeOptions?>
  90. </select>
  91. (按 Ctrl 可以进行多选) </td>
  92. </tr>
  93. <tr>
  94. <td height="30" align="right">真实姓名:</td>
  95. <td align="left"><input name="tname" type="text" id="tname" size="16" style="width:200px" value="" />
  96. &nbsp;</td>
  97. </tr>
  98. <tr>
  99. <td height="30" align="right">电子邮箱:</td>
  100. <td align="left"><input name="email" type="text" id="email" size="16" style="width:200px"
  101. value="<?php echo $row['email']?>" />
  102. &nbsp;</td>
  103. </tr>
  104. <tr>
  105. <td height="30" align="right">安全验证串:</td>
  106. <td align="left"><input name="safecode" type="text" id="safecode" size="16" style="width:200px" />
  107. <input name="randcode" type="hidden" value="<?php echo $randcode; ?>" />
  108. &nbsp;
  109. (复制本代码: <font color='red'><?php echo $safecode; ?></font> ) </td>
  110. </tr>
  111. <tr>
  112. <td height="67" align="right">&nbsp;</td>
  113. <td height="67" align="left"><button type="submit" name="Submit" class='btn btn-secondary'>确定提升</button>
  114. &nbsp;&nbsp;
  115. <button type="reset" name="Submit22" class='btn btn-secondary'>重置表单</button></td>
  116. </tr>
  117. </form>
  118. </table>
  119. <?php
  120. }
  121. ?>
  122. </td>
  123. </tr>
  124. </table>
  125. </body>
  126. </html>