⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ma_user.php

📁 php的论坛,强大的功能,操作方便.不妨一试....
💻 PHP
字号:
<?
include "date/leaveword.inc";
include "date/answer.inc";
include "date/user.inc";
include "date/array_count.inc";			
?>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>留言板</title>
<style type="text/css">
<!--
body {
	background-color: #333333;
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
body,td,th {
	font-family: 宋体;
	font-size: 12px;
	color: #333333;
}
a:visited {
	color: #000000;
	text-decoration: none;
}
a:active {
	color: #000000;
	text-decoration: none;
}
.STYLE1 {color: #000000}
.STYLE2 {font-family: "宋体"}
.STYLE3 {color: #FFFFFF}
.STYLE4 {
	font-size: 16px;
	font-weight: bold;
}
.STYLE5 {color: #666666}
.STYLE9 {font-size: 14px}
a:link {
	text-decoration: none;
}
a:hover {
	text-decoration: none;
}
.STYLE10 {
	font-size: 18px;
	color: #FFFFFF;
}
-->
</style>
<script type="text/JavaScript">
<!--
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
</head>

<body onload="MM_preloadImages('images/menu02a.gif','images/menu03a.gif','images/menu04a.gif','images/menu05a.gif','images/menu06a.gif','images/menu07a.gif','images/menu08a.gif','images/menu09a.gif','images/menu10a.gif')">
<TABLE width="800" border=0 align=center cellPadding=0 cellSpacing=0 bgColor=#ffffff>
  <TBODY>
    <TR> 
      <TD align=left vAlign=top><IMG height=1 
      src="lybimages/dot.gif" width=1> <table width="100%" border="1" cellspacing="0" bordercolor="#878F88">
          <tr> 
            <td width="21%" height="194" align="center" valign="top" bgcolor="#878F88"> 
              <? include "left_login.php" ?>
            </td>
            <td width="79%" valign="top"><p align="left"><span class="STYLE2">您的位置-</span>&gt;-&gt;<span class="STYLE2"> 
                <a href="index.php">STS留言板</a>-</span>&gt;-&gt;<span class="STYLE2">用户管理</span></p>
              <?              
 if ($user[$aa][group]==1)
 {
?>
              <div align="left"> 
                <table width="80%" border="0" align="center" cellpadding="0" cellspacing="0">
                  <tr bgcolor="#999999"> 
                    <td width="52%"><font color="#FFFFFF" >用户名</font></td>
                    <td width="48%"><font color="#FFFFFF" >操作</font></td>
                  </tr>
                  <? include "date/user.inc";
                     include "date/array_user.inc";
                  for ($i=1;$i<=$array_last_user;$i++)
                  {if ($user[$i][name]!="")
                  echo   "<tr><td>".$user[$i][name]."</td><td><a href=del_user.php?u_id=".$i.">删除</a></td></tr>";
                  
                  }
                  ?>
                </table>
                <hr />
                <p><strong>添加用户:</strong></p>
                <form name="form1" id="form1" method="post" action="add_user.php">
                  <table width="80%" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr valign="bottom" bgcolor="#FFFFFF"> 
                      <td width="32%"><font color="#000000">用户名</font><font color="#FFFFFF" size="+1"> 
                        <input name="user_name" type="text" id="user_name" size="10" />
                        </font></td>
                      <td width="68%"><font color="#000000">密码 
                        <input name="user_pass" type="password" id="user_pass" size="10" />
                        <input type="radio" name="user_group" value="1" />
                        超级管理员 </font></td>
                    </tr>
                    <tr> 
                      <td colspan="2"><div align="center"><font color="#000000"> 
                          <input type="submit" name="Submit" value="提交" />
                          </font> </div></td>
                    </tr>
                  </table>
                </form>
                <p>&nbsp;</p>
              </div>
              <?
  }
?>
            </td>
          </tr>
          <tr bgcolor="#ffffff"> 
            <td valign="center" align="middle" bgcolor="#1e4489" colspan="2" height="5"><img 
      height="1" src="lybimages/dot.gif" width="1" /></td>
          </tr>
        </table></TD>
    </TR>
    <TR> 
      <TD align=left vAlign=top><div align="center">powerd by WShuai<br />
          connect me by QQ 93000214</div></TD>
    </TR>
  </TBODY>
</TABLE>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -