Файл: gazeta/zakl.php
Строк: 50
<?
include_once '../sys/inc/start.php';
include_once '../sys/inc/compress.php';
include_once '../sys/inc/sess.php';
include_once '../sys/inc/home.php';
include_once '../sys/inc/settings.php';
include_once '../sys/inc/db_connect.php';
include_once '../sys/inc/ipua.php';
include_once '../sys/inc/fnc.php';
include_once '../sys/inc/user.php';
$set['title']='Мои закладки';
include_once '../sys/inc/thead.php';
title();
aut();
$k_post=mysql_result(mysql_query("SELECT COUNT(*) FROM `gazeta_zakl` WHERE `id_user` = '$user[id]'"), 0);
$k_page=k_page($k_post,$set['p_str']);
$page=page($k_page);
$start=$set['p_str']*$page-$set['p_str'];
$q = mysql_query("SELECT * FROM `gazeta_zakl` WHERE `id_user` = '$user[id]' ORDER BY `id_gazeta` DESC LIMIT $start, $set[p_str]");
echo "<table class='post'>n";
if ($k_post==0)
{
echo " <div class='err'>n";
echo "У вас нет закладокn";
echo " </div>n";
}
while ($res = mysql_fetch_array($q))
{
$zakl=mysql_fetch_assoc(mysql_query("SELECT * FROM `gazeta` where `id` = '$res[id_gazeta]' "));
echo '<div class="nav1">';
echo '<img src="img/art.png"><a href="article.php?id='.$zakl['id'].'"> '.$zakl['name'].'</a> '.vremja($zakl['time']).'<br/>';
echo '</div>';
}
echo "</table>n";
if ($k_page>1)str("?",$k_page,$page);
echo "<div class='nav1'>n";
echo "<a href='/gazeta'> Назад</a><br />n";
echo "</div>n";
include_once '../sys/inc/tfoot.php';
?>