Line 1... |
Line 1... |
1 |
<?php
|
1 |
<?php
|
2 |
/*vim: set expandtab tabstop=4 shiftwidth=4: */
|
2 |
/*vim: set expandtab tabstop=4 shiftwidth=4: */
|
3 |
// +------------------------------------------------------------------------------------------------------+
|
3 |
// +------------------------------------------------------------------------------------------------------+
|
4 |
// | PHP version 4.1 |
|
4 |
// | PHP version 4.1 |
|
5 |
// +------------------------------------------------------------------------------------------------------+
|
5 |
// +------------------------------------------------------------------------------------------------------+
|
6 |
// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org) |
|
6 |
// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org) |
|
7 |
// +------------------------------------------------------------------------------------------------------+
|
7 |
// +------------------------------------------------------------------------------------------------------+
|
Line 17... |
Line 17... |
17 |
// | |
|
17 |
// | |
|
18 |
// | You should have received a copy of the GNU General Public |
|
18 |
// | You should have received a copy of the GNU General Public |
|
19 |
// | License along with this library; if not, write to the Free Software |
|
19 |
// | License along with this library; if not, write to the Free Software |
|
20 |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
20 |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
21 |
// +------------------------------------------------------------------------------------------------------+
|
21 |
// +------------------------------------------------------------------------------------------------------+
|
22 |
// CVS : $Id: adwi_HTML_formulaireWikini.class.php,v 1.4 2005-09-09 09:37:17 ddelon Exp $
|
22 |
// CVS : $Id: adwi_HTML_formulaireWikini.class.php,v 1.5 2005-11-14 13:07:11 ddelon Exp $
|
23 |
/**
|
23 |
/**
|
24 |
*
|
24 |
*
|
25 |
* Admin Wikini
|
25 |
* Admin Wikini
|
26 |
*
|
26 |
*
|
27 |
* Classe affichage gestion des Wikini de Papyrus
|
27 |
* Classe affichage gestion des Wikini de Papyrus
|
28 |
*
|
28 |
*
|
29 |
*@package projet
|
29 |
*@package projet
|
30 |
//Auteur original :
|
30 |
//Auteur original :
|
31 |
*@author David Delon <david.delon@clapas.net>
|
31 |
*@author David Delon <david.delon@clapas.net>
|
32 |
//Autres auteurs :
|
32 |
//Autres auteurs :
|
33 |
*@author Aucun
|
33 |
*@author Aucun
|
34 |
*@copyright Tela-Botanica 2000-2004
|
34 |
*@copyright Tela-Botanica 2000-2004
|
35 |
*@version $Revision: 1.4 $
|
35 |
*@version $Revision: 1.5 $
|
36 |
// +------------------------------------------------------------------------------------------------------+
|
36 |
// +------------------------------------------------------------------------------------------------------+
|
37 |
*/
|
37 |
*/
|
Line 38... |
Line 38... |
38 |
|
38 |
|
Line 93... |
Line 93... |
93 |
* @return void
|
93 |
* @return void
|
94 |
* @access public
|
94 |
* @access public
|
95 |
*/
|
95 |
*/
|
96 |
function construitFormulaire($url_retour)
|
96 |
function construitFormulaire($url_retour)
|
97 |
{
|
97 |
{
|
98 |
|
98 |
|
99 |
$this->addElement ('text', 'code_alpha_wikini', ADWI_NOM_WIKINI, array ('size' => 60)) ;
|
99 |
$this->addElement ('text', 'code_alpha_wikini', ADWI_NOM_WIKINI, array ('size' => 60)) ;
|
100 |
$this->addRule ('code_alpha_wikini', ADWI_NOM_WIKINI_ALERTE, 'required', '', 'client') ;
|
100 |
$this->addRule ('code_alpha_wikini', ADWI_NOM_WIKINI_ALERTE, 'required', '', 'client') ;
|
101 |
|
101 |
|
102 |
// Défault : PagePrincipale
|
102 |
// Défault : PagePrincipale
|
103 |
$this->addElement ('text', 'page', ADWI_PAGE, array ('size' => 60)) ;
|
103 |
$this->addElement ('text', 'page', ADWI_PAGE, array ('size' => 60)) ;
|
104 |
|
104 |
|
105 |
$this->addElement ('static', '', 'Configuration avancée : ') ;
|
105 |
$this->addElement ('static', '', 'Configuration avancée : ') ;
|
106 |
|
106 |
|
107 |
$this->addElement ('text', 'bdd_hote', ADWI_BDD_HOTE, array ('size' => 60)) ;
|
107 |
$this->addElement ('text', 'bdd_hote', ADWI_BDD_HOTE, array ('size' => 60)) ;
|
108 |
$this->addElement ('text', 'bdd_nom', ADWI_BDD_NOM, array ('size' => 60)) ;
|
108 |
$this->addElement ('text', 'bdd_nom', ADWI_BDD_NOM, array ('size' => 60)) ;
|
109 |
$this->addElement ('text', 'bdd_utilisateur', ADWI_BDD_UTILISATEUR, array ('size' => 60)) ;
|
109 |
$this->addElement ('text', 'bdd_utilisateur', ADWI_BDD_UTILISATEUR, array ('size' => 60)) ;
|
110 |
$this->addElement ('text', 'bdd_mdp', ADWI_BDD_MDP, array ('size' => 60)) ;
|
110 |
$this->addElement ('password', 'bdd_mdp', ADWI_BDD_MDP, array ('size' => 60)) ;
|
111 |
$this->addElement ('text', 'table_prefix', ADWI_TABLE_PREFIX, array ('size' => 60)) ;
|
111 |
$this->addElement ('text', 'table_prefix', ADWI_TABLE_PREFIX, array ('size' => 60)) ;
|
112 |
$this->addElement ('text', 'chemin', ADWI_CHEMIN, array ('size' => 60)) ;
|
112 |
$this->addElement ('text', 'chemin', ADWI_CHEMIN, array ('size' => 60)) ;
|
Line 113... |
Line 113... |
113 |
|
113 |
|
114 |
$this->setRequiredNote('<span style="color: #ff0000">*</span>'.ADWI_CHAMPS_REQUIS) ;
|
114 |
$this->setRequiredNote('<span style="color: #ff0000">*</span>'.ADWI_CHAMPS_REQUIS) ;
|
115 |
|
115 |
|
116 |
// on fait un groupe avec les boutons pour les mettres sur la même ligne
|
116 |
// on fait un groupe avec les boutons pour les mettres sur la même ligne
|
117 |
$buttons[] = &HTML_QuickForm::createElement('button', 'annuler', ADWI_ANNULER, array ("onclick" => "javascript:document.location.href='".str_replace ('&', '&', $url_retour->getURL())."'"));
|
117 |
$buttons[] = &HTML_QuickForm::createElement('button', 'annuler', ADWI_ANNULER, array ("onclick" => "javascript:document.location.href='".str_replace ('&', '&', $url_retour->getURL())."'"));
|
118 |
$buttons[] = &HTML_QuickForm::createElement('submit', 'valider', ADWI_VALIDER);
|
118 |
$buttons[] = &HTML_QuickForm::createElement('submit', 'valider', ADWI_VALIDER);
|
119 |
$this->addGroup($buttons, null, null, ' ');
|
119 |
$this->addGroup($buttons, null, null, ' ');
|
120 |
|
120 |
|
121 |
} // end of member function _construitFormulaire
|
121 |
} // end of member function _construitFormulaire
|
122 |
} // end of HTML_formulaireProjet
|
122 |
} // end of HTML_formulaireProjet
|