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

119 lines
5.0KB

  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 href="css/base.css" rel="stylesheet" type="text/css">
  7. <script language='javascript'src='../data/enums/area.js'></script>
  8. <script>
  9. function checkSubmit()
  10. {
  11. if(document.form2.email.value=="")
  12. {
  13. document.form2.email.focus();
  14. alert("Email不能为空!");
  15. return false;
  16. }
  17. if(document.form2.uname.value=="")
  18. {
  19. document.form2.uname.focus();
  20. alert("用户昵称不能为空!");
  21. return false;
  22. }
  23. }
  24. </script>
  25. </head>
  26. <body background='images/allbg.gif' leftmargin='8' topmargin='8'>
  27. <table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6">
  28. <tr>
  29. <td height="19" background="images/tbg.gif" style="padding-left:10px;"><a href='<?php echo $ENV_GOBACK_URL; ?>'><b>会员管理</b></a> &gt;&gt; 提升为管理员</td>
  30. </tr>
  31. <tr>
  32. <td height="200" bgcolor="#FFFFFF" align='center'><?php
  33. if($row['matt']==10)
  34. {
  35. echo "<font color='red'>已经是管理员了,不要再提升了!</font>";
  36. }else{
  37. ?>
  38. <table width="98%" border="0" cellspacing="0" cellpadding="6">
  39. <tr>
  40. <td colspan="2" height="10" ></td>
  41. </tr>
  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="17%" align="right" class='bline'>用户名:</td>
  48. <td width="83%" class='bline' align="left"><?php
  49. echo "<b>".$row['userid']."</b>";
  50. if($row['face']!='') {
  51. echo "<br /><img src='{$row['face']}' width='80'/>";
  52. }
  53. ?></td>
  54. </tr>
  55. <tr>
  56. <td height="30" align="right">用户笔名:</td>
  57. <td align="left">
  58. <input name="uname" type="text" id="uname" size="16" value="<?php echo $row['uname']?>" style="width:200px" /> &nbsp;(发布文章后显示责任编辑的名字)
  59. </td>
  60. </tr>
  61. <tr>
  62. <td height="30" align="right">用户密码:</td>
  63. <td align="left"><input name="pwd" type="text" id="pwd" size="16" style="width:200px" />
  64. &nbsp;(留空则不修改,只能用'0-9a-zA-Z.@_-!'以内范围的字符) </td>
  65. </tr>
  66. <tr>
  67. <td height="30" align="right">用户类型:</td>
  68. <td align="left"><select name='usertype' style='width:200px'>
  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>\r\n";
  75. else echo "<option value='".$myrow->rank."'>".$myrow->typename."</option>\r\n";
  76. }
  77. ?>
  78. </select></td>
  79. </tr>
  80. <tr>
  81. <td height="30" align="right">负责频道:</td>
  82. <td align="left"><select name="typeids[]" id="typeid" size='10' style="width:200px" multiple="true">
  83. <option value="0" class='alltype'>--所有频道--</option>
  84. <?php echo $typeOptions?>
  85. </select>
  86. (按 Ctrl 可以进行多选) </td>
  87. </tr>
  88. <tr>
  89. <td height="30" align="right">真实姓名:</td>
  90. <td align="left"><input name="tname" type="text" id="tname" size="16" style="width:200px" value="" /> &nbsp;</td>
  91. </tr>
  92. <tr>
  93. <td height="30" align="right">电子邮箱:</td>
  94. <td align="left"><input name="email" type="text" id="email" size="16" style="width:200px" value="<?php echo $row['email']?>" />
  95. &nbsp;</td>
  96. </tr>
  97. <tr>
  98. <td height="30" align="right">安全验证串:</td>
  99. <td align="left"><input name="safecode" type="text" id="safecode" size="16" style="width:200px" />
  100. <input name="randcode" type="hidden" value="<?php echo $randcode; ?>" />
  101. &nbsp;
  102. (复制本代码: <font color='red'><?php echo $safecode; ?></font> ) </td>
  103. </tr>
  104. <tr>
  105. <td height="67" align="right" >&nbsp;</td>
  106. <td height="67" align="left"><input type="submit" name="Submit" value="确定提升" class='coolbg' />
  107. &nbsp;&nbsp;
  108. <input type="reset" name="Submit22" value="重置表单" class='coolbg' /></td>
  109. </tr>
  110. </form>
  111. </table>
  112. <?php
  113. }
  114. ?>
  115. </td>
  116. </tr>
  117. </table>
  118. </body>
  119. </html>