Просмотр поста

.
Fenix_61
define('_IN_JOHNCMS', 1);
$rootpath = '../';
require_once ('../incfiles/core.php');
require_once ('../incfiles/head.php');
$str=5;
$res=mysql_query("SELECT * FROM `club` LIMIT $start , $str");
$total =
mysql_result(mysql_query("SELECT COUNT(msg) FROM `table`"),0);
if ((!$res) && (empty($res))) {
echo'<p align="center"><div class="rmenu">Сообщений нет</div></p><br />';
}else{
echo '<div class="phdr"><a name="up" href="#down"><img src="../theme/' . $set_user['skin'] . '/images/down.png" alt="Вниз" width="20" height="10" border="0"/></a>  <b> Админ-клуб</b></div>';
if ($total > $str) echo '<div class="topmenu">' . functions::display_pagination('index.php?', $start, $total, $str) . '</div>';
$i=0;
while ($ar=mysql_fetch_array($res)){
echo is_integer($i / 2) ? '<div class="list1">' : '<div class="list2">';
echo $ar['msg'];
echo'</div>';
++$i;
}
if ($total > $str) echo '<div class="topmenu">' . functions::display_pagination('index.php?', $start, $total, $str) . '</div>';
echo '<div class="phdr"><a name="down" href="#up"><img src="../theme/' . $set_user['skin'] . '/images/up.png" alt="Вверх" width="20" height="10" border="0"/></a>  Всего: ' . $total . '</div>';
}
require_once ('../incfiles/end.php');