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.php,v 1.38 2006-01-30 10:27:04 florian Exp $
|
22 |
// CVS : $Id: bazar.fonct.php,v 1.39 2006-01-30 17:25:38 alexandre_tb Exp $
|
23 |
/**
|
23 |
/**
|
24 |
*
|
24 |
*
|
25 |
* Fonctions du module bazar
|
25 |
* Fonctions du module bazar
|
26 |
*
|
26 |
*
|
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 |
*@author Florian Schmitt <florian@ecole-et-nature.org>
|
31 |
*@author Florian Schmitt <florian@ecole-et-nature.org>
|
32 |
//Autres auteurs :
|
32 |
//Autres auteurs :
|
33 |
*@copyright Tela-Botanica 2000-2004
|
33 |
*@copyright Tela-Botanica 2000-2004
|
34 |
*@version $Revision: 1.38 $ $Date: 2006-01-30 10:27:04 $
|
34 |
*@version $Revision: 1.39 $ $Date: 2006-01-30 17:25:38 $
|
35 |
// +------------------------------------------------------------------------------------------------------+
|
35 |
// +------------------------------------------------------------------------------------------------------+
|
36 |
*/
|
36 |
*/
|
Line 37... |
Line 37... |
37 |
|
37 |
|
38 |
// +------------------------------------------------------------------------------------------------------+
|
38 |
// +------------------------------------------------------------------------------------------------------+
|
Line 434... |
Line 434... |
434 |
}
|
434 |
}
|
435 |
if ($mode == BAZ_ACTION_MODIFIER_V) {
|
435 |
if ($mode == BAZ_ACTION_MODIFIER_V) {
|
436 |
$lien_formulaire->addQueryString('action', BAZ_ACTION_MODIFIER_V);
|
436 |
$lien_formulaire->addQueryString('action', BAZ_ACTION_MODIFIER_V);
|
437 |
$lien_formulaire->addQueryString('id_fiche', $GLOBALS['_BAZAR_']['id_fiche']);
|
437 |
$lien_formulaire->addQueryString('id_fiche', $GLOBALS['_BAZAR_']['id_fiche']);
|
438 |
}
|
438 |
}
|
439 |
if (!isset($GLOBALS['_BAZAR_']['id_typeannonce'])) $lien_formulaire->addQueryString('action', BAZ_ACTION_NOUVEAU);
|
439 |
if (isset($GLOBALS['_BAZAR_']['id_typeannonce']) && ($GLOBALS['_BAZAR_']['id_typeannonce'] != 'toutes')) {
|
- |
|
440 |
$lien_formulaire->addQueryString('action', BAZ_ACTION_NOUVEAU);
|
- |
|
441 |
$mode = BAZ_ACTION_NOUVEAU ;
|
- |
|
442 |
}
|
Line 440... |
Line 443... |
440 |
|
443 |
|
441 |
//contruction du squelette du formulaire
|
444 |
//contruction du squelette du formulaire
|
442 |
$formtemplate = new HTML_QuickForm('formulaire', 'post', preg_replace ('/&/', '&', $lien_formulaire->getURL()) );
|
445 |
$formtemplate = new HTML_QuickForm('formulaire', 'post', preg_replace ('/&/', '&', $lien_formulaire->getURL()) );
|
443 |
$squelette =& $formtemplate->defaultRenderer();
|
446 |
$squelette =& $formtemplate->defaultRenderer();
|
Line 477... |
Line 480... |
477 |
$titre=' <img src="client/bazar/images/'.$ligne['bn_image_titre'].'" alt="'.
|
480 |
$titre=' <img src="client/bazar/images/'.$ligne['bn_image_titre'].'" alt="'.
|
478 |
constant($ligne['bn_label_nature']).'" />'.'<br />'."\n";
|
481 |
constant($ligne['bn_label_nature']).'" />'.'<br />'."\n";
|
479 |
} else {
|
482 |
} else {
|
480 |
$titre='<h3>'.constant($ligne['bn_label_nature']).' : </h3>'."\n";
|
483 |
$titre='<h3>'.constant($ligne['bn_label_nature']).' : </h3>'."\n";
|
481 |
}
|
484 |
}
|
- |
|
485 |
$formtemplate->addElement('radio', 'typeannonce', '',
|
- |
|
486 |
$titre.$ligne['bn_description'].'<br /><br />'."\n",
|
482 |
$formtemplate->addElement('radio', 'typeannonce', '', $titre.$ligne['bn_description'].'<br /><br />'."\n", $ligne['bn_id_nature'], array("id" => 'select'.$ligne['bn_id_nature'], "style" => 'float:left;'));
|
487 |
$ligne['bn_id_nature'], array("id" => 'select'.$ligne['bn_id_nature'],
|
- |
|
488 |
"style" => 'float:left;'));
|
483 |
}
|
489 |
}
|
484 |
}
|
490 |
}
|
485 |
$squelette->setElementTemplate( '<div class="listechoix">'."\n".'{element}'."\n".'</div>'."\n");
|
491 |
$squelette->setElementTemplate( '<div class="listechoix">'."\n".'{element}'."\n".'</div>'."\n");
|
Line 486... |
Line 492... |
486 |
|
492 |
|
Line 1289... |
Line 1295... |
1289 |
}
|
1295 |
}
|
Line 1290... |
Line 1296... |
1290 |
|
1296 |
|
1291 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
1297 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
1292 |
*
|
1298 |
*
|
- |
|
1299 |
* $Log: not supported by cvs2svn $
|
- |
|
1300 |
* Revision 1.38 2006/01/30 10:27:04 florian
|
- |
|
1301 |
* - ajout des entrées de formulaire fichier, url, et image
|
- |
|
1302 |
* - correction bug d'affichage du mode de saisie
|
1293 |
* $Log: not supported by cvs2svn $
|
1303 |
*
|
1294 |
* Revision 1.37 2006/01/24 14:11:11 alexandre_tb
|
1304 |
* Revision 1.37 2006/01/24 14:11:11 alexandre_tb
|
1295 |
* correction de bug sur l'ajout d'une image et d'un fichier
|
1305 |
* correction de bug sur l'ajout d'une image et d'un fichier
|
1296 |
*
|
1306 |
*
|
1297 |
* Revision 1.36 2006/01/19 17:42:11 florian
|
1307 |
* Revision 1.36 2006/01/19 17:42:11 florian
|