13 |
} |
} |
14 |
if ($down_id) $dbh->dbh_do("UPDATE news SET ord = ord + 1 WHERE (news_id = $down_id)"); |
if ($down_id) $dbh->dbh_do("UPDATE news SET ord = ord + 1 WHERE (news_id = $down_id)"); |
15 |
if ($up_id) $dbh->dbh_do("UPDATE news SET ord = ord - 1 WHERE (news_id = $up_id)"); |
if ($up_id) $dbh->dbh_do("UPDATE news SET ord = ord - 1 WHERE (news_id = $up_id)"); |
16 |
|
if ($flip_id) $dbh->dbh_do("UPDATE news SET prikazi = NOT prikazi WHERE (news_id = $flip_id)"); |
17 |
} |
} |
18 |
$cat = "c"; $acat = "s"; |
$cat = "c"; $acat = "s"; |
19 |
if ($section_menu == "zensko") { $cat = "z"; $acat2 = "z"; } |
if ($section_menu == "zensko") { $cat = "z"; $acat2 = "z"; } |
30 |
if ($ed && is_string($ed)) $tpl->assign("EDIT", $ed); |
if ($ed && is_string($ed)) $tpl->assign("EDIT", $ed); |
31 |
else $top_edit = false; |
else $top_edit = false; |
32 |
} |
} |
33 |
|
$arts = newsLoad(-1, $empty["category"], $empty["limit"], 0, $empty["npar"]); |
34 |
|
$a2 = array(); |
35 |
|
for ($i = 0; $i < count($arts); $i++) { |
36 |
|
array_push($a2, array( |
37 |
|
"cat" => $empty["category"], |
38 |
|
"id" => $arts[$i]["id"], |
39 |
|
"title" => MyEscape($arts[$i]["title"]), |
40 |
|
"abs" => $offset ? true : false |
41 |
|
)); |
42 |
|
} |
43 |
|
$tpl->assign("MENU2", array( |
44 |
|
array("title" => "", "class" => "head", "pre" => "", "items" => $a2) |
45 |
|
)); |
46 |
$arts = newsLoad(-1, $empty["category"], $empty["limit"] + 1, $empty["offset"], $empty["npar"]); |
$arts = newsLoad(-1, $empty["category"], $empty["limit"] + 1, $empty["offset"], $empty["npar"]); |
47 |
$a2 = array(); |
$a2 = array(); |
48 |
$lm = count($arts); |
$lm = count($arts); |
70 |
"titlepic_width" => $art["pic_w"], |
"titlepic_width" => $art["pic_w"], |
71 |
"titlepic_height" => $art["pic_h"], |
"titlepic_height" => $art["pic_h"], |
72 |
"text" => $art["text"], |
"text" => $art["text"], |
73 |
"links" => GetLinks($art["read"] && $art["id"], |
"links" => GetLinks((($art["read"] || $art["au_pic"] || $art["au_info"]) && $art["id"]) ? $art["read"] : "", |
74 |
/* MyEscape($art["more"]) */ ((count($art["text"]) > 0 || strstr("?", $art["more"]) == 0) && $art["id"]) ? $art["more"] : "", |
/* MyEscape($art["more"]) */ /* ((count($art["text"]) > 0 || strstr("?", $art["more"]) == 0) && $art["id"]) ? $art["more"] : "", */ "", |
75 |
MyEscape($art["more_title"]), $art["id"], $empty["category"], "top", |
MyEscape($art["more_title"]), $art["id"], $empty["category"], "top", |
76 |
$isEdit, true, ($i > 0), ($i < count($arts) - 1)), |
true, ($i > 0), ($i < count($arts) - 1), $art["show"]), |
77 |
"read" => $art["read"] || ($art["more"] && !strstr($art["more"], "?")) ? $art["read"] : "" |
"read" => $art["read"] || ($art["more"] && !strstr($art["more"], "?")) ? $art["read"] : "" |
78 |
)); |
)); |
79 |
} |
} |