Subversion Repositories Applications.bazar

Rev

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

Rev 105 Rev 118
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: bazar.fonct.formulaire.php,v 1.19 2006-03-02 20:36:52 florian Exp $
22
// CVS : $Id: bazar.fonct.formulaire.php,v 1.20 2006-04-28 12:46:14 florian Exp $
23
/**
23
/**
24
* Formulaire
24
* Formulaire
25
*
25
*
26
* Les fonctions de mise en page des formulaire
26
* Les fonctions de mise en page des formulaire
27
*
27
*
Line 29... Line 29...
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
//Autres auteurs :
31
//Autres auteurs :
32
*@author        Aleandre GRANIER <alexandre@tela-botanica.org>
32
*@author        Aleandre GRANIER <alexandre@tela-botanica.org>
33
*@copyright     Tela-Botanica 2000-2004
33
*@copyright     Tela-Botanica 2000-2004
34
*@version       $Revision: 1.19 $ $Date: 2006-03-02 20:36:52 $
34
*@version       $Revision: 1.20 $ $Date: 2006-04-28 12:46:14 $
35
// +------------------------------------------------------------------------------------------------------+
35
// +------------------------------------------------------------------------------------------------------+
36
*/
36
*/
Line 37... Line 37...
37
 
37
 
Line 59... Line 59...
59
	}
59
	}
60
	while ($ligne = $resultat->fetchRow()) {
60
	while ($ligne = $resultat->fetchRow()) {
61
		$select[$ligne[1]] = $ligne[2] ;		
61
		$select[$ligne[1]] = $ligne[2] ;		
62
	}
62
	}
63
	$option=array('style'=>'width: '.$limite1.'px;');
63
	$option=array('style'=>'width: '.$limite1.'px;');
64
	require_once 'HTML/QuickForm/select.php';
64
	require_once PAP_CHEMIN_API_PEAR.'HTML/QuickForm/select.php';
65
	$select= new HTML_QuickForm_select('liste'.$id_liste, $label, $select, $option);
65
	$select= new HTML_QuickForm_select('liste'.$id_liste, $label, $select, $option);
66
	$select->setSize($limite2); 
66
	$select->setSize($limite2); 
67
	$select->setMultiple(0);
67
	$select->setMultiple(0);
68
	$select->setSelected($defaut);
68
	$select->setSelected($defaut);
69
	$formtemplate->addElement($select) ;
69
	$formtemplate->addElement($select) ;
