Subversion Repositories Applications.projet

Rev

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

Rev 11 Rev 129
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: HTML_formulaireMail.class.php,v 1.2 2005-09-27 16:42:00 alexandre_tb Exp $
22
// CVS : $Id: HTML_formulaireMail.class.php,v 1.3 2006-07-05 09:44:11 alexandre_tb Exp $
23
/**
23
/**
24
* Application projet
24
* Application projet
25
*
25
*
26
* La classe HTML_formulaireMail
26
* La classe HTML_formulaireMail
27
*
27
*
Line 29... Line 29...
29
//Auteur original :
29
//Auteur original :
30
*@author        Alexandre Granier <alexandre@tela-botanica.org>
30
*@author        Alexandre Granier <alexandre@tela-botanica.org>
31
//Autres auteurs :
31
//Autres auteurs :
32
*@author        Aucun
32
*@author        Aucun
33
*@copyright     Tela-Botanica 2000-2004
33
*@copyright     Tela-Botanica 2000-2004
34
*@version       $Revision: 1.2 $
34
*@version       $Revision: 1.3 $
35
// +------------------------------------------------------------------------------------------------------+
35
// +------------------------------------------------------------------------------------------------------+
36
*/
36
*/
Line 37... Line 37...
37
 
37
 
Line 92... Line 92...
92
     * @return void
92
     * @return void
93
     * @access public
93
     * @access public
94
     */
94
     */
95
    function construitFormulaire()
95
    function construitFormulaire()
96
    {
96
    {
97
        $this->addElement ('text', 'mail_titre', PROJET_MAIL_TITRE, array ('size' => 60)) ;
97
        $this->addElement ('text', 'mail_titre', PROJET_MAIL_TITRE, array ('size' => 60, 'id' => 'titre_mail')) ;
98
        $this->addRule ('mail_titre', PROJET_MAIL_TITRE_REQUIS, 'required', '', 'client') ;
98
        $this->addRule ('mail_titre', PROJET_MAIL_TITRE_REQUIS, 'required', '', 'client') ;
99
        $this->addElement ('textarea', 'mail_corps', PROJET_MAIL_CORPS, array('cols'=>80, 'rows'=>30)) ;
99
        $this->addElement ('textarea', 'mail_corps', PROJET_MAIL_CORPS, array('cols'=>80, 'rows'=>30, 'id' => 'corps_mail')) ;
Line 100... Line 100...
100
        
100
        
101
        $url_annuler = new Net_URL($this->getAttribute('action')) ;
101
        $url_annuler = new Net_URL($this->getAttribute('action')) ;
102
        $url_annuler->removeQueryString(PROJET_VARIABLE_ACTION) ;
102
        $url_annuler->removeQueryString(PROJET_VARIABLE_ACTION) ;
103
        // on fait un groupe avec les boutons pour les mettres sur la même ligne
103
        // on fait un groupe avec les boutons pour les mettres sur la même ligne