<?php require_once 'yanzheng.php';?>
<!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>管理中心</title>
<link href="css/css.css" rel="stylesheet" type="text/css" />
</head>
<body>

<?php require_once 'head.php';?>
<div class="box">


<table width="100%" height="30" border="0" cellpadding="10" cellspacing="0" class="bodernav">
  <tr>
    <td width="122" style="padding-left:10px;">网站配置</td>  
  </tr>
</table>
<?php 
$row=query("select * from seo order by id desc");
?>
<form action="" method="post"  enctype="multipart/form-data" >

<input name="dui" id="dui" type="hidden" />

		 <table width="100%" height="195" border="0" cellpadding="10" cellspacing="0" class="biaoge" >
		 
		
		   <tr>
			<td width="10%" height="30">网站标题</td>
			<td width="90%"><input name="sitename" type="text" value="<?=$row[sitename]?>" size="180"  /></td>
		  </tr>
		  <tr>
			<td height="30">网站关键词</td>
			<td><input name="keywords" type="text" value="<?=$row[keywords]?>" size="180" /></td>
		  </tr>
		  <tr>
			<td height="30">网站描述</td>
			<td> <textarea name="description" style="width:80%; height:60px;"><?=$row[description]?></textarea></td>
		  </tr>
		  
		  <tr>
			<td height="30">网站底部版权信息</td>
			<td><textarea name="content" style="height:100px; width:80%;"><?=$row[content]?></textarea></td>
		  </tr>
		  
	    	
		 
		   <tr>
			<td height="30"></td>
			<td><input name="submit" type="submit" class="reganniu" value="修改" /></td>
		   </tr>
		</table>

</form>
<?php
if(isset($_POST['submit'])){


       
		 $sitename=$_POST['sitename'];
		 $keywords=$_POST['keywords'];
		 $description=$_POST['description'];
		 $content=$_POST['content'];
		 $qq=$_POST['qq'];
	     $logo=$_POST['logo'];
		 
		 $ok="update seo set sitename='$sitename',keywords='$keywords',description='$description',content='$content',qq='$qq',logo='$logo'  where id='1'";
		 mysql_query($ok);
		msg('修改成功','seo.php');
}
?>


</div>

<?php require_once 'foot.php';?>

</body>
</html>