<?php
/***************************************************************************
- * Copyright (C) 2003-2006 Polytechnique.org *
+ * Copyright (C) 2003-2007 Polytechnique.org *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
global $page;
function applis_options($current=0) {
- global $globals;
$html = '<option value="-1"></option>';
$res = XDB::iterator("select * from applis_def order by text");
while ($arr_appli = $res->next()) {
/** 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()) {
/** 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"]));
*/
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 .= "<a href=\"$url\" onclick=\"return popup(this)\">$text</a>";
}
$page->register_function('applis_fmt','_applis_fmt');
+// vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8:
?>