Koenig (13.10.2011/12:51)
Fublin, А ядро и прочее подключено?
Вот вся страница. И напрямую если смотреть, то всё работает. Голованоги на месте там.
<?php
define('_IN_JOHNCMS', 1);
$headmod = "test";
$textl = 'text';
$rootpath = "../";
require('../incfiles/core.php');
require('../incfiles/head.php');
$sql = "SELECT * FROM lib WHERE avtor ='" . mysql_real_escape_string($_GET['avtor']) . "' and moder = 1";
$total = mysql_num_rows(mysql_query($sql));
$str = $sql . " LIMIT $start, $kmess";
while($row = mysql_fetch_array(mysql_query($str)))
{
echo '<div class="list1"><a href="../library/index.php?id=' .$row['id']. '">' . $row['name'] . '</a></div>';
}
echo '<div class="phdr">' . $lng['total'] . ': ' . $total . '</div>';
if ($total > $kmess) {
echo '<div class="topmenu">' .
functions::display_pagination('text.php?id=' . $id . '&', $start, $total, $kmess) . '</div>' .
'<p><form action="text.php" method="get"><input type="hidden" name="id" value="' . $id . '"/><input type="text" name="page" size="2"/><input type="submit" value="' . $lng['to_page'] . ' >>"/></form></p>';
}
require_once('../incfiles/end.php');