UTF-8 fixes
[platal.git] / include / fonction.emploi.inc.php
index 82c172e..ee67115 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /***************************************************************************
- *  Copyright (C) 2003-2004 Polytechnique.org                              *
+ *  Copyright (C) 2003-2007 Polytechnique.org                              *
  *  http://opensource.polytechnique.org/                                   *
  *                                                                         *
  *  This program is free software; you can redistribute it and/or modify   *
  ***************************************************************************/
 
 function select_fonction($fonction){
-    global $globals;
     $html = "<option value='' ". (($fonction == '0')?"selected='selected'":"") .">&nbsp;</option>\n";
 
-    $res = $globals->xdb->iterRow("SELECT id, fonction_fr, FIND_IN_SET('titre', flags) from fonctions_def ORDER BY id");
+    $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.= "<option value='$fid' " . (($fonction == $fid)?"selected='selected'":"") . ">$flabel</option>\n";
@@ -38,4 +37,5 @@ function _select_fonction_smarty($params){
 }
 
 $page->register_function('select_fonction', '_select_fonction_smarty');
+// vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8:
 ?>