<? include('checkcookie.php'); ?>
<h3>Просмотр и редактирование ссылок</h3>
<br>

<?
if (isset($_POST["id"]))
{
	$id=$_POST["id"];
	$plan=$_POST["plan"];
	$members=$_POST["members"];
	$title=$_POST["title"];
	$time=$_POST["time"];
	$link=$_POST["link"];

}

?>
<table width='100%' border='0' cellpadding='0' cellspacing='0'>
<tr>
<th width=50 align=center>№</th>
<th width=100 align=center>URL</th>
<th>Описание</th>
<th width=30  align=center>Заказано</th>
<th width=30  align=center>Просмотрено</th>
<th width=30  align=center>время</th>
</tr>
<?
$res = mysql_query("SELECT * FROM tb_adsmail ORDER BY id ASC");
while ($row = mysql_fetch_array($res)) { 

echo "
<tr>
<td align=center width=50>". $row["id"] ."</td>
<td align=center width=50><a href=\"". $row["link"] ."\" target=\"_blank\">". $row["link"] ."</a></td>
<td>". $row["title"] ."</td>
<td align=center>". $row["plan"] ."</td>
<td align=center>". $row["members"] ."</td>
<td align=center>". $row["time"] ."</td>
";
?>

</tr>
<?
}
?>
</table>