Subversion Repositories Applications.bazar

Compare Revisions

Ignore whitespace Rev 115 → Rev 116

/trunk/bibliotheque/bazar.fonct.rss.php
1,4 → 1,8
<?php
 
require_once BAZ_CHEMIN_APPLI.'bibliotheque/bazar.class.php';
require_once BAZ_CHEMIN_APPLI.'bibliotheque/bazar.fonct.php';
 
/** baz_valeur_template() - Renvoi des valeurs inscrite dans le fichier de template
*
* @param string valeur du template de bazar_nature
354,7 → 358,7
$option=array('style'=>'width:300px;', 'maxlength'=>100);
$form_commentaire->addElement('text', 'Nom', BAZ_ENTREZ_VOTRE_NOM, $option);
$option=array('style'=>'width:100%;height:100px;white-space: pre;padding:3px;');
require_once 'HTML/QuickForm/textarea.php';
require_once PAP_CHEMIN_API_PEAR.'HTML/QuickForm/textarea.php';
$formtexte= new HTML_QuickForm_textarea('Commentaire', BAZ_ENTREZ_VOTRE_COMMENTAIRE, $option);
$form_commentaire->addElement($formtexte) ;
$form_commentaire->addElement('submit', 'Envoyer', BAZ_ENVOYER);
669,7 → 673,7
$tableau = baz_valeurs_template($resultat) ;
for ($i=0; $i<count($tableau); $i++) {
if ($tableau[$i]['type'] == 'liste' || $tableau[$i]['type'] == 'checkbox') {
if (($tableau[$i]['type'] == 'liste' || $tableau[$i]['type'] == 'checkbox') && $tableau[$i]['recherche'] == 1) {
if ($tableau[$i]['type'] == 'checkbox') {
$formtemplate->addElement ('html', '<br />'.$tableau[$i]['label'].'<br />') ;
}