<?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);
if($_POST['id']){
mysql_query("UPDATE `".$ad."user` SET `tuijian` = '{$_POST['tuijian']}',
`dpname` = '{$_POST['dpname']}',
`dpsk` = '{$_POST['dpsk']}' WHERE `".$ad."user`.`id` ='{$_POST['id']}' LIMIT 1 ;");
echo "<script language=javascript>  
alert( \"恭喜你，店铺修改成功\"  );
location.href = \"dianpu_view.php\"
</script>";
}
}else
die("对不起，找不到你要的信息");
?>
<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="ad1" 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="dpname"  type="text" id="dpname" value="<?=$rw['dpname']?>" size="35" maxlength="50" valid="required">
                              </td>
							    <tr nowrap bgcolor="#FFFFFF" class="secondalt"> 
                              <td width="20%" align="right">是否推荐：</td>
                              <td> 
                                  <select name="tuijian" id="tuijian">
                                  <option value="<?=$rw['tuijian']?>">请选择</option>
                                  <option value="未推荐">未推荐</option>
                                  <option value="推荐">已推荐</option>
                                </select>
                              </td>
                            </tr>
							  <tr nowrap bgcolor="#FFFFFF" class="secondalt"> 
                              <td width="20%" align="right">是否审核：</td>
                              <td> 
                                <select name="dpsk" id="dpsk">
                                  <option value="<?=$rw['dpsk']?>">请选择</option>
                                  <option value="2">未审核</option>
                                  <option value="1">已审核</option>
								  <option value="3">等待审核</option>
                                </select>
                              </td>
                            </tr>
                            <tr nowrap bgcolor="#FFFFFF" class="firstalt"> 
                              <td width="20%" align="right">&nbsp;</td>
                              <td> 
                                <span id="errMsg_admin[pwd2]" class="errmsg"></span> 
                              </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>