Commit | Line | Data |
---|---|---|
51ff3226 | 1 | <?php |
2 | function smarty_function_get_bookmark($brawco,&$smarty) { | |
3 | global $db; | |
4 | $q="select * from node_access left join nodes on node_access.node_id=nodes.node_id where user_id='".$_SESSION['user_id']."' and node_bookmark='yes' order by bookmark_category,node_name"; | |
5 | $result=$db->query($q); | |
6 | while ($result->next()) { | |
7 | $record[]=$result->getRecord(); | |
8 | } | |
9 | $smarty->assign('get_bookmark',$record); | |
10 | ||
11 | } | |
12 | ?> |