| 1 | <?php |
| 2 | function smarty_function_get_bookmark_statistics($brawco,&$smarty) { |
| 3 | global $db, $error, $node; |
| 4 | $node_handle=$node['node_id']; |
| 5 | |
| 6 | $q="select node_access.*,users.login,users.user_action from node_access left join users on node_access.user_id=users.user_id where node_id='$node_handle' and node_bookmark='yes' order by node_user_subchild_count"; |
| 7 | |
| 8 | $result=$db->query($q); |
| 9 | |
| 10 | while ($result->next()) { |
| 11 | $bs_array[]=$result->getRecord(); |
| 12 | } |
| 13 | |
| 14 | $smarty->assign('get_bookmark_statistics',$bs_array); |
| 15 | } |
| 16 | |
| 17 | ?> |