Subversion Repositories Applications.bazar

Compare Revisions

Ignore whitespace Rev 85 → Rev 86

/trunk/bibliotheque/bazar.fonct.php
19,7 → 19,7
// | License along with this library; if not, write to the Free Software |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
// +------------------------------------------------------------------------------------------------------+
// CVS : $Id: bazar.fonct.php,v 1.37 2006-01-24 14:11:11 alexandre_tb Exp $
// CVS : $Id: bazar.fonct.php,v 1.38 2006-01-30 10:27:04 florian Exp $
/**
*
* Fonctions du module bazar
31,7 → 31,7
*@author Florian Schmitt <florian@ecole-et-nature.org>
//Autres auteurs :
*@copyright Tela-Botanica 2000-2004
*@version $Revision: 1.37 $ $Date: 2006-01-24 14:11:11 $
*@version $Revision: 1.38 $ $Date: 2006-01-30 10:27:04 $
// +------------------------------------------------------------------------------------------------------+
*/
 
461,8 → 461,8
$res = '';
//requete pour obtenir le nom et la description des types d'annonce
$requete = "SELECT bn_id_nature, bn_label_nature, bn_description, bn_condition, bn_image_titre ".
"FROM bazar_nature WHERE bn_ce_id_menu=".$GLOBALS['_GEN_commun']['info_menu']->gm_id_menu.
" or bn_ce_id_menu=0 ORDER BY bn_label_nature ASC";
"FROM bazar_nature WHERE bn_ce_id_menu=".$GLOBALS['_BAZAR_']['categorie_nature'].
" ORDER BY bn_label_nature ASC";
$resultat = $GLOBALS['_BAZAR_']['db']->query($requete) ;
if (DB::isError($resultat)) {
die ($resultat->getMessage().$resultat->getDebugInfo()) ;
473,11 → 473,11
$droitspers=niveau_droit($ligne["bn_id_nature"],$GLOBALS["id_user"]);
if (($droitspers=='redacteur') or ($droitspers=='administrateur')
or ($droitspers=='superadministrateur' or !BAZ_RESTREINDRE_DEPOT)) {
if (isset($ligne['bn_image_titre'])) {
if ($ligne['bn_image_titre']!='') {
$titre='&nbsp;<img src="client/bazar/images/'.$ligne['bn_image_titre'].'" alt="'.
constant($ligne['bn_label_nature']).'" />'.'<br />'."\n";
} else {
$titre='<strong>'.constant($ligne['bn_label_nature']).' : </strong><br />'."\n";
$titre='<h3>'.constant($ligne['bn_label_nature']).' : </h3>'."\n";
}
$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;'));
}
569,7 → 569,7
}
//affichage du formulaire si conditions acceptées
else {
//Parcours du fichier de templates, pour mettre les champs specifiques
//Parcours du fichier de templates, pour mettre les valeurs des champs
$tableau=baz_valeurs_template($GLOBALS['_BAZAR_']['template']);
if ($mode=='modification') {
//Ajout des valeurs par defaut
1291,6 → 1291,9
/* +--Fin du code ----------------------------------------------------------------------------------------+
*
* $Log: not supported by cvs2svn $
* Revision 1.37 2006/01/24 14:11:11 alexandre_tb
* correction de bug sur l'ajout d'une image et d'un fichier
*
* Revision 1.36 2006/01/19 17:42:11 florian
* ajout des cases à cocher pré-cochées pour les maj
*