X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fapplis.func.inc.php;h=b43386251cabd6e5b82fb42ab4544536ac507111;hb=493b6abebf3d6c35691f66fd1bfdc063efaab576;hp=c3360eff601068024f7641847c5400626dd64a0c;hpb=08cce2ff528b38bde27cdec6d6bc28d6af4a42d4;p=platal.git diff --git a/include/applis.func.inc.php b/include/applis.func.inc.php index c3360ef..b433862 100644 --- a/include/applis.func.inc.php +++ b/include/applis.func.inc.php @@ -1,6 +1,6 @@ '; $res = XDB::iterator("select * from applis_def order by text"); while ($arr_appli = $res->next()) { @@ -45,7 +44,6 @@ $page->register_function('applis_options','_applis_options_smarty'); /** affiche un Array javascript contenant les types de chaque appli */ function applis_type(){ - global $globals; $html = ""; $res=XDB::iterRow("select type from applis_def order by text"); if (list($appli_type) = $res->next()) { @@ -61,7 +59,6 @@ $page->register_function('applis_type','applis_type'); /** affiche tous les types possibles d'applis */ function applis_type_all(){ - global $globals; $res = XDB::query("show columns from applis_def like 'type'"); $arr_appli = $res->fetchOneAssoc(); return str_replace(")","",str_replace("set(","",$arr_appli["Type"])); @@ -72,9 +69,9 @@ $page->register_function('applis_type_all','applis_type_all'); */ function applis_fmt($type, $text, $url) { $txt=""; - if (($type!="Ingénieur")&&($type!="Diplôme")) + if (($type!="Ingénieur")&&($type!="Diplôme")) $txt .= $type; - if ($text!="Université") { + if ($text!="Université") { if ($txt) $txt .= " "; if ($url) $txt .= "$text"; @@ -89,4 +86,5 @@ function _applis_fmt($params, &$smarty) { } $page->register_function('applis_fmt','_applis_fmt'); +// vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8: ?>