国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

member_toadmin.htm 4.2KB

2 yıl önce
1 yıl önce
1 yıl önce
1 yıl önce
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
  6. <title>提升为管理员</title>
  7. <link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css">
  8. <link rel="stylesheet" href="../static/web/css/bootstrap.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 cellpadding="3" cellspacing="1" align="center" class="table maintable my-3">
  30. <tr>
  31. <td bgcolor="#f5f5f5" colspan="2"><a href="<?php echo $ENV_GOBACK_URL;?>">会员管理</a> &gt; 提升为管理员</td>
  32. </tr>
  33. <?php if ($row['matt']==10) {echo '<tr><td colspan="2"><div class="alert alert-info mb-0">您已经是管理员,不要提升了</div></td></tr>';} else {?>
  34. <form name="form2" action="member_toadmin.php" method="post" onSubmit="return checkSubmit();">
  35. <input type="hidden" name="dopost" value="toadmin">
  36. <input type="hidden" name="userid" value="<?php echo $row['userid']?>">
  37. <input type="hidden" name="id" value="<?php echo $id?>">
  38. <tr>
  39. <td width="260" class="admin-td">用户名:</td>
  40. <td class="admin-td" class="admin-td">
  41. <?php
  42. echo "".$row['userid']."";
  43. if ($row['face']!='') {echo "<img src='{$row['face']}' class='user-img'>";};
  44. ?>
  45. </td>
  46. </tr>
  47. <tr>
  48. <td class="admin-td">用户名称:</td>
  49. <td class="admin-td"><input type="text" name="uname" id="uname" value="<?php echo $row['uname']?>" class="admin-input-sm">(发布文档后显示作者的名字)</td>
  50. </tr>
  51. <tr>
  52. <td class="admin-td">用户密码:</td>
  53. <td class="admin-td"><input type="text" name="pwd" id="pwd" class="admin-input-md">(留空则不修改,只能用[0-9a-zA-Z_@!.-]以内范围的字符)</td>
  54. </tr>
  55. <tr>
  56. <td class="admin-td">用户类型:</td>
  57. <td class="admin-td">
  58. <select name='usertype' class='admin-input-sm'>
  59. <?php
  60. $dsql->SetQuery("SELECT * FROM `#@__admintype` ORDER BY `rank` ASC");
  61. $dsql->Execute("ut");
  62. while($myrow = $dsql->GetObject("ut"))
  63. {
  64. if ($row['usertype']==$myrow->rank) echo "<option value='".$myrow->rank."' selected='1'>".$myrow->typename."</option>";
  65. else echo "<option value='".$myrow->rank."'>".$myrow->typename."</option>";
  66. }
  67. ?>
  68. </select>
  69. </td>
  70. </tr>
  71. <tr>
  72. <td class="admin-td">负责栏目:</td>
  73. <td class="admin-td">
  74. <select name="typeids[]" id="typeid" multiple="true" class="admin-input-md" style="height:200px">
  75. <option value="0" class='alltype'>所有栏目</option>
  76. <?php echo $typeOptions?>
  77. </select>(按Ctrl可以进行多选)
  78. </td>
  79. </tr>
  80. <tr>
  81. <td class="admin-td">真实姓名:</td>
  82. <td class="admin-td"><input type="text" name="tname" id="tname" class="admin-input-md"></td>
  83. </tr>
  84. <tr>
  85. <td class="admin-td">电子邮箱:</td>
  86. <td class="admin-td"><input type="text" name="email" id="email" class="admin-input-md" value="<?php echo $row['email']?>"></td>
  87. </tr>
  88. <tr>
  89. <td class="admin-td">验证安全码:</td>
  90. <td class="admin-td">
  91. <input type="text" name="safecode" id="safecode" class="admin-input-md">
  92. <input type="hidden" name="randcode" value="<?php echo $randcode;?>">(安全码:<span class="text-primary"><?php echo $safecode;?></span>)
  93. </td>
  94. </tr>
  95. <tr>
  96. <td bgcolor="#f5f5f5" colspan="2" align="center">
  97. <button type="submit" name="Submit" class="btn btn-success btn-sm">保存</button>
  98. <button type="button" onclick="javascript:history.go(-1);" class="btn btn-success btn-sm">返回</button>
  99. </td>
  100. </tr>
  101. </form>
  102. <?php }?>
  103. </table>
  104. </body>
  105. </html>