--- sections/novosti.inc 2001/11/07 14:24:02 1.7 +++ sections/novosti.inc 2001/11/20 08:48:14 1.8 @@ -4,6 +4,10 @@ $sql_where="where $visible_is_true"; +$smarty->assign("m_session","&m=o_nas&"); +$smarty->assign("m_session_urlend","&m=o_nas&"); +$smarty->assign("m_form_session",''); + if (file_exists(find_html_file("more",$more))) { $main=join('',file(find_html_file("more",$more))); @@ -50,11 +54,11 @@ if (isset($days)) { if ($days != 0) { $sql_where.=" and date(now())-date(date) > 0 and date(now())-date(date) < $days"; - $title.=" : News in last $days days"; + $title.=" : Pregled novic zadnjega $days dni"; } $smarty->assign("days",$days); $smarty->assign("last_days",array(14,30,160,240,365)); - $smarty->assign("last_desc",array("two weeks","one month","four months","six months","one year")); + $smarty->assign("last_desc",array("zadnjih dveh tednov","one month","four months","six months","one year")); } $num_selected=0; @@ -66,6 +70,7 @@ $sth = $dbh->prepare("$sql"); $sth->execute(); while ($row=$sth->fetchrow_hash()) { + if ($row[pdf]) $row[url]="blob/".$row[pdf]; $data[]=$row; $num_selected++; }