Parent Directory | Revision Log | Patch
revision 1.4 by dpavlin, Fri Jun 29 12:55:11 2001 UTC | revision 1.5 by dpavlin, Fri Jun 29 14:12:07 2001 UTC | |
---|---|---|
# | Line 4 global $smarty,$dbh; | Line 4 global $smarty,$dbh; |
4 | ||
5 | // fetch menu | // fetch menu |
6 | ||
7 | $sth = $dbh->prepare("select item,url,file,w,h from menu where section='$section' and visible order by num"); | if (!isset($m)) { |
8 | $m=$section; | |
9 | } else { | |
10 | $smarty->assign("m_session","m=$m&"); | |
11 | } | |
12 | ||
13 | $sth = $dbh->prepare("select item,url,file,w,h from menu where section='$m' and visible order by num"); | |
14 | $sth->execute(); | $sth->execute(); |
15 | while ($row=$sth->fetchrow_hash()) { | while ($row=$sth->fetchrow_hash()) { |
16 | $menu[]=$row; | $menu[]=$row; |
|
ViewVC Help | |
Powered by ViewVC 1.1.26 |