国内流行的内容管理系统(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.

120 lines
5.4KB

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