Commit | Line | Data |
---|---|---|
e586807d H |
1 | <?php |
2 | ||
3 | function smarty_function_get_waiting_users($params,&$smarty) { | |
4 | global $db, $error, $node; | |
5 | $node_id=$node['node_id']; | |
b42b2bf9 | 6 | $q="select node_content,users.* from users where user_status='waiting'"; |
e586807d H |
7 | if ($_SESSION['cube_vector']) $q.=" and cube_vector='".$_SESSION['cube_vector']."'"; |
8 | else $q.=" and cube_vector IS NULL"; | |
9 | $result=$db->query($q); | |
10 | while ($result->next()) { | |
11 | $get_waiting_users[]=$result->getRecord(); | |
12 | } | |
13 | $smarty->assign('get_waiting_users',$get_waiting_users); | |
14 | ||
15 | } | |
16 | ?> |