Файл: public_html/element_include/element_history_user_true.php
Строк: 42
<?php
echo '<div class="nfl p5 mb5 mlra small">';
echo '<div class="yellow1 mb5 cntr"><a href="/user">Назад</a></div>';
$id = $user['lost_id'];
$count_h = mysql_result(mysql_query("SELECT COUNT(`lost_id`) FROM `element_history_user` WHERE `lost_user` = '$id'"), 0);
if ($count_h > 0) {
require_once './element_function/element_function_pagination.php';
$page = (isset($_GET['page']) AND is_numeric($_GET['page'])) ? (int)$_GET['page'] : 1;
$pagination = pagination(15, $page, $count_h);
$query = mysql_query("SELECT `lost_text` FROM `element_history_user` WHERE `lost_user` = '$id' ORDER BY `lost_time` DESC LIMIT $pagination[start], $pagination[num]");
while ($myrrow = mysql_fetch_array($query)) {
echo $myrrow['lost_text'];
}
echo pagination_echo($pagination['page'],$pagination['total'],'/history/?history&page=');
} else echo '<div class="cntr mb5 mt5 white">Пусто</div>';
//echo '<div class="yellow1 mt5 cntr"><a href="/element/admin/user?id='.$id.'">В управление персонажом</a></div>';
echo '</div>';
// require_once './element_include/element_foot_user_true.php';
//exit;
?>