<!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=utf-8" />
<title>Hait windows 后台管理</title>
<link rel="stylesheet" type="text/css" href="images/hait_admin.css" />
</head>
<?php require ("Hait_login_ask.php");?>
<?php
if($admin_gl==null or $admin_gl<>1 )
{
   echo "<script>alert('Hait windows 提醒你，非法操作！！你没有该权限！');location.href='Hait_right.php'</script>";
   exit;
}
require("../config.php");
$id=$_SERVER['QUERY_STRING'];
$sql="select * from hait_admin where id='$id'";
$okis=mysql_query($sql,$conn);
$admin=mysql_fetch_array($okis);
?>
<body><div id="hait_class">
<form method="post" action="hait_do_app.php"><input name="appname" type="text"  style="display:none" value="admin_xg"/>
    <table align="left" width="100%" cellpadding="4" cellspacing="1"  bgcolor="#C0C0C0" >
     <tr bgcolor="#DFEFFF">
       <td height="18" colspan="2" align="left" valign="middle"  background="images/bg2.gif" bgcolor="#DFEFFF" class="STYLE6" ><table border="0">
         <tr>
           <td valign="bottom"><img src="images/cog.png" /></td>
           <td valign="bottom" >您现在的位置：修改管理员信息</td>
         </tr>
       </table></td>
      </tr>
     <tr bgcolor="#DFEFFF">
    <td   align="right" bgcolor="#FFFFFF">序&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;号:</td>
    <td bgcolor="#FFFFFF"><input name="id" value="<?php echo $admin['id'];?>" class="text" type="hidden" /><?php echo $admin['id'];?></td>
    </tr>
     <tr bgcolor="#DFEFFF">
       <td align="right" bgcolor="#FFFFFF">用&nbsp;&nbsp;户&nbsp;&nbsp;名:</td>
       <td bgcolor="#FFFFFF" class="STYLE3"><?php echo $admin['user'];?></td>
     </tr>
     <tr bgcolor="#DFEFFF">
       <td align="right" bgcolor="#FFFFFF">管理权限;</td>
       <td bgcolor="#FFFFFF"><table border="0">
           <tr>
             <td><?php if ($admin['wz_gl']==1){echo'<input type="checkbox" name="wz_gl" checked="checked" value="1" />';}else {echo'<input name="wz_gl" type="checkbox" value="2"/>';};?>
               网站管理</td>
             <td><?php if ($admin['sql_gl']==1){echo'<input type="checkbox" name="sql_gl" checked="checked" value="1" />';}else {echo'<input name="sql_gl" type="checkbox" value="2"/>';};?>
               数据库管理</td>
             <td><?php if ($admin['admin_gl']==1){echo'<input type="checkbox" name="admin_gl" checked="checked" value="1" />';}else {echo'<input name="admin_gl" type="checkbox" value="2"/>';};?>
               管理员管理</td>
             <td><?php if ($admin['upload_gl']==1){echo'<input type="checkbox" name="upload_gl" checked="checked" value="1" />';}else {echo'<input name="upload_gl" type="checkbox" value="2"/>';};?>
               上传文件管理</td>
           </tr>
           <tr>
             <td><?php if ($admin['class_gl']==1){echo'<input type="checkbox" name="class_gl" checked="checked" value="1" />';}else {echo'<input name="class_gl" type="checkbox" value="2"/>';};?>
               分类管理</td>
             <td><?php if ($admin['add_class']==1){echo'<input type="checkbox" name="add_class" checked="checked" value="1" />';}else {echo'<input name="add_class" type="checkbox" value="2"/>';};?>
               添加分类</td>
             <td><?php if ($admin['article_gl']==1){echo'<input type="checkbox" name="article_gl" checked="checked" value="1" />';}else {echo'<input name="article_gl" type="checkbox" value="2"/>';};?>
               文章管理</td>
             <td><?php if ($admin['add_article']==1){echo'<input type="checkbox" name="add_article" checked="checked" value="1" />';}else {echo'<input name="add_article" type="checkbox" value="2"/>';};?>
               添加文章</td>
           </tr>
           <tr>
             <td><?php if ($admin['hsz_gl']==1){echo'<input type="checkbox" name="hsz_gl" checked="checked" value="1" />';}else {echo'<input name="hsz_gl" type="checkbox" value="2"/>';};?>
               回收站</td>
             <td>&nbsp;</td>
             <td>&nbsp;</td>
             <td>&nbsp;</td>
           </tr>
        </table></td>
     </tr>
     <tr bgcolor="#DFEFFF">
       <td align="right" bgcolor="#FFFFFF">输入密码:</td>
       <td bgcolor="#FFFFFF"><input name="password1" size="50"value="" /></td>
     </tr>
     <tr bgcolor="#DFEFFF">
       <td align="right" bgcolor="#FFFFFF">确认密码:</td>
       <td bgcolor="#FFFFFF"><input name="password2" type="text" size="50" value="" /></td>
     </tr>
     <tr bgcolor="#DFEFFF">
       <td width="100" bgcolor="#FFFFFF">&nbsp;</td>
       <td  bgcolor="#FFFFFF"><input name="submit" type="submit" class="submit" value="修改用户" />&nbsp;&nbsp; <input type=button onclick="window.location.href='hait_admin.php'" class="submit"   value="&nbsp;&nbsp;取&nbsp;消&nbsp;&nbsp;" /></td>
     </tr>
 </table>
</form>

</div>
</body>
</html>
