Subversion Repositories Applications.bazar

Compare Revisions

Ignore whitespace Rev 64 → Rev 65

/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.26 2006-01-03 10:19:31 florian Exp $
// CVS : $Id: bazar.fonct.php,v 1.27 2006-01-04 15:30:56 alexandre_tb 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.26 $ $Date: 2006-01-03 10:19:31 $
*@version $Revision: 1.27 $ $Date: 2006-01-04 15:30:56 $
// +------------------------------------------------------------------------------------------------------+
*/
 
313,7 → 313,7
//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";
" or bn_ce_id_menu=0 ORDER BY bn_label_nature ASC";echo $requete;
$resultat = $GLOBALS['_BAZAR_']['db']->query($requete) ;
if (DB::isError($resultat)) {
die ($resultat->getMessage().$resultat->getDebugInfo()) ;
322,9 → 322,14
$res.='<br />'.BAZ_CHOIX_TYPEANNONCE.'<br /><br />'."\n";
while ($ligne = $resultat->fetchRow (DB_FETCHMODE_ASSOC)) {
$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'])) {$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";}
if (($droitspers=='redacteur') or ($droitspers=='administrateur')
or ($droitspers=='superadministrateur' or !BAZ_RESTREINDRE_DEPOT)) {
if (isset($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";
}
$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;'));
}
}
1348,6 → 1353,9
/* +--Fin du code ----------------------------------------------------------------------------------------+
*
* $Log: not supported by cvs2svn $
* Revision 1.26 2006/01/03 10:19:31 florian
* Mise à jour pour accepter des parametres dans papyrus: faire apparaitre ou non le menu, afficher qu'un type de fiches, définir l'action par défaut...
*
* Revision 1.25 2005/12/20 14:49:35 ddelon
* Fusion Head vers Livraison
*