projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add by-account monitoring
[platal.git]
/
include
/
applis.func.inc.php
diff --git
a/include/applis.func.inc.php
b/include/applis.func.inc.php
index
65f11f2
..
b433862
100644
(file)
--- a/
include/applis.func.inc.php
+++ b/
include/applis.func.inc.php
@@
-1,6
+1,6
@@
<?php
/***************************************************************************
<?php
/***************************************************************************
- * Copyright (C) 2003-200
4
Polytechnique.org *
+ * Copyright (C) 2003-200
7
Polytechnique.org *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
@@
-22,9
+22,8
@@
global $page;
function applis_options($current=0) {
global $page;
function applis_options($current=0) {
- global $globals;
$html = '<option value="-1"></option>';
$html = '<option value="-1"></option>';
- $res =
$globals->xdb->
iterator("select * from applis_def order by text");
+ $res =
XDB::
iterator("select * from applis_def order by text");
while ($arr_appli = $res->next()) {
$html .= '<option value="'.$arr_appli["id"].'"';
if ($arr_appli["id"]==$current) $html .= " selected='selected'";
while ($arr_appli = $res->next()) {
$html .= '<option value="'.$arr_appli["id"].'"';
if ($arr_appli["id"]==$current) $html .= " selected='selected'";
@@
-45,9
+44,8
@@
$page->register_function('applis_options','_applis_options_smarty');
/** affiche un Array javascript contenant les types de chaque appli
*/
function applis_type(){
/** affiche un Array javascript contenant les types de chaque appli
*/
function applis_type(){
- global $globals;
$html = "";
$html = "";
- $res=
$globals->xdb->
iterRow("select type from applis_def order by text");
+ $res=
XDB::
iterRow("select type from applis_def order by text");
if (list($appli_type) = $res->next()) {
$html .= "new Array('".str_replace(",","','",$appli_type)."')";
}
if (list($appli_type) = $res->next()) {
$html .= "new Array('".str_replace(",","','",$appli_type)."')";
}
@@
-61,8
+59,7
@@
$page->register_function('applis_type','applis_type');
/** affiche tous les types possibles d'applis
*/
function applis_type_all(){
/** affiche tous les types possibles d'applis
*/
function applis_type_all(){
- global $globals;
- $res = $globals->xdb->query("show columns from applis_def like 'type'");
+ $res = XDB::query("show columns from applis_def like 'type'");
$arr_appli = $res->fetchOneAssoc();
return str_replace(")","",str_replace("set(","",$arr_appli["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="";
*/
function applis_fmt($type, $text, $url) {
$txt="";
- if (($type!="Ing
énieur")&&($type!="Diplô
me"))
+ if (($type!="Ing
énieur")&&($type!="Diplô
me"))
$txt .= $type;
$txt .= $type;
- if ($text!="Universit
é
") {
+ if ($text!="Universit
é
") {
if ($txt) $txt .= " ";
if ($url)
$txt .= "<a href=\"$url\" onclick=\"return popup(this)\">$text</a>";
if ($txt) $txt .= " ";
if ($url)
$txt .= "<a href=\"$url\" onclick=\"return popup(this)\">$text</a>";
@@
-89,4
+86,5
@@
function _applis_fmt($params, &$smarty) {
}
$page->register_function('applis_fmt','_applis_fmt');
}
$page->register_function('applis_fmt','_applis_fmt');
+// vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8:
?>
?>