|
|
|
@ -11,6 +11,8 @@
|
|
|
|
|
function render_category($link, $cat_id) {
|
|
|
|
|
$owner_uid = $_SESSION["uid"];
|
|
|
|
|
|
|
|
|
|
if ($cat_id >= 0) {
|
|
|
|
|
|
|
|
|
|
if ($cat_id != 0) {
|
|
|
|
|
$cat_query = "cat_id = '$cat_id'";
|
|
|
|
|
} else {
|
|
|
|
@ -36,13 +38,13 @@
|
|
|
|
|
print "<ul id='cat-$cat_id' title='$title' myBackLabel='Feeds'
|
|
|
|
|
myBackHref='index.php' myBackTarget='_self'>";
|
|
|
|
|
|
|
|
|
|
// print "<li><a href='#cat-actions'>".__('Actions...')."</a></li>";
|
|
|
|
|
// print "<li><a href='#cat-actions'>".__('Actions...')."</a></li>";
|
|
|
|
|
|
|
|
|
|
while ($line = db_fetch_assoc($result)) {
|
|
|
|
|
$id = $line["id"];
|
|
|
|
|
$unread = $line["unread"];
|
|
|
|
|
|
|
|
|
|
// $unread = rand(0, 100);
|
|
|
|
|
// $unread = rand(0, 100);
|
|
|
|
|
|
|
|
|
|
if ($unread > 0) {
|
|
|
|
|
$line["title"] = $line["title"] . " ($unread)";
|
|
|
|
@ -63,8 +65,10 @@
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
print "</ul>";
|
|
|
|
|
} else if ($cat_id == -1) {
|
|
|
|
|
|
|
|
|
|
/* print "<ul id='cat--1' title='$title'>";
|
|
|
|
|
print "<ul id='cat--1' title='$title' myBackLabel='Feeds'
|
|
|
|
|
myBackHref='index.php' myBackTarget='_self'>";
|
|
|
|
|
|
|
|
|
|
foreach (array(-4, -1,-2,-3) as $id) {
|
|
|
|
|
$title = getFeedTitle($link, $id);
|
|
|
|
@ -77,11 +81,12 @@
|
|
|
|
|
$class = 'oldItem';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
print "<li class='$class'><a href='feed.php?id=$id'>$title</a></li>";
|
|
|
|
|
print "<li class='$class'>
|
|
|
|
|
<a href='feed.php?id=$id&cat_id=-1'>$title</a></li>";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
print "</ul>"; */
|
|
|
|
|
|
|
|
|
|
print "</ul>";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function render_categories_list($link) {
|
|
|
|
|