Commit | Line | Data |
---|---|---|
1 | <?php | |
2 | ||
3 | function smarty_function_get_node_userlist($params,&$smarty) { | |
4 | ||
5 | global $db,$node; | |
6 | if (is_numeric($params['node_id'])) $node_id=$params['node_id']; | |
7 | else $node_id=$node['node_id']; | |
8 | ||
9 | $set=$db->query("select login,user_id from users where user_action_id='$node_id'"); | |
10 | while ($set->next()) { | |
11 | $userlist[]=$set->getRecord(); | |
12 | } | |
13 | ||
14 | $smarty->assign('userlist',$userlist); | |
15 | ||
16 | } | |
17 | ?> |