120 |
$tpl->assign("date", $art["date"] ? strftime("%d.%m.%Y.", strtotime($art["date"])) : ""); |
$tpl->assign("date", $art["date"] ? strftime("%d.%m.%Y.", strtotime($art["date"])) : ""); |
121 |
$tpl->assign("AUTHOR", GetAuthor($art["au_pic"], $art["au_alt"], |
$tpl->assign("AUTHOR", GetAuthor($art["au_pic"], $art["au_alt"], |
122 |
$art["au_info"], $art["au_w"], $art["au_h"], $art["au_cv"])); |
$art["au_info"], $art["au_w"], $art["au_h"], $art["au_cv"])); |
123 |
|
$some_title = false; |
124 |
for ($i = 0; $i < count($art["text"]); $i++) { |
for ($i = 0; $i < count($art["text"]); $i++) { |
125 |
|
if ($art["text"][$i]["title"]) $some_title = true; |
126 |
if ($art["text"][$i]["text"]) { |
if ($art["text"][$i]["text"]) { |
127 |
$art["text"][$i]["text"] = ParseNewline(MyEscape( |
$art["text"][$i]["text"] = ParseNewline(MyEscape( |
128 |
convert_html($art["text"][$i]["text"]), false), true); |
convert_html($art["text"][$i]["text"]), false), true); |
142 |
$tpl->assign("acat", $acat); |
$tpl->assign("acat", $acat); |
143 |
$tpl->assign("acat2", $acat2); |
$tpl->assign("acat2", $acat2); |
144 |
$tpl->assign("pgfs", count($art["text"])); |
$tpl->assign("pgfs", count($art["text"])); |
145 |
|
$tpl->assign("some_title", $some_title); |
146 |
if ($art["id"]) { |
if ($art["id"]) { |
147 |
$sql = "SELECT news.news_id, news.category, news.title, news.lead, news.title_pic, news.title_alt FROM news, related WHERE (news.news_id = related.rel_id) AND (related.news_id = ".$art["id"].") AND (prikazi) ORDER BY d_orig DESC"; |
$sql = "SELECT news.news_id, news.category, news.title, news.lead, news.title_pic, news.title_alt FROM news, related WHERE (news.news_id = related.rel_id) AND (related.news_id = ".$art["id"].") AND (prikazi) ORDER BY d_orig DESC"; |
148 |
$sth = $dbh->prepare($sql); |
$sth = $dbh->prepare($sql); |