--- inc/pgStanja.php 2001/10/04 14:59:35 1.7 +++ inc/pgStanja.php 2001/10/10 12:40:58 1.8 @@ -13,6 +13,7 @@ } if ($down_id) $dbh->dbh_do("UPDATE news SET ord = ord + 1 WHERE (news_id = $down_id)"); if ($up_id) $dbh->dbh_do("UPDATE news SET ord = ord - 1 WHERE (news_id = $up_id)"); + if ($flip_id) $dbh->dbh_do("UPDATE news SET prikazi = NOT prikazi WHERE (news_id = $flip_id)"); } $cat = "c"; $acat = "s"; if ($section_menu == "zensko") { $cat = "z"; $acat2 = "z"; } @@ -29,6 +30,19 @@ if ($ed && is_string($ed)) $tpl->assign("EDIT", $ed); else $top_edit = false; } + $arts = newsLoad(-1, $empty["category"], $empty["limit"], 0, $empty["npar"]); + $a2 = array(); + for ($i = 0; $i < count($arts); $i++) { + array_push($a2, array( + "cat" => $empty["category"], + "id" => $arts[$i]["id"], + "title" => MyEscape($arts[$i]["title"]), + "abs" => $offset ? true : false + )); + } + $tpl->assign("MENU2", array( + array("title" => "", "class" => "head", "pre" => "", "items" => $a2) + )); $arts = newsLoad(-1, $empty["category"], $empty["limit"] + 1, $empty["offset"], $empty["npar"]); $a2 = array(); $lm = count($arts); @@ -56,10 +70,10 @@ "titlepic_width" => $art["pic_w"], "titlepic_height" => $art["pic_h"], "text" => $art["text"], - "links" => GetLinks($art["read"] && $art["id"], - /* MyEscape($art["more"]) */ ((count($art["text"]) > 0 || strstr("?", $art["more"]) == 0) && $art["id"]) ? $art["more"] : "", + "links" => GetLinks((($art["read"] || $art["au_pic"] || $art["au_info"]) && $art["id"]) ? $art["read"] : "", + /* MyEscape($art["more"]) */ /* ((count($art["text"]) > 0 || strstr("?", $art["more"]) == 0) && $art["id"]) ? $art["more"] : "", */ "", MyEscape($art["more_title"]), $art["id"], $empty["category"], "top", - $isEdit, true, ($i > 0), ($i < count($arts) - 1)), + true, ($i > 0), ($i < count($arts) - 1), $art["show"]), "read" => $art["read"] || ($art["more"] && !strstr($art["more"], "?")) ? $art["read"] : "" )); }