{site}.inc.php is the base for all jobs.
[platal.git] / include / applis.func.inc.php
index eacbc34..849adc3 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /***************************************************************************
- *  Copyright (C) 2003-2007 Polytechnique.org                              *
+ *  Copyright (C) 2003-2008 Polytechnique.org                              *
  *  http://opensource.polytechnique.org/                                   *
  *                                                                         *
  *  This program is free software; you can redistribute it and/or modify   *
@@ -24,7 +24,7 @@ global $page;
 function applis_options($current=0) {
     $html = '<option value="-1"></option>';
     $res  = XDB::iterator("select * from applis_def order by text");
-    while ($arr_appli = $res->next()) { 
+    while ($arr_appli = $res->next()) {
         $html .= '<option value="'.$arr_appli["id"].'"';
         if ($arr_appli["id"]==$current) $html .= " selected='selected'";
         $html .= '>'.htmlspecialchars($arr_appli["text"])."</option>\n";
@@ -73,9 +73,9 @@ function applis_fmt($type, $text, $url) {
         $txt .= $type;
     if ($text != "Université") {
         if ($txt) $txt .= ' ';
-        if ($url) 
+        if ($url)
             $txt .= "<a href=\"$url\" onclick=\"return popup(this)\">$text</a>";
-        else 
+        else
             $txt .= $text;
     }
     if (!$txt) {