\n"; $res = XDB::iterRow("SELECT id, fonction_fr, FIND_IN_SET('titre', flags) from fonctions_def ORDER BY id"); while(list($fid, $flabel, $ftitre) = $res->next()){ if($ftitre) $html.= "\n"; else $html .= "\n"; } return $html; } function _select_fonction_smarty($params){ return select_fonction($params['fonction']); } $page->register_function('select_fonction', '_select_fonction_smarty'); // vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8: ?>