Subversion Repositories Applications.bazar

Compare Revisions

Ignore whitespace Rev 59 → Rev 60

/trunk/configuration/baz_config.inc.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: baz_config.inc.php,v 1.8 2005-10-24 09:42:21 florian Exp $
// CVS : $Id: baz_config.inc.php,v 1.9 2005-12-16 15:47:54 alexandre_tb Exp $
/**
* Fichier de configuration du bazar
*
31,7 → 31,7
*@author Florian SCHMITT <florian@ecole-et-nature.org>
//Autres auteurs :
*@copyright Tela-Botanica 2000-2004
*@version $Revision: 1.8 $ $Date: 2005-10-24 09:42:21 $
*@version $Revision: 1.9 $ $Date: 2005-12-16 15:47:54 $
// +------------------------------------------------------------------------------------------------------+
*/
//==================================== LES FLUX RSS==================================
70,7 → 70,11
define ('BAZ_CHAMPS_PRENOM','ga_prenom'); //Champs prenom sur la table annuaire
define ('BAZ_CHAMPS_STRUCTURE','ga_structure'); //Champs indiquant si c'est une structure qui est identifiée
define ('BAZ_CHAMPS_EMAIL','ga_mail'); //Champs prenom sur la table annuaire
 
/** Réglage des droits pour déposer des annoces */
// Mettre à true pour limiter le dépot aux rédacteurs
define ('BAZ_RESTREINDRE_DEPOT', false) ;
 
$GLOBALS['_BAZAR_']['url'] = $GLOBALS['_GEN_commun']['url'];
//BAZ_CHEMIN_APPLI : chemin vers l'application bazar METTRE UN SLASH (/) A LA FIN!!!!
define('BAZ_CHEMIN_APPLI', PAP_CHEMIN_RACINE.'client/bazar/');
92,6 → 96,9
/* +--Fin du code ----------------------------------------------------------------------------------------+
*
* $Log: not supported by cvs2svn $
* Revision 1.8 2005/10/24 09:42:21 florian
* mise a jour appropriation
*
* Revision 1.7 2005/10/21 16:15:04 florian
* mise a jour appropriation
*
/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.23 2005-12-01 17:03:34 florian Exp $
// CVS : $Id: bazar.fonct.php,v 1.24 2005-12-16 15:44:40 alexandre_tb Exp $
/**
*
* Fonctions du module bazar
30,7 → 30,7
*@author Florian Schmitt <florian@ecole-et-nature.org>
//Autres auteurs :
*@copyright Tela-Botanica 2000-2004
*@version $Revision: 1.23 $ $Date: 2005-12-01 17:03:34 $
*@version $Revision: 1.24 $ $Date: 2005-12-16 15:44:40 $
// +------------------------------------------------------------------------------------------------------+
*/
 
310,7 → 310,9
$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 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";
$requete = "SELECT bn_id_nature, bn_label_nature, bn_description, bn_condition ".
"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";
$resultat = $GLOBALS['_BAZAR_']['db']->query($requete) ;
if (DB::isError($resultat)) {
die ($resultat->getMessage().$resultat->getDebugInfo()) ;
319,7 → 321,7
$res.=BAZ_CHOIX_TYPEANNONCE.'<br />';
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')) {
if (($droitspers=='redacteur') or ($droitspers=='administrateur') or ($droitspers=='superadministrateur' or !BAZ_RESTREINDRE_DEPOT)) {
$formtemplate->addElement('radio', 'typeannonce', '', '<strong>'.$ligne['bn_label_nature'].
':</strong><br />'.$ligne['bn_description'], $ligne['bn_label_nature'], array("id" => 'select'.$ligne['bn_id_nature'], "style" => 'float:left;'));
}
1343,6 → 1345,9
/* +--Fin du code ----------------------------------------------------------------------------------------+
*
* $Log: not supported by cvs2svn $
* Revision 1.23 2005/12/01 17:03:34 florian
* changement des chemins pour appli Pear
*
* Revision 1.22 2005/12/01 16:05:41 florian
* changement des chemins pour appli Pear
*