Line 84... Line 84...
84
* @param    string  table source pour les valeurs de la liste
84
* @param    string  table source pour les valeurs de la liste
85
* @param    string  ce champs est il obligatoire? (required)
85
* @param    string  ce champs est il obligatoire? (required)
86
* @return   void
86
* @return   void
87
*/
87
*/
88
function checkbox(&$formtemplate, $id_liste , $label, $limite1, $limite2, $defaut, $source, $obligatoire) {
88
function checkbox(&$formtemplate, $id_liste , $label, $limite1, $limite2, $defaut, $source, $obligatoire) {
89
	$requete = 'SELECT * FROM bazar_liste_valeurs WHERE blv_ce_liste='.$id_liste.' AND blv_ce_i18n="'.$GLOBALS['_BAZAR_']['langue'].'"';
89
	$requete = 'SELECT * FROM bazar_liste_valeurs WHERE blv_ce_liste='.$id_liste.' AND blv_ce_i18n="'.$GLOBALS['_BAZAR_']['langue'].'" ORDER BY blv_label';
90
	$resultat = & $GLOBALS['_BAZAR_']['db'] -> query($requete) ;
90
	$resultat = & $GLOBALS['_BAZAR_']['db'] -> query($requete) ;
91
	if (DB::isError ($resultat)) {
91
	if (DB::isError ($resultat)) {
92
		die ($resultat->getMessage().$resultat->getDebugInfo()) ;
92
		die ($resultat->getMessage().$resultat->getDebugInfo()) ;
93
	}		
93
	}		
94
	require_once 'HTML/QuickForm/checkbox.php' ;
94
	require_once PAP_CHEMIN_API_PEAR.'HTML/QuickForm/checkbox.php' ;
95
	$i=0;
95
	$i=0;
96
	if (isset($defaut)) $tab=split(', ', $defaut);
96
	if (isset($defaut)) $tab=split(', ', $defaut);
97
	while ($ligne = $resultat->fetchRow()) {
97
	while ($ligne = $resultat->fetchRow()) {
98
		if ($i==0) $labelchkbox=$label ; else $labelchkbox='&nbsp;' ;
98
		if ($i==0) $labelchkbox=$label ; else $labelchkbox='&nbsp;';
99
		$checkbox[$i]= & HTML_Quickform::createElement('checkbox', $ligne[1], $labelchkbox, $ligne[2], 
99
		$checkbox[$i]= & HTML_Quickform::createElement('checkbox', $ligne[1], $labelchkbox, $ligne[2], 
100
						array ('style'=>'display:inline;margin-left:2px;')) ;		
100
						array ('style'=>'display:inline;margin:2px;')) ;		
101
		foreach ($tab as $val) {
101
		foreach ($tab as $val) {
102
            if ($ligne[1]==$val) $checkbox[$i]->setChecked(1);			        
102
            if ($ligne[1]==$val) $checkbox[$i]->setChecked(1);			        
103
        }			
103
        }			
104
		$i++;
104
		$i++;
105
	}
105
	}
-
 
106
	$squelette_checkbox =& $formtemplate->defaultRenderer();
-
 
107
	$squelette_checkbox->setElementTemplate( '<tr><td colspan="2" style="text-align:left;">'."\n".'<fieldset class="bazar_fieldset">'."\n".'<legend>{label}'.
-
 
108
                                             '<!-- BEGIN required --><span class="symbole_obligatoire">&nbsp;*</span><!-- END required -->'."\n".
-
 
109
											 '</legend>'."\n".'{element}'."\n".'</fieldset> '."\n".'</td></tr>'."\n", 'checkbox'.$id_liste);
-
 
110
  	$squelette_checkbox->setGroupElementTemplate( "\n".'<div class="bazar_checkbox">'."\n".'{element}'."\n".'</div>'."\n", 'checkbox'.$id_liste);
-
 
111
	
106
	$formtemplate->addGroup($checkbox, 'checkbox'.$id_liste, $label, '<br />'."\n");
112
	$formtemplate->addGroup($checkbox, 'checkbox'.$id_liste, $label, "\n");
107
	if (isset($obligatoire)and($obligatoire==1)) {
113
	if (isset($obligatoire)and($obligatoire==1)) {
108
		$formtemplate->addGroupRule('checkbox'.$id_liste, $label.' obligatoire', 'required', null, 1, 'client');
114
		$formtemplate->addGroupRule('checkbox'.$id_liste, $label.' obligatoire', 'required', null, 1, 'client');
109
	}
115
	}
110
}
116
}
Line 125... Line 131...
125
function listedatedeb(&$formtemplate, $nom_bdd , $label, $limite1, $limite2, $defaut, $source, $obligatoire) {
131
function listedatedeb(&$formtemplate, $nom_bdd , $label, $limite1, $limite2, $defaut, $source, $obligatoire) {
126
	$optiondate = array('language' => BAZ_LANGUE_PAR_DEFAUT,
132
	$optiondate = array('language' => BAZ_LANGUE_PAR_DEFAUT,
127
						'minYear' => date('Y'),
133
						'minYear' => date('Y'),
128
						'maxYear'=> (date('Y')+10),
134
						'maxYear'=> (date('Y')+10),
129
						'format' => 'd m Y',
135
						'format' => 'd m Y',
130
						'addEmptyOption' => true,
136
						'addEmptyOption' => BAZ_DATE_VIDE,
131
						);
137
						);
132
	$formtemplate->addElement('date', $nom_bdd, $label, $optiondate) ;
138
	$formtemplate->addElement('date', $nom_bdd, $label, $optiondate) ;
133
	//gestion des valeurs par défaut (date du jour)	
139
	//gestion des valeurs par défaut (date du jour)	
134
	if (isset($defaut)) $formtemplate->setDefaults(array($nom_bdd => $defaut));
140
	if (isset($defaut) && $defaut!='') $formtemplate->setDefaults(array($nom_bdd => $defaut));
135
	else {
141
	else {
136
		$defauts=array($nom_bdd => array ('d'=>date('d'), 'm'=>date('m'), 'Y'=>date('Y')));
142
		$defauts=array($nom_bdd => array ('d'=>date('d'), 'm'=>date('m'), 'Y'=>date('Y')));
137
		$formtemplate->setDefaults($defauts);
143
		$formtemplate->setDefaults($defauts);
138
	}
144
	}
139
	//gestion du champs obligatoire
145
	//gestion du champs obligatoire
Line 217... Line 223...
217
* @param    string  table source pour les valeurs du texte (inutile)
223
* @param    string  table source pour les valeurs du texte (inutile)
218
* @param    string  ce champs est il obligatoire? (required)
224
* @param    string  ce champs est il obligatoire? (required)
219
* @return   void
225
* @return   void
220
*/
226
*/
221
function url(&$formtemplate, $nom_bdd , $label, $limite1, $limite2, $defaut, $source, $obligatoire) {
227
function url(&$formtemplate, $nom_bdd , $label, $limite1, $limite2, $defaut, $source, $obligatoire) {
-
 
228
	//recherche des URLs deja entrees dans la base
-
 
229
	$html_url= '';
-
 
230
	if (isset($GLOBALS['_BAZAR_']["id_fiche"])) {
-
 
231
		$requete = 'SELECT bu_id_url, bu_url, bu_descriptif_url FROM bazar_url WHERE bu_ce_fiche='.$GLOBALS['_BAZAR_']["id_fiche"];
-
 
232
		$resultat = & $GLOBALS['_BAZAR_']['db'] -> query($requete) ;
-
 
233
		if (DB::isError ($resultat)) {
-
 
234
			die ($GLOBALS['_BAZAR_']['db']->getMessage().$GLOBALS['_BAZAR_']['db']->getDebugInfo()) ;
-
 
235
		}
-
 
236
		if ($resultat->numRows()>0) {
-
 
237
			$html_url= '<tr>'."\n".'<td colspan="2">'."\n".'<strong>'.BAZ_LISTE_URL.'</strong>'."\n";
-
 
238
			$tableAttr = array("class" => "bazar_table") ;
-
 
239
			$table = new HTML_Table($tableAttr) ;
-
 
240
			$entete = array (BAZ_LIEN , BAZ_SUPPRIMER) ;
-
 
241
			$table->addRow($entete) ;
-
 
242
			$table->setRowType(0, "th") ;
-
 
243
		
-
 
244
			$lien_supprimer=$GLOBALS['_BAZAR_']['url'];
-
 
245
			$lien_supprimer->addQueryString('action', $_GET['action']);
-
 
246
			$lien_supprimer->addQueryString('id_fiche', $GLOBALS['_BAZAR_']["id_fiche"]);
-
 
247
			$lien_supprimer->addQueryString('typeannonce', $_REQUEST['typeannonce']);
-
 
248
				
-
 
249
			while ($ligne = $resultat->fetchRow(DB_FETCHMODE_OBJECT)) {
-
 
250
				$lien_supprimer->addQueryString('id_url', $ligne->bu_id_url);
-
 
251
				$table->addRow (array(
-
 
252
				'<a href="'.$ligne->bu_url.'" target="_blank"> '.$ligne->bu_descriptif_url.'</a>', // col 1 : le lien
-
 
253
				'<a href="'.$lien_supprimer->getURL().'" onclick="javascript:return confirm(\''.BAZ_CONFIRMATION_SUPPRESSION_LIEN.'\');" >'.BAZ_SUPPRIMER.'</a>'."\n")) ; // col 2 : supprimer
-
 
254
				$lien_supprimer->removeQueryString('id_url');
-
 
255
			}
-
 
256
			$table->altRowAttributes(1, array("class" => "ligne_impaire"), array("class" => "ligne_paire"));
-
 
257
			$table->updateColAttributes(1, array("align" => "center"));
-
 
258
			$html_url.= $table->toHTML()."\n".'</td>'."\n".'</tr>'."\n" ;
-
 
259
		}
-
 
260
	}		
222
	$html ='<tr>'."\n".'<td colspan="2">'."\n".'<h4>'.$label.'</h4>'."\n".'</td>'."\n".'</tr>'."\n";
261
	$html ='<tr>'."\n".'<td colspan="2">'."\n".'<h4>'.$label.'</h4>'."\n".'</td>'."\n".'</tr>'."\n";
223
	$formtemplate->addElement('html', $html) ;
262
	$formtemplate->addElement('html', $html) ;
-
 
263
	if ($html_url!='') $formtemplate->addElement('html', $html_url) ;
224
	$formtemplate->addElement('text', 'url_lien'.$nom_bdd, BAZ_URL_LIEN) ;
264
	$formtemplate->addElement('text', 'url_lien'.$nom_bdd, BAZ_URL_LIEN) ;
225
	$formtemplate->addElement('text', 'url_texte'.$nom_bdd, BAZ_URL_TEXTE) ;
265
	$formtemplate->addElement('text', 'url_texte'.$nom_bdd, BAZ_URL_TEXTE) ;
226
	//gestion du champs obligatoire
266
	//gestion du champs obligatoire
227
	if (isset($obligatoire)and($obligatoire==1)) {
267
	if (isset($obligatoire)and($obligatoire==1)) {
228
		$formtemplate->addRule('url_lien'.$nom_bdd, BAZ_URL_LIEN_REQUIS, 'required', '', 'client') ;
268
		$formtemplate->addRule('url_lien'.$nom_bdd, BAZ_URL_LIEN_REQUIS, 'required', '', 'client') ;
Line 241... Line 281...
241
* @param    string  table source pour les valeurs du texte (inutile)
281
* @param    string  table source pour les valeurs du texte (inutile)
242
* @param    string  ce champs est il obligatoire? (required)
282
* @param    string  ce champs est il obligatoire? (required)
243
* @return   void
283
* @return   void
244
*/
284
*/
245
function fichier(&$formtemplate, $nom_bdd , $label, $limite1, $limite2, $defaut, $source, $obligatoire) {
285
function fichier(&$formtemplate, $nom_bdd , $label, $limite1, $limite2, $defaut, $source, $obligatoire) {
-
 
286
	//AJOUTER DES FICHIERS JOINTS
-
 
287
	$html_fichier= '';
-
 
288
	if (isset($GLOBALS['_BAZAR_']["id_fiche"])) {
-
 
289
		$requete = 'SELECT * FROM bazar_fichier_joint WHERE bfj_ce_fiche='.$GLOBALS['_BAZAR_']["id_fiche"];
-
 
290
		$resultat = & $GLOBALS['_BAZAR_']['db'] -> query($requete) ;
-
 
291
		if (DB::isError ($resultat)) {
-
 
292
			die ($GLOBALS['_BAZAR_']['db']->getMessage().$GLOBALS['_BAZAR_']['db']->getDebugInfo()) ;
-
 
293
		}
-
 
294
		
-
 
295
		if ($resultat->numRows()>0) {
-
 
296
			$html_fichier = '<tr>'."\n".'<td colspan="2">'."\n".'<strong>'.BAZ_LISTE_FICHIERS_JOINTS.'</strong>'."\n";
-
 
297
			$tableAttr = array("class" => "bazar_table") ;
-
 
298
			$table = new HTML_Table($tableAttr) ;
-
 
299
			$entete = array (BAZ_FICHIER , BAZ_SUPPRIMER) ;
-
 
300
			$table->addRow($entete) ;
-
 
301
			$table->setRowType(0, "th") ;
-
 
302
			
-
 
303
			$lien_supprimer=$GLOBALS['_BAZAR_']['url'];
-
 
304
			$lien_supprimer->addQueryString('action', $_GET['action']);
-
 
305
			$lien_supprimer->addQueryString('id_fiche', $GLOBALS['_BAZAR_']["id_fiche"]);
-
 
306
			$lien_supprimer->addQueryString('typeannonce', $_REQUEST['typeannonce']);
-
 
307
			while ($ligne = $resultat->fetchRow(DB_FETCHMODE_OBJECT)) {
-
 
308
				$lien_supprimer->addQueryString('id_fichier', $ligne->bfj_id_fichier);
-
 
309
				$table->addRow(array('<a href="client/bazar/upload/'.$ligne->bfj_fichier.'"> '.$ligne->bfj_description.'</a>', // col 1 : le fichier et sa description
-
 
310
									 '<a href="'.$lien_supprimer->getURL().'" onclick="javascript:return confirm(\''.BAZ_CONFIRMATION_SUPPRESSION_FICHIER.'\');" >'.BAZ_SUPPRIMER.'</a>'."\n")) ; // col 2 : supprimer
-
 
311
				$lien_supprimer->removeQueryString('id_fichier');
-
 
312
			}
-
 
313
			$table->altRowAttributes(1, array("class" => "ligne_impaire"), array("class" => "ligne_paire"));
-
 
314
			$table->updateColAttributes(1, array("align" => "center"));
-
 
315
			$html_fichier .= $table->toHTML()."\n".'</td>'."\n".'</tr>'."\n" ;
-
 
316
		}
-
 
317
	}
246
	$html ='<tr>'."\n".'<td colspan="2">'."\n".'<h4>'.$label.'</h4>'."\n".'</td>'."\n".'</tr>'."\n";
318
	$html ='<tr>'."\n".'<td colspan="2">'."\n".'<h4>'.$label.'</h4>'."\n".'</td>'."\n".'</tr>'."\n";
247
	$formtemplate->addElement('html', $html) ;
319
	$formtemplate->addElement('html', $html) ;
-
 
320
	if ($html_fichier!='') $formtemplate->addElement('html', $html_fichier) ;
248
	$formtemplate->addElement('text', 'texte_fichier'.$nom_bdd, BAZ_FICHIER_DESCRIPTION) ;
321
	$formtemplate->addElement('text', 'texte_fichier'.$nom_bdd, BAZ_FICHIER_DESCRIPTION) ;
249
	$formtemplate->addElement('file', 'fichier'.$nom_bdd, BAZ_FICHIER_JOINT) ;
322
	$formtemplate->addElement('file', 'fichier'.$nom_bdd, BAZ_FICHIER_JOINT) ;
250
	$formtemplate->addRule('image', BAZ_IMAGE_VALIDE_REQUIS, '', '', 'client') ; //a completer pour checker l'image
323
	$formtemplate->addRule('image', BAZ_IMAGE_VALIDE_REQUIS, '', '', 'client') ; //a completer pour checker l'image
251
	$formtemplate->setMaxFileSize($limite1);
324
	$formtemplate->setMaxFileSize($limite1);
252
	//gestion du champs obligatoire
325
	//gestion du champs obligatoire
Line 267... Line 340...
267
* @param    string  table source pour les valeurs du texte (inutile)
340
* @param    string  table source pour les valeurs du texte (inutile)
268
* @param    string  ce champs est il obligatoire? (required)
341
* @param    string  ce champs est il obligatoire? (required)
269
* @return   void
342
* @return   void
270
*/
343
*/
271
function image(&$formtemplate, $nom_bdd , $label, $limite1, $limite2, $defaut, $source, $obligatoire) {
344
function image(&$formtemplate, $nom_bdd , $label, $limite1, $limite2, $defaut, $source, $obligatoire) {
-
 
345
	//AJOUTER UNE IMAGE
-
 
346
	$html_image= '';
-
 
347
	if (isset($GLOBALS['_BAZAR_']["id_fiche"])) {
-
 
348
		$requete = 'SELECT bf_url_image FROM bazar_fiche WHERE bf_id_fiche='.$GLOBALS['_BAZAR_']['id_fiche'];
-
 
349
		$resultat = & $GLOBALS['_BAZAR_']['db'] -> query($requete) ;
-
 
350
		if (DB::isError ($resultat)) {
-
 
351
			die ($GLOBALS['_BAZAR_']['db']->getMessage().$GLOBALS['_BAZAR_']['db']->getDebugInfo()) ;
-
 
352
		}
-
 
353
		
-
 
354
		if ($resultat->numRows()>0) {
-
 
355
			while ($ligne = $resultat->fetchRow(DB_FETCHMODE_OBJECT)) {
-
 
356
				$image=$ligne->bf_url_image;
-
 
357
			}
-
 
358
			if ($image!=NULL) {
-
 
359
				$lien_supprimer=$GLOBALS['_BAZAR_']['url'];
-
 
360
				$lien_supprimer->addQueryString('action', $_GET['action']);
-
 
361
				$lien_supprimer->addQueryString('id_fiche', $GLOBALS['_BAZAR_']["id_fiche"]);
-
 
362
				$lien_supprimer->addQueryString('typeannonce', $_REQUEST['typeannonce']);
-
 
363
				$lien_supprimer->addQueryString('image', 1);
-
 
364
				$html_image = '<tr>'."\n".
-
 
365
							  '<td>'."\n".'<img src="client/bazar/upload/'.$image.'" alt="'.BAZ_TEXTE_IMG_ALTERNATIF.'" width="130" height="130" />'."\n".'</td>'."\n".
-
 
366
							  '<td>'."\n".'<a href="'.$lien_supprimer->getURL().'" onclick="javascript:return confirm(\''.BAZ_CONFIRMATION_SUPPRESSION_IMAGE.'\');" >'.BAZ_SUPPRIMER.'</a><br /><br />'."\n".
-
 
367
							  '<strong>'.BAZ_POUR_CHANGER_IMAGE.'</strong><br />'."\n".'</td>'."\n".'</tr>'."\n";
-
 
368
			}
-
 
369
		}		
-
 
370
	}	
272
	$html ='<tr>'."\n".'<td colspan="2">'."\n".'<h4>'.$label.'</h4>'."\n".'</td>'."\n".'</tr>'."\n";
371
	$html ='<tr>'."\n".'<td colspan="2">'."\n".'<h4>'.$label.'</h4>'."\n".'</td>'."\n".'</tr>'."\n";
273
	$formtemplate->addElement('html', $html) ;
372
	$formtemplate->addElement('html', $html) ;
-
 
373
	if ($html_image!='') $formtemplate->addElement('html', $html_image) ;
274
	$formtemplate->addElement('file', 'image'.$nom_bdd, BAZ_IMAGE) ;
374
	$formtemplate->addElement('file', 'image', BAZ_IMAGE) ;
275
	//TODO: controler si c'est une image
375
	//TODO: controler si c'est une image
276
	$formtemplate->setMaxFileSize($limite1);
376
	$formtemplate->setMaxFileSize($limite1);
277
	//gestion du champs obligatoire
377
	//gestion du champs obligatoire
278
	if (isset($obligatoire)and($obligatoire==1)) {
378
	if (isset($obligatoire)and($obligatoire==1)) {
279
		$formtemplate->addRule('image'.$nom_bdd, BAZ_IMAGE_VALIDE_REQUIS, 'required', '', 'client') ;
379
		$formtemplate->addRule('image', BAZ_IMAGE_VALIDE_REQUIS, 'required', '', 'client') ;
280
	}
380
	}
281
}		
381
}		
Line 293... Line 393...
293
* @param    string  table source pour les valeurs du texte (pas utilisé)
393
* @param    string  table source pour les valeurs du texte (pas utilisé)
294
* @param    string  ce champs est il obligatoire? (required) (pas utilisé)
394
* @param    string  ce champs est il obligatoire? (required) (pas utilisé)
295
* @return   void
395
* @return   void
296
*/
396
*/
297
function labelhtml(&$formtemplate, $nom_bdd , $label, $limite1, $limite2, $defaut, $source, $obligatoire) {
397
function labelhtml(&$formtemplate, $nom_bdd , $label, $limite1, $limite2, $defaut, $source, $obligatoire) {
298
	require_once 'HTML/QuickForm/html.php';
398
	require_once PAP_CHEMIN_API_PEAR.'HTML/QuickForm/html.php';
299
	$formhtml= new HTML_QuickForm_html('<tr>'."\n".'<td colspan="2">'."\n".constant($label)."\n".'</td>'."\n".'</tr>'."\n");
399
	$formhtml= new HTML_QuickForm_html('<tr>'."\n".'<td colspan="2">'."\n".$label."\n".'</td>'."\n".'</tr>'."\n");
300
	$formtemplate->addElement($formhtml) ;
400
	$formtemplate->addElement($formhtml) ;
301
}
401
}
Line 302... Line 402...
302
 
402
 
303
/* +--Fin du code ----------------------------------------------------------------------------------------+
403
/* +--Fin du code ----------------------------------------------------------------------------------------+
304
*
404
*
-
 
405
* $Log: not supported by cvs2svn $
-
 
406
* Revision 1.19  2006/03/02 20:36:52  florian
-
 
407
* les entrees du formulaire de saisir ne sont plus dans les constantes mias dans des tables qui gerent le multilinguisme.
305
* $Log: not supported by cvs2svn $
408
*
306
* Revision 1.18  2006/03/01 16:01:46  florian
409
* Revision 1.18  2006/03/01 16:01:46  florian
307
* correction bug déclaration variable $html
410
* correction bug déclaration variable $html
308
*
411
*
309
* Revision 1.17  2006/01/30 10:27:03  florian
412
* Revision 1.17  2006/01/30 10:27:03  florian