<?php
include("admin.php");
$rst=mysql_query("SELECT * FROM `".$ad."sjadmin` WHERE `name` LIKE '{$_SESSION['name']}'");
$rwt=mysql_fetch_assoc($rst);
$id=$_GET['id'];

if($_GET['id']){
$rs=mysql_query("SELECT * FROM `".$ad."user` WHERE `id` ={$id}");
$rw=mysql_fetch_assoc($rs);
}else
die("<script language=javascript>  
alert( \"对不起，找不到你要的信息\"  );
location.href = \"lisk_view.php\"
</script>");
if($_POST['username']&&$_POST['xname']){
mysql_query("UPDATE `".$ad."user` SET `username` = '{$_POST['username']}',
`xname` = '{$_POST['xname']}',
`shouji` = '{$_POST['shouji']}',
`email` = '{$_POST['email']}',
`qq` = '{$_POST['qq']}',
`shengfen` = '{$_POST['shengfen']}',
`chengshi` = '{$_POST['chengshi']}' WHERE `".$ad."user`.`id` ='{$_POST['id']}' LIMIT 1 ;");
echo "<script language=javascript>  
alert( \"恭喜你，会员信息成功\"  );
location.href = \"name_show.php\"
</script>";
}
?>
<html>
<head>
<title> 欢迎光临手机靓号发布管理系统-管理面版 </title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="images/Css.css" rel="stylesheet" type="text/css" />
</head>
<body  >
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr> 
    <td height="30" background="images/Mypic_top15.gif"><table width="96%" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr> 
          <td><img src="images/Mypic_top14.gif" width="14" height="14" align="absmiddle"> 
            欢迎光临手机靓号发布管理系统</td>
        </tr>
      </table></td>
  </tr>
  <tr> 
    <td><table width="100%" border="0" cellspacing="4" cellpadding="0">
        <tr> 
          <td><table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#9FD74E">
              <tr> 
                <td height="26" background="images/Mypic_top12.gif"> <table width="96%" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr> 
                      <td><img src="images/Mypic_top13.gif" width="18" height="9" align="absmiddle"> 
                        修改友情链接 </td>
                    </tr>
                  </table></td>
              </tr>
              <tr> 
                <td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="4" cellpadding="0">
                    <tr> 
                      <td><table width="100%" border="0" align="center" cellpadding="4" cellspacing="1" bgcolor="#EBEBEB" class="tableoutline">
                          <form method="post" name="adyq" action="" onSubmit="return checklogin()">
                            <tr bgcolor="#F5F5F5" id="cat"> 
                              <td colspan="2" class="tbhead"> <b>友情链接修改：</b> <input name="id" type="hidden" id="id" value="<?=$rw['id']?>"></td>
                            </tr>
                            <tr nowrap bgcolor="#FFFFFF" class="firstalt"> 
                              <td width="20%" align="right">帐号名称：</td>
                              <td width="80%"> 
                                <input name="username"  type="text" id="username" value="<?=$rw['username']?>" size="35">
                              </td>
                            </tr>
							 <tr nowrap bgcolor="#FFFFFF" class="firstalt"> 
                              <td width="20%" align="right">真实姓名：</td>
                              <td width="80%"> 
                                <input name="xname"  type="text" id="xname" value="<?=$rw['xname']?>" size="35">
                              </td>
                            </tr>
                            <tr nowrap bgcolor="#FFFFFF" class="firstalt"> 
                              <td width="20%" align="right">所在省份：</td>
                            <td width="80%"> 
                                <input name="shengfen"  type="text" id="shengfen" value="<?=$rw['shengfen']?>" size="35" >
                              </td>
                            </tr>
							                            <tr nowrap bgcolor="#FFFFFF" class="firstalt"> 
                              <td width="20%" align="right">所在城市：</td>
                            <td width="80%"> 
                                <input name="chengshi"  type="text" id="chengshi" value="<?=$rw['chengshi']?>" size="35" >
                              </td>
                            </tr>
							                            <tr nowrap bgcolor="#FFFFFF" class="firstalt"> 
                              <td width="20%" align="right">会员email：</td>
                            <td width="80%"> 
                                <input name="email"  type="text" id="email" value="<?=$rw['email']?>" size="35" >
                              </td>
                            </tr>
							                            <tr nowrap bgcolor="#FFFFFF" class="firstalt"> 
                              <td width="20%" align="right">会员QQ：</td>
                            <td width="80%"> 
                                <input name="qq"  type="text" id="qq" value="<?=$rw['qq']?>" size="35" >
                              </td>
                            </tr>
                            <tr nowrap bgcolor="#FFFFFF" class="secondalt">
                              <td align="right">会员手机：</td>
                              <td><input name="shouji"  type="text" id="shouji" value="<?=$rw['shouji']?>" size="35"></td>
                            </tr>
                            <tr nowrap bgcolor="#FFFFFF" class="firstalt"> 
                              <td width="20%" align="right">&nbsp;</td>
                              <td> 
                            
                              </td>
                            </tr>
                            <tr bgcolor="#FFFFFF" class="tbhead"> 
                              <td colspan="2" align="center"> 
                                <input class="bginput" type="submit" name="submit" value=" 确定添加 " > 
                                <input class="bginput" type="reset" name="Input" value=" 重新填写 " > 
                              </td>
                            </tr>
                          </form>
                        </table></td>
                    </tr>
                  </table></td>
              </tr>
            </table></td>
        </tr>
      </table></td>
  </tr>
</table>
<br>
<center>Powered by: <a href="http://www.126php.com" target="_blank">www.126php.com</a> 程序开发:*!!杨公子 联系QQ:61709225</center>
</body>
</html>