X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fsecteur.emploi.inc.php;h=a7b840b4cf5492b8c0363dfa2c0f6ff1a133a443;hb=808852c59c57a98ea205d9edeefba655aa68412b;hp=8adc9c99bef61b49bb19d41ef1ff4cbc8c92821e;hpb=0337d704b62718d7c77106c0e4c4e26fb02beacf;p=platal.git diff --git a/include/secteur.emploi.inc.php b/include/secteur.emploi.inc.php index 8adc9c9..a7b840b 100644 --- a/include/secteur.emploi.inc.php +++ b/include/secteur.emploi.inc.php @@ -1,6 +1,6 @@  \n"; - $res = $globals->xdb->iterRow("SELECT id, label FROM emploi_secteur"); + $res = XDB::iterRow("SELECT id, label FROM emploi_secteur"); while (list($tmp_id, $tmp_label) = $res->next()) { $html .= "\n"; } @@ -34,10 +33,9 @@ function select_secteur($secteur){ } function select_ss_secteur($secteur,$ss_secteur){ - global $globals; if ($secteur) { $html = "\n"; - $res = $globals->xdb->iterRow("SELECT id, label FROM emploi_ss_secteur WHERE secteur = {?}", $secteur); + $res = XDB::iterRow("SELECT id, label FROM emploi_ss_secteur WHERE secteur = {?}", $secteur); while (list($tmp_id, $tmp_label) = $res->next()){ $html .= "\n"; }