21 |
} elseif ($type == "e") { |
} elseif ($type == "e") { |
22 |
$sql_where .= " and substr(type,1,1)='e'"; |
$sql_where .= " and substr(type,1,1)='e'"; |
23 |
$title.=" : Dogotki"; |
$title.=" : Dogotki"; |
24 |
|
} elseif (strlen($type) == 3) { |
25 |
|
$sql_where .= " and type='$type'"; |
26 |
} |
} |
27 |
} |
} |
28 |
|
|
90 |
warning=>$warning |
warning=>$warning |
91 |
)); |
)); |
92 |
|
|
|
$main=$smarty->fetch("novosti.tpl"); |
|
93 |
|
|
94 |
if (isset($id) && find_html_file("more",$data[0][more])) { |
if (isset($id) && find_html_file("more",$data[0][more])) { |
95 |
$main=join('',file(find_html_file("more",$data[0][more]))); |
$main=join('',file(find_html_file("more",$data[0][more]))); |
96 |
|
} else { |
97 |
|
if (! isset($p)) $p="novosti"; |
98 |
|
$logo="p/${p}_".$data[0][type].".jpg"; |
99 |
|
if (file_exists($logo)) { |
100 |
|
$smarty->assign("logo",$logo); |
101 |
|
} |
102 |
|
$main=$smarty->fetch("$p.tpl"); |
103 |
} |
} |
104 |
|
|
105 |
|
|
107 |
|
|
108 |
$smarty->assign( array(back_url=>$back_url) ); |
$smarty->assign( array(back_url=>$back_url) ); |
109 |
|
|
110 |
|
|
111 |
?> |
?> |