Размер файла: 4.54Kb
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head>
<title>LinkExchanger ADMIN AREA</title>
</head>
<?
error_reporting(0);
include "../config.php";
include "menu.php";
include "sort.php";
echo "<body bgcolor=$bgcolor>";
$open = "[";
$close = "]";
$file = file("../base.dat");
$all = count($file);
if(empty($_GET['page'])) {$_GET['page'] = 0;}
$begin = $_GET['page']*$onpageadmin;
$end = $begin + $onpageadmin;
$pages = $all / $onpageadmin;
// Постраничный вывод базы
echo "<center><table cellpadding=3 width=500 border=0>\n";
echo "<tr><td colspan=10><font face=$title_face size=$title_size color=$title_color><b>Проверка, редактирование, удаление ссылок</b></font><hr size=1></td></tr>";
echo "<tr><td align=left colspan=9><font face=$font_face color=$font_color size=$font_size>Ссылок: $all || Страницы: ";
for ($p=0;$p<$pages;$p++) { // генерируем номера страниц
$pg = $p+1;
if($_GET['page']==$p) {
echo $open.$pg.$close;
} else {
echo $open."<a href=$_SERVER[PHP_SELF]?page=".$p."&sort=$_GET[sort]&column=$_GET[column]>".$pg."</a>".$close;
}
}
echo "</font><hr size=1></td></tr>";
echo "<tr><td align=center valign=top><font face=$font_face color=$font_color size=$font_size><b>Nick<b/><br><a href=$_SERVER[PHP_SELF]?sort=asc&column=nick><img src=images/up.gif width=10 height=10 border=0></a> <a href=$_SERVER[PHP_SELF]?sort=desc&column=nick><img src=images/down.gif width=10 height=10 border=0></a></font></td>";
echo "<td align=center valign=top><font face=$font_face color=$font_color size=$font_size><b>Кнопка<b/></font></td>";
echo "<td align=center valign=top><font face=$font_face color=$font_color size=$font_size><b>Категория</b><br><a href=$_SERVER[PHP_SELF]?sort=asc&column=category><img src=images/up.gif width=10 height=10 border=0></a> <a href=$_SERVER[PHP_SELF]?sort=desc&column=category><img src=images/down.gif width=10 height=10 border=0></a></font></td>";
echo "<td nowrap align=center valign=top><font face=$font_face color=$font_color size=$font_size><b>Проверена</b><br><a href=$_SERVER[PHP_SELF]?sort=asc&column=check_date><img src=images/up.gif width=10 height=10 border=0></a> <a href=$_SERVER[PHP_SELF]?sort=desc&column=check_date><img src=images/down.gif width=10 height=10 border=0></a></font></td>";
echo "<td align=center valign=top><font face=$font_face color=$font_color size=$font_size><b>Результат</b><br><a href=$_SERVER[PHP_SELF]?sort=asc&column=check_result><img src=images/up.gif width=10 height=10 border=0></a> <a href=$_SERVER[PHP_SELF]?sort=desc&column=check_result><img src=images/down.gif width=10 height=10 border=0></a></font></td>";
echo "<td colspan=4 align=center valign=top><font face=$font_face color=$font_color size=$font_size><b>Действия<b/></font></td></tr>";
echo "<tr><td colspan=9 align=center><hr size=1><form action=multicheck.php method=POST></td></tr>\n";
for ($i=$begin;$i<$end;$i++) {
if ($file[$i]) {$record = explode("|", $file[$i]);
if ($record[8] == NO) {
$ff=$wrn_face;
$fc=$wrn_color;
$fs=$wrn_size;
} else {
$ff=$font_face;
$fc=$font_color;
$fs=$font_size;
}
echo "<tr><td align=left valign=top><font face=$ff color=$fc size=$fs>$record[1]</font></td>";
echo "<td align=center valign=top><font face=$font_face color=$font_color size=$font_size>$record[6]</font></td>";
echo "<td align=left valign=top><font face=$font_face color=$font_color size=$font_size>$record[4]</font></td>";
echo "<td align=center valign=top><font face=$ff color=$fc size=$fs>$record[11]</font></td>";
echo "<td align=center valign=top><font face=$ff color=$fc size=$fs>$record[8]</font></td>";
echo "<td align=center valign=top><font face=$font_face color=$font_color size=$font_size><a href=multicheck.php?id=$record[0]>Check</a></font></td>";
echo "<td align=center valign=top><font face=$font_face color=$font_color size=$font_size><a href=$record[7] target=_blank>View</a></font></td>";
echo "<td align=center valign=top><font face=$font_face color=$font_color size=$font_size><a href=edit.php?id=$record[0]>Edit</a></font></td>";
echo "<td align=center valign=top><font face=$font_face color=$font_color size=$font_size><a href=delete.php?id=$record[0]>Delete</a></font></td></tr>";
echo "<tr><td align=left valign=top colspan=9><font face=$font_face color=$font_color size=$font_size><i>$record[5]</i></font></td></tr>";
echo "<tr><td colspan=9><hr size=1></td></tr>";
}
}
echo "<tr><td colspan=9><center><table>";
echo "<tr><td colspan=2></form><hr size=1></td></tr>";
echo "</table></center></td></tr>";
echo "</table></center>\n";
// Постраничный вывод базы
?>
</body>
</html>