QUR_SEL($sql); //echo $sql.'
'.print_r($rez,1).'
'; if($rez){ foreach($rez as $key => $val)if($key){ $val['statuses'] = explode(',',$val['statuses']); $users[] = $val; } } $smarty->assign('users',$users); $smarty->assign('statuses',$CF['user_statuses']); } $smarty->assign('page',$page); $smarty->assign('des',$des); $smarty->assign('debug',$debug); $smarty->assign('msg',$msg); $fakultets = iup_get_fakultets(); $smarty->assign('fakultets',$fakultets); $kafedras = iup_get_kafedras(); $smarty->assign('kafedras',$kafedras); $maincontent = $smarty->fetch('tpl_iup_users1.html');