2 |
|
|
3 |
include("news_sif.inc"); |
include("news_sif.inc"); |
4 |
|
|
5 |
$sql_where="where visible is true"; |
$sql_where="where $visible_is_true"; |
6 |
|
|
7 |
if (file_exists(find_html_file("more",$more))) { |
if (file_exists(find_html_file("more",$more))) { |
8 |
|
|
23 |
$title.=" : Dogotki"; |
$title.=" : Dogotki"; |
24 |
} elseif (strlen($type) == 3) { |
} elseif (strlen($type) == 3) { |
25 |
$sql_where .= " and type='$type'"; |
$sql_where .= " and type='$type'"; |
26 |
|
if (substr($type,0,2) == "mp" || $type=="mcx" || $type=="mix") $title.=" : Publikacije"; |
27 |
|
if ($type=="mp_") { |
28 |
|
$title.=" : PLIVA Magazin"; |
29 |
|
$smarty->assign("mtext","PLIVA Magazin"); |
30 |
|
} elseif ($type=="mpx") { |
31 |
|
$title.=" : Pharna Info"; |
32 |
|
$smarty->assign("mtext","Pharma Info"); |
33 |
|
} elseif ($type=="mcx") { |
34 |
|
$title.=" : Medicus"; |
35 |
|
$smarty->assign("mtext","Medicus"); |
36 |
|
} elseif ($type=="mix") { |
37 |
|
$title.=" : Medinfo bulletin"; |
38 |
|
$smarty->assign("mtext","Medinfo bulletin"); |
39 |
|
} |
40 |
} |
} |
41 |
} |
} |
42 |
|
|
104 |
warning=>$warning |
warning=>$warning |
105 |
)); |
)); |
106 |
|
|
|
$main=$smarty->fetch("novosti.tpl"); |
|
107 |
|
|
108 |
if (isset($id) && find_html_file("more",$data[0][more])) { |
if (isset($id) && find_html_file("more",$data[0][more])) { |
109 |
$main=join('',file(find_html_file("more",$data[0][more]))); |
$main=join('',file(find_html_file("more",$data[0][more]))); |
110 |
|
} else { |
111 |
|
if (! isset($p)) $p="novosti"; |
112 |
|
$logo="p/${p}_".$data[0][type].".jpg"; |
113 |
|
if (file_exists($logo)) { |
114 |
|
$smarty->assign("logo",$logo); |
115 |
|
} |
116 |
|
$main=$smarty->fetch("$p.tpl"); |
117 |
} |
} |
118 |
|
|
119 |
|
|
121 |
|
|
122 |
$smarty->assign( array(back_url=>$back_url) ); |
$smarty->assign( array(back_url=>$back_url) ); |
123 |
|
|
124 |
|
|
125 |
?> |
?> |