<!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_channel">
<table align="center" width="100%" border="1">

 <?php 

 if ($action == 'channel') {
 	echo '<a href="?action=add">
		 <b>增加主频道</b>
		 </a> 
		 <br>
		 '.$channel_str;
 }

else {
	print <<<EOT
	<tr>
<td width="50">序号</td>
<td width="80">频道</td>
<td width="*">标题名称</td>
<td width="80">发布者</td>
<td width="80">发布时间</td>
<td width="30"></td>
</tr>
EOT;
	while ($List =  sql_return($query,'FetchRow')){
 		$content_id = $List['content_id'];
 		$u_name = $List['u_name'];
 		$content_channel = $List['BC_channel'];
 		$content_cg = $List['content_cg'];
 		$content_title = $List['content_title'];
 		$content_uptimes = $List['content_uptimes'];
 		$content_uptimes = date('Y-m-d',$List['content_uptimes']);
 		print <<<EOT
 		<form  method="POST" enctype="multipart/form-data" action="?action=m">
 		<tr>
		<td>$content_id</td>
		<td>$content_channel</td>
		<td>$content_title</td>
		<td>$u_name</td>
		<td>$content_uptimes</td>
		<td><a href="?action=del&id=$content_id">删除</td>
		</tr>

 		 </form>
EOT;
}
print <<<EOT
<td colspan="5">$page_foot</td>
EOT;
}
 ?>
 </table>
 </div>
 </body>
</html>
<table align="center" width="100%">
<tr>
<td colspan="5"></td>
</tr>
</table>