<!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/admin_css.css" rel="stylesheet" type="text/css" />
</head>

<body>


<div id="one"  class="admin_ad_set">
 <?php 

 if ($action == 'ad') {

 	while ($List =  sql_return($query,'FetchRow')){
 		$ad_id = $List['ad_id'];
 		$ad_name = $List['ad_name'];
 		$ad_title = stripslashes(unserialize($List['ad_title']));
 		$ad_height = $List['ad_height'];
 		$ad_width = $List['ad_width'];
 		$ad_up_times = date('Y-m-d',$List['ad_up_times']);
 		$ad_e_times = date('Y-m-d',$List['ad_e_times']);
 		print <<<EOT
 		<form  method="POST" enctype="multipart/form-data" action="?action=m">
		<div>广告序号: $ad_id
 		<br>
		广告名称:<input name="ad_name" value="$ad_name"  type="text">
		<br>
		广告高度 :<input name="ad_height" value="$ad_height"  type="text"> ; 广告宽度: <input name="ad_width" value="$ad_width"  type="text">
		<br>
		更新时间 :$ad_up_times ; 结束时间: <input name="ad_e_times" value="$ad_e_times"  type="text">
		<br>

		</div>
		<div>广告代码: <textarea cols="60" rows="5" name="ad_title">$ad_title</textarea> 
		<input name="ad_id" value="$ad_id"  type="hidden">
		<input type="submit" value="修改">
 		</div>
 		 </form>
EOT;
}

}

 ?>


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