14 |
|
|
15 |
// fetch news |
// fetch news |
16 |
|
|
17 |
$sth = $dbh->prepare("select id,title from news where type='n' and visible order by date desc limit 5"); |
$sth = $dbh->prepare("select id,title from news where (type='n' or type='c' or type='r') and visible order by date desc limit 5"); |
18 |
$sth->execute(); |
$sth->execute(); |
19 |
while ($row=$sth->fetchrow_hash()) { |
while ($row=$sth->fetchrow_hash()) { |
20 |
$news[]=$row; |
$news[]=$row; |
52 |
} |
} |
53 |
if ($show) { |
if ($show) { |
54 |
$smarty->assign(array( |
$smarty->assign(array( |
55 |
|
"multi_page_show" => 1, |
56 |
"multi_page"=>$multi_page, |
"multi_page"=>$multi_page, |
57 |
"multi_page_current"=>($current+1), |
"multi_page_current"=>($current+1), |
58 |
"multi_page_max"=>$max, |
"multi_page_max"=>$max, |