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

member_toadmin.htm 5.5KB

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