Subversion Repositories Applications.papyrus

Rev

Rev 707 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 707 Rev 830
Line 17... Line 17...
17
// |                                                                                                      |
17
// |                                                                                                      |
18
// | You should have received a copy of the GNU Lesser General Public                                     |
18
// | You should have received a copy of the GNU Lesser 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: contact.php,v 1.2 2006-01-19 10:24:37 florian Exp $
22
// CVS : $Id: contact.php,v 1.3 2006-04-28 11:35:37 florian Exp $
23
/**
23
/**
24
* Contact
24
* Contact
25
*
25
*
26
* Un module d'envoi de mails a une personne de l'annuaire, choisie par une liste déroulante
26
* Un module d'envoi de mails a une personne de l'annuaire, choisie par une liste déroulante
27
*
27
*
28
*@package inscription
28
*@package inscription
29
//Auteur original :
29
//Auteur original :
30
*@author        Florian SCHMITT <florian@ecole-et-nature.org>
30
*@author        Florian SCHMITT <florian@ecole-et-nature.org>
31
*
31
*
32
*@copyright     Réseau Ecole et Nature 2005
32
*@copyright     Réseau Ecole et Nature 2005
33
*@version       $Revision: 1.2 $ $Date: 2006-01-19 10:24:37 $
33
*@version       $Revision: 1.3 $ $Date: 2006-04-28 11:35:37 $
34
// +------------------------------------------------------------------------------------------------------+
34
// +------------------------------------------------------------------------------------------------------+
35
*/
35
*/
Line 36... Line 36...
36
 
36
 
37
// +------------------------------------------------------------------------------------------------------+
37
// +------------------------------------------------------------------------------------------------------+
Line 100... Line 100...
100
	$form_contact->addElement('select', 'Destinataire', CON_DESTINATAIRE, $liste_destinataires, $option);
100
	$form_contact->addElement('select', 'Destinataire', CON_DESTINATAIRE, $liste_destinataires, $option);
101
	$option=array('style'=>'width:500px;','maxlength'=>100);
101
	$option=array('style'=>'width:500px;','maxlength'=>100);
102
    $form_contact->addElement('text', 'Subject', CON_SUJET, $option);
102
    $form_contact->addElement('text', 'Subject', CON_SUJET, $option);
103
    $form_contact->addRule('Subject', CON_SUJET_REQUIS, 'required','', 'client') ;
103
    $form_contact->addRule('Subject', CON_SUJET_REQUIS, 'required','', 'client') ;
104
	$option=array('style'=>'width:500px;height:200px;white-space: pre;padding:3px;');
104
	$option=array('style'=>'width:500px;height:200px;white-space: pre;padding:3px;');
105
	require_once 'HTML/QuickForm/textarea.php';
105
	require_once PAP_CHEMIN_API_PEAR.'HTML/QuickForm/textarea.php';
106
	$formtexte= new HTML_QuickForm_textarea('Text', CON_MESSAGE, $option);
106
	$formtexte= new HTML_QuickForm_textarea('Text', CON_MESSAGE, $option);
107
	$form_contact->addElement($formtexte) ;
107
	$form_contact->addElement($formtexte) ;
108
	$form_contact->addRule('Text', CON_MESSAGE_REQUIS, 'required','', 'client') ;
108
	$form_contact->addRule('Text', CON_MESSAGE_REQUIS, 'required','', 'client') ;
109
	$form_contact->addElement('submit', 'Envoyer', CON_ENVOYER);
109
	$form_contact->addElement('submit', 'Envoyer', CON_ENVOYER);
110
	$res .= $form_contact->toHTML();
110
	$res .= $form_contact->toHTML();
Line 112... Line 112...
112
}
112
}
Line 113... Line 113...
113
 
113
 
114
/* +--Fin du code ----------------------------------------------------------------------------------------+
114
/* +--Fin du code ----------------------------------------------------------------------------------------+
115
*
115
*
-
 
116
* $Log: not supported by cvs2svn $
-
 
117
* Revision 1.2  2006/01/19 10:24:37  florian
-
 
118
* champs obligatoires pour le formulaire de saisie
116
* $Log: not supported by cvs2svn $
119
*
117
* Revision 1.1  2005/09/22 13:28:50  florian
120
* Revision 1.1  2005/09/22 13:28:50  florian
118
* Application de contact, pour envoyer des mails. Reste a faire: configuration pour choisir les destinataires dans l'annuaire.
121
* Application de contact, pour envoyer des mails. Reste a faire: configuration pour choisir les destinataires dans l'annuaire.
119
*
122
*
120
*
123
*