Subversion Repositories Applications.papyrus

Rev

Rev 166 | Rev 367 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 166 Rev 251
Line 19... Line 19...
19
// |                                                                                                      |
19
// |                                                                                                      |
20
// | You should have received a copy of the GNU General Public License                                    |
20
// | You should have received a copy of the GNU General Public License                                    |
21
// | along with Foobar; if not, write to the Free Software                                                |
21
// | along with Foobar; if not, write to the Free Software                                                |
22
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
22
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
23
// +------------------------------------------------------------------------------------------------------+
23
// +------------------------------------------------------------------------------------------------------+
24
// CVS : $Id: adme_general.fonct.php,v 1.7 2004-11-24 11:31:51 jpm Exp $
24
// CVS : $Id: adme_general.fonct.php,v 1.8 2005-01-26 16:18:05 jpm Exp $
25
/**
25
/**
26
* Contient l'affichage par défaut de l'appli quand aucune actin
26
* Contient l'affichage par défaut de l'appli quand aucune actin
27
*
27
*
28
* Ce fichier contient les fonctions d'affichage commune à toute l'application Admin Menu.
28
* Ce fichier contient les fonctions d'affichage commune à toute l'application Admin Menu.
29
* Nous y trouvons, entre autre, la fonction d'affichage par défaut de l'appli.
29
* Nous y trouvons, entre autre, la fonction d'affichage par défaut de l'appli.
Line 33... Line 33...
33
//Auteur original :
33
//Auteur original :
34
*@author        Jean-Pascal MILCENT <jpm@tela-botanica.org>
34
*@author        Jean-Pascal MILCENT <jpm@tela-botanica.org>
35
//Autres auteurs :
35
//Autres auteurs :
36
*@author        Aucun
36
*@author        Aucun
37
*@copyright     Tela-Botanica 2000-2004
37
*@copyright     Tela-Botanica 2000-2004
38
*@version       $Revision: 1.7 $ $Date: 2004-11-24 11:31:51 $
38
*@version       $Revision: 1.8 $ $Date: 2005-01-26 16:18:05 $
39
// +------------------------------------------------------------------------------------------------------+
39
// +------------------------------------------------------------------------------------------------------+
40
*/
40
*/
Line 41... Line 41...
41
 
41
 
42
// +------------------------------------------------------------------------------------------------------+
42
// +------------------------------------------------------------------------------------------------------+
Line 88... Line 88...
88
    $aso_attributs = array('id'=> $id, 'tabindex' => $tab_index++, 'onchange' => 'javascript:this.form.submit();');
88
    $aso_attributs = array('id'=> $id, 'tabindex' => $tab_index++, 'onchange' => 'javascript:this.form.submit();');
89
    $label = '<label for="'.$id.'">'.ADME_LG_FORM_SITE_CHOIX.'</label>';
89
    $label = '<label for="'.$id.'">'.ADME_LG_FORM_SITE_CHOIX.'</label>';
90
    $objet_select = new HTML_QuickForm_select($id, $label, '', $aso_attributs);
90
    $objet_select = new HTML_QuickForm_select($id, $label, '', $aso_attributs);
91
    $aso_options = array();
91
    $aso_options = array();
92
    while ($ligne = $resultat->fetchRow(DB_FETCHMODE_OBJECT)) {
92
    while ($ligne = $resultat->fetchRow(DB_FETCHMODE_OBJECT)) {
93
        $site_nom = $ligne->gs_nom;
-
 
94
        if (!isset($adme_site_id) || $adme_site_id == 0) {
93
        if (!isset($adme_site_id) || $adme_site_id == 0) {
95
            $adme_site_id = $ligne->gs_id_site;
94
            $adme_site_id = $ligne->gs_id_site;
96
        }
95
        }
97
        if ($ligne->gs_id_site == $adme_site_id) {
96
        if ($ligne->gs_id_site == $adme_site_id) {
98
            $objet_select->addOption(htmlentities($ligne->gs_nom.' ('.$ligne->gs_code_alpha.')'), $ligne->gs_id_site, 'selected="selected"');
97
            $objet_select->addOption(htmlentities($ligne->gs_nom.' ('.$ligne->gs_code_alpha.')'), $ligne->gs_id_site, 'selected="selected"');
-
 
98
            // Attribution du nom du site sur lequel on travaille pour le titre
-
 
99
            $site_nom = $ligne->gs_nom;
99
        } else {
100
        } else {
100
            $objet_select->addOption(htmlentities($ligne->gs_nom.' ('.$ligne->gs_code_alpha.')'), $ligne->gs_id_site);
101
            $objet_select->addOption(htmlentities($ligne->gs_nom.' ('.$ligne->gs_code_alpha.')'), $ligne->gs_id_site);
101
        }
102
        }
102
    }
103
    }
103
    $resultat->free();
104
    $resultat->free();
Line 154... Line 155...
154
 
155
 
155
 
156
 
156
/* +--Fin du code ----------------------------------------------------------------------------------------+
157
/* +--Fin du code ----------------------------------------------------------------------------------------+
-
 
158
*
-
 
159
* $Log: not supported by cvs2svn $
-
 
160
* Revision 1.7  2004/11/24 11:31:51  jpm
157
*
161
* Ajout d'une contante de langue à la place d'un texte.
158
* $Log: not supported by cvs2svn $
162
*
159
* Revision 1.6  2004/11/10 17:26:07  jpm
163
* Revision 1.6  2004/11/10 17:26:07  jpm
160
* Fin gestion de la traduction.
164
* Fin gestion de la traduction.
161
*
165
*