/trunk/bazar.php |
---|
1,3 → 1,4 |
<?php |
/*vim: set expandtab tabstop=4 shiftwidth=4: */ |
// +------------------------------------------------------------------------------------------------------+ |
19,7 → 20,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.php,v 1.10 2005-10-12 17:20:33 ddelon Exp $ |
// CVS : $Id: bazar.php,v 1.11 2005-10-21 16:15:04 florian Exp $ |
/** |
* |
*@package bazar |
28,7 → 29,7 |
*@author Florian Schmitt <florian@ecole-et-nature.org> |
//Autres auteurs : |
*@copyright Tela-Botanica 2000-2004 |
*@version $Revision: 1.10 $ $Date: 2005-10-12 17:20:33 $ |
*@version $Revision: 1.11 $ $Date: 2005-10-21 16:15:04 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
207,6 → 208,9 |
/* +--Fin du code ----------------------------------------------------------------------------------------+ |
* |
* $Log: not supported by cvs2svn $ |
* Revision 1.10 2005/10/12 17:20:33 ddelon |
* Reorganisation calendrier + applette |
* |
* Revision 1.9 2005/10/12 13:35:07 florian |
* amélioration de l'interface de bazar, de manière a simplifier les consultations, et à harmoniser par rapport aux Ressources |
* |
/trunk/bazar.interne.css |
---|
13,13 → 13,13 |
#BAZ_menu {height:23px;width:100%;font: normal 12px Georgia, serif;margin: 10px 0 10px 0;} |
#BAZ_menu a {text-decoration: none;display: block;width: 8em;} |
#BAZ_menu ul {padding: 0;} |
#BAZ_menu li {text-align:center;padding: 2px;margin: 0;float: left;list-style: none;list-style-type:none;background:transparent; |
#BAZ_menu li {text-align:center;padding: 2px;margin: 0;float: left;list-style: none;list-style-type:none;background:#FFF; |
border-left: 3px solid #849950;border-right: 3px solid #849950;border-bottom: 2px solid #849950;} |
#BAZ_menu li:hover {color: #FFF;background-color: #B1BB7E;} |
#BAZ_menu li ul {position: absolute;background:#FFF;border: 1px solid #849950;left: -999em;width: 8.6em;z-index:14;} |
#BAZ_menu li:hover ul {left: auto;margin: 2px 0 0 -6px;z-index:15;} |
#BAZ_menu ul li a:hover {color: #FFF;} |
.enligne {display:inline;} |
.enligne {padding:0;display:inline;list-style: none;list-style-type:none;background:#FFF;} |
/*-------------Les fiches Bazar-------------------------------------------------*/ |
.BAZ_cadre_fiche {color:#000;margin:0 auto;width:654px;} |
.BAZ_cadre_fiche a {font: 13px arial, sans-serif;color:#000;text-decoration:none;} |
/trunk/bazar.calendrier.php |
---|
32,7 → 32,7 |
// pris connaissance de la licence CeCILL, et que vous en avez accepté les |
// termes. |
// ---- |
// CVS : $Id: bazar.calendrier.php,v 1.6 2005-10-14 12:59:24 ddelon Exp $ |
// CVS : $Id: bazar.calendrier.php,v 1.7 2005-10-21 16:15:04 florian Exp $ |
/** |
* bazar_calendrier : programme affichant les evenements du bazar sous forme de Calendrier |
* |
40,7 → 40,7 |
*@package Bazar |
//Auteur original : |
*@author David DELON <david.delon@clapas.net> |
*@version $Revision: 1.6 $ $Date: 2005-10-14 12:59:24 $ |
*@version $Revision: 1.7 $ $Date: 2005-10-21 16:15:04 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
if (!defined('BAZ_VOIR_FICHE')) { |
55,7 → 55,7 |
function afficherContenuCorps() { |
return GestionAffichageCalendrier('calendrier'); |
return GestionAffichageCalendrier(''); |
} |
/trunk/langues/baz_langue_fr.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_langue_fr.inc.php,v 1.16 2005-10-18 12:46:42 alexandre_tb Exp $ |
// CVS : $Id: baz_langue_fr.inc.php,v 1.17 2005-10-21 16:15:04 florian Exp $ |
/** |
* Fichier de traduction en français de l'application Bazar |
* |
30,7 → 30,7 |
//Autres auteurs : |
*@author Aucun |
*@copyright Tela-Botanica 2000-2004 |
*@version $Revision: 1.16 $ $Date: 2005-10-18 12:46:42 $ |
*@version $Revision: 1.17 $ $Date: 2005-10-21 16:15:04 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
define ('BAZ_TITREAPPLI','Gestionnaire d\'annonces et de ressources (Bazar) '); |
104,9 → 104,9 |
define ('BAZ_ADMIN_ANNONCES', 'Modifier les types de fiches'); |
define ('BAZ_RECHERCHER_DES_ANNONCES', 'Rechercher des fiches'); |
define ('BAZ_RECHERCHE_AVANCEE', 'Recherche avancée'); |
define ('BAZ_DESCRIPTION_RECHERCHE', 'En précisant, ci dessus, le type de fiche cherché, vous pourrez obtenir des fonctions de recherche avancée.'); |
define ('BAZ_DESCRIPTION_RECHERCHE', 'En précisant, ci dessus, le type de fiche cherché, vous pourrez obtenir des fonctions de recherche avancé.'); |
define ('BAZ_PAS_D_ANNONCES', 'Pas de fiches trouvées.'); |
define ('BAZ_S_INSCRIRE_AUX_ANNONCES', 'S\'abonner é un type de fiches'); |
define ('BAZ_S_INSCRIRE_AUX_ANNONCES', 'S\'abonner à un type de fiches'); |
define ('BAZ_ABONNE', 'Abonné'); |
define ('BAZ_PAS_ABONNE', 'Pas abonné'); |
define ('BAZ_S_ABONNER', 'S\'abonner'); |
113,7 → 113,7 |
define ('BAZ_LAIUS_S_ABONNER', 'Il y a deux manières de s\'abonner:<br />- soit en s\'abonnant pour recevoir les fiches par mails<br />- soit par flux RSS'); |
define ('BAZ_SE_DESABONNER', 'Se désabonner'); |
define ('BAZ_RSS', 'Flux RSS'); |
define ('BAZ_DERNIERE_ACTU', 'Dernières actualités'); |
define ('BAZ_DERNIERE_ACTU', 'Derni&egrzve;res actualités'); |
define ('BAZ_A_MODERER',' à modérer'); |
define ('BAZ_CONSULTER','Consulter'); |
define ('BAZ_SAISIR','Saisir'); |
122,7 → 122,7 |
define ('BAZ_NB_VUS','Cette fiche a été consultée '); |
define ('BAZ_FOIS', ' fois depuis sa création.'); |
define ('BAZ_LES_COMMENTAIRES', 'Les commentaires sur cette fiche'); |
define ('BAZ_PAS_DE_COMMENTAIRES', 'Pas de commentaires postés pour l\'instant, vous êtes le (la) premier (première) !!'); |
define ('BAZ_PAS_DE_COMMENTAIRES', 'Pas de commentaires postés pour l\'instant, vous êtes le (la) premier (première) !!'); |
define ('BAZ_IL_Y_A', 'Il y a '); |
define ('BAZ_COMMENTAIRE', 'commentaire : '); |
define ('BAZ_COMMENTAIRES', 'commentaires : '); |
131,7 → 131,7 |
define ('BAZ_ENVOYER','Envoyer'); |
define ('BAZ_NOM_REQUIS', 'Le champs nom ne doit pas rester vide'); |
define ('BAZ_COMMENTAIRE_REQUIS', 'Le champs commentaire ne doit pas rester vide'); |
define ('BAZ_RESUME', 'Résumé') ; |
define ('BAZ_LES_STRUCTURES_POSSEDANT_UNE_RESSOURCE', 'Les structures possédant cette ressource'); |
//================Textes pour les formations==================================== |
define ('BAZ_TITRE_FORMATION','Intitulé de la formation'); |
205,7 → 205,7 |
define ('BAZ_LIEU_EVENEMENT', 'Lieu de l\'évenement' ); |
define ('BAZ_LIEU_EVENEMENT_REQUIS', 'Le lieu de l\'évenement est requis!!') ; |
define ('BAZ_PAS_UNE_IMAGE', 'Ce fichier n\'est pas une image.' ); |
define ('BAZ_AJOUTER_IMAGE', 'Pour l\'instant, pas d\'image associée é l\'annonce, vous pouvez en ajouter une ci-dessous.' ); |
define ('BAZ_AJOUTER_IMAGE', 'Pour l\'instant, pas d\'image associée à l\'annonce, vous pouvez en ajouter une ci-dessous.' ); |
define ('BAZ_IMAGE', 'Image pour l\'annonce (facultatif)' ); |
define ('BAZ_IMAGE_VALIDE_REQUIS', 'Le fichier image n\'est pas valide.') ; |
236,7 → 236,7 |
define ('BAZ_AJOUTER_FICHIER_JOINT','Ajouter un fichier joint à l\'annonce'); |
define ('BAZ_FICHIER_JOINT', 'Fichier joint' ); |
define ('BAZ_LISTE_FICHIERS_JOINTS', 'Fichiers associés à l\'annonce '); |
define ('BAZ_PAS_DE_FICHIERS_JOINTS', 'Pour l\'instant, pas de fichier associé à l\'annonce, vous pouvez en ajouter ci-dessous.'); |
define ('BAZ_PAS_DE_FICHIERS_JOINTS', 'Pour l\'instant, pas de fichier associé à l\'annonce, vous pouvez en ajouter ci-dessous.'); |
define ('BAZ_FICHIER','Fichier'); |
define ('BAZ_FICHIER_JOINT_REQUIS', 'Le fichier joint est requis!!') ; |
define ('BAZ_FICHIER_DESCRIPTION', 'Description du fichier' ); |
275,7 → 275,7 |
define ('BAZ_LANGUE','Langue'); |
define ('BAZ_THEMEs',''); |
define ('BAZ_IDENTIFIEZ_VOUS_POUR_SAISIR', 'Pour saisir des annonces ou s\'abonner, identifiez-vous.'); |
define ('BAZ_IDENTIFIEZ_VOUS_POUR_SAISIR', 'Pour saisir des annonces ou s\'abonner:<br /> identifiez-vous (en bas à droite), ou inscrivez-vous (le "+" en haut à gauche)'); |
define ('BAZ_EST_SUPERADMINISTRATEUR', 'Cette personne est un super-administrateur.<br />Il peut modifier le droits des utilisateurs et administrer toutes les rubriques d\'annonces.'); |
define ('BAZ_CHANGER_SUPERADMINISTRATEUR', 'Changer ses droits de super-administrateur pour en faire un utilisateur sans pouvoir'); |
define ('BAZ_AUCUN_DROIT', 'utilisateur sans pouvoir'); |
304,15 → 304,7 |
define ('BAZ_SAMEDI','Samedi'); |
define ('BAZ_DIMANCHE','Dimanche'); |
define ('BAZ_LUNDI_COURT','Lun'); |
define ('BAZ_MARDI_COURT','Mar'); |
define ('BAZ_MERCREDI_COURT','Mer'); |
define ('BAZ_JEUDI_COURT','Jeu'); |
define ('BAZ_VENDREDI_COURT','Ven'); |
define ('BAZ_SAMEDI_COURT','Sam'); |
define ('BAZ_DIMANCHE_COURT','Dim'); |
define ('BAZ_JANVIER','Janvier'); |
define ('BAZ_FEVRIER','Février'); |
define ('BAZ_MARS','Mars'); |
320,7 → 312,7 |
define ('BAZ_MAI','Mai'); |
define ('BAZ_JUIN','Juin'); |
define ('BAZ_JUILLET','Juillet'); |
define ('BAZ_AOUT','Août'); |
define ('BAZ_AOUT','Aoút'); |
define ('BAZ_SEPTEMBRE','Septembre'); |
define ('BAZ_OCTOBRE','Octobre'); |
define ('BAZ_NOVEMBRE','Novembre'); |
329,40 → 321,34 |
/* +--Fin du code ----------------------------------------------------------------------------------------+ |
* |
* $Log: not supported by cvs2svn $ |
* Revision 1.15 2005/10/17 16:18:13 alexandre_tb |
* ajout de label |
* |
* Revision 1.14 2005/10/14 12:59:24 ddelon |
* Reorganisation calendrier + applette |
* |
* Revision 1.13 2005/10/13 14:43:42 florian |
* corrections pb accents |
* |
* Revision 1.12 2005/10/12 16:28:37 florian |
* corrections fautes orthographes |
* |
* Revision 1.11 2005/10/12 16:27:22 florian |
* ajout textes des Ressources |
* |
* Revision 1.10 2005/10/12 16:17:37 florian |
* corrections pb accents |
* |
* Revision 1.9 2005/10/12 16:12:34 florian |
* corrections pb accents |
* |
* Revision 1.8 2005/10/12 15:31:43 florian |
* corrections pb accents |
* |
* Revision 1.7 2005/10/10 16:22:06 alexandre_tb |
* Modification de label pour les rendre plus générique |
* |
* Revision 1.6 2005/09/30 23:04:31 ddelon |
* calendrier bazar |
* |
* Revision 1.5 2005/09/30 12:22:54 florian |
* Ajouts commentaires pour fiche, modifications graphiques, maj SQL |
* $Log: not supported by cvs2svn $ |
* Revision 1.13 2005/10/13 14:43:42 florian |
* corrections pb accents |
* |
* Revision 1.12 2005/10/12 16:28:37 florian |
* corrections fautes orthographes |
* |
* Revision 1.11 2005/10/12 16:27:22 florian |
* ajout textes des Ressources |
* |
* Revision 1.10 2005/10/12 16:17:37 florian |
* corrections pb accents |
* |
* Revision 1.9 2005/10/12 16:12:34 florian |
* corrections pb accents |
* |
* Revision 1.8 2005/10/12 15:31:43 florian |
* corrections pb accents |
* |
* Revision 1.7 2005/10/10 16:22:06 alexandre_tb |
* Modification de label pour les rendre plus générique |
* |
* Revision 1.6 2005/09/30 23:04:31 ddelon |
* calendrier bazar |
* |
* Revision 1.5 2005/09/30 12:22:54 florian |
* Ajouts commentaires pour fiche, modifications graphiques, maj SQL |
* |
* Revision 1.3 2005/07/21 19:03:12 florian |
* nouveautés bazar: templates fiches, correction de bugs, ... |
* |
/trunk/presentations/styles/calendrier.applette.css |
---|
New file |
0,0 → 1,16 |
#bazar_applette_calendrier .navi { |
font-size: 6px; |
text-align: left; |
} |
#bazar_applette_calendrier table.calendar td { |
height: 4em; |
width: 20%; |
font-size: 6px; |
} |
#bazar_applette_calendrier table.calendar th { |
display:none; |
} |
/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.6 2005-09-30 12:22:54 florian Exp $ |
// CVS : $Id: baz_config.inc.php,v 1.7 2005-10-21 16:15:04 florian 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.6 $ $Date: 2005-09-30 12:22:54 $ |
*@version $Revision: 1.7 $ $Date: 2005-10-21 16:15:04 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
//==================================== LES FLUX RSS================================== |
60,6 → 60,7 |
define ('BAZ_TAILLE_MAX_FICHIER',2000*1024); |
//Valeur maximale en octets pour la taille d'un fichier joint à télécharger |
define ('BAZ_TYPE_AFFICHAGE_LISTE', ''); |
$GLOBALS['_BAZAR_']['db'] = & $GLOBALS['_GEN_commun']['pear_db']; |
$GLOBALS['AUTH'] =& $GLOBALS['_GEN_commun']['pear_auth']; |
90,6 → 91,9 |
/* +--Fin du code ----------------------------------------------------------------------------------------+ |
* |
* $Log: not supported by cvs2svn $ |
* Revision 1.6 2005/09/30 12:22:54 florian |
* Ajouts commentaires pour fiche, modifications graphiques, maj SQL |
* |
* Revision 1.4 2005/07/21 19:03:12 florian |
* nouveautés bazar: templates fiches, correction de bugs, ... |
* |
/trunk/bazar.calendrier.applette.php |
---|
32,7 → 32,7 |
// pris connaissance de la licence CeCILL, et que vous en avez accepté les |
// termes. |
// ---- |
// CVS : $Id: bazar.calendrier.applette.php,v 1.4 2005-10-17 13:41:34 ddelon Exp $ |
// CVS : $Id: bazar.calendrier.applette.php,v 1.5 2005-10-21 16:15:04 florian Exp $ |
/** |
* bazar_calendrier : programme affichant les evenements du bazar sous forme de Calendrier |
* |
40,7 → 40,7 |
*@package Bazar |
//Auteur original : |
*@author David DELON <david.delon@clapas.net> |
*@version $Revision: 1.4 $ $Date: 2005-10-17 13:41:34 $ |
*@version $Revision: 1.5 $ $Date: 2005-10-21 16:15:04 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
59,12 → 59,16 |
$_GEN_commun['info_applette_nom_fonction'] = $GLOBALS['_CAL_']['nom_fonction']; |
// Balise : CLIENT_BAZAR_CALENDRIER |
$_GEN_commun['info_applette_balise'] = 'BAZAR_CALENDRIER'; |
GEN_stockerStyleExterne ('bazar.calendrier.applette', 'client/bazar/presentations/styles/calendrier.applette.css') ; |
function afficherCalendrier() { |
return GestionAffichageCalendrier('calendrier_applette'); |
return GestionAffichageCalendrier(''); |
} |
?> |
?> |
/trunk/bibliotheque/bazar.fonct.cal.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.cal.php,v 1.2 2005-10-14 12:59:24 ddelon Exp $ |
// CVS : $Id: bazar.fonct.cal.php,v 1.3 2005-10-21 16:15:04 florian Exp $ |
/** |
* |
* Fonctions calendrier du module bazar |
29,7 → 29,7 |
*@author David Delon <david.delon@clapas.net> |
//Autres auteurs : |
*@copyright Tela-Botanica 2000-2004 |
*@version $Revision: 1.2 $ $Date: 2005-10-14 12:59:24 $ |
*@version $Revision: 1.3 $ $Date: 2005-10-21 16:15:04 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
64,10 → 64,7 |
} |
// $type : calendrier |
// $type : calendrier_appplette |
function GestionAffichageCalendrier($type='calendrier') { |
function GestionAffichageCalendrier($prefixe_cal) { |
$retour=''; |
125,9 → 122,8 |
$retour.="<br></br>"; |
// Vue Mois calendrier ou vue applette |
if ((!isset($_GET['id_fiche']) && ($type=='calendrier')) || ($type=='calendrier_applette')){ |
// Vue Mois |
if (!isset($_GET['id_fiche'])) { |
// Recherche evenement de la periode selectionnée |
170,36 → 166,19 |
$month->build($selection); |
if ($type=='calendrier') { |
$retour.= "<table class=\"calendar\"> |
<tr> |
<th> ". BAZ_LUNDI ."</th> |
<th> ". BAZ_MARDI ."</th> |
<th> ". BAZ_MERCREDI ."</th> |
<th> ". BAZ_JEUDI ."</th> |
<th> ". BAZ_VENDREDI ."</th> |
<th> ". BAZ_SAMEDI ."</th> |
<th> ". BAZ_DIMANCHE ."</th> |
</tr> |
"; |
} |
else { |
$retour.= "<table class=\"calendar\"> |
<tr> |
<th> ". BAZ_LUNDI_COURT ."</th> |
<th> ". BAZ_MARDI_COURT ."</th> |
<th> ". BAZ_MERCREDI_COURT ."</th> |
<th> ". BAZ_JEUDI_COURT ."</th> |
<th> ". BAZ_VENDREDI_COURT ."</th> |
<th> ". BAZ_SAMEDI_COURT ."</th> |
<th> ". BAZ_DIMANCHE_COURT ."</th> |
</tr> |
"; |
} |
$retour.= "<table class=\"calendar\"> |
<tr> |
<th> ". BAZ_LUNDI ."</th> |
<th> ". BAZ_MARDI ."</th> |
<th> ". BAZ_MERCREDI ."</th> |
<th> ". BAZ_JEUDI ."</th> |
<th> ". BAZ_VENDREDI ."</th> |
<th> ". BAZ_SAMEDI ."</th> |
<th> ". BAZ_DIMANCHE ."</th> |
</tr> |
"; |
$todayStamp=time(); |
$today_ymd=date('Ymd',$todayStamp); |
239,36 → 218,16 |
if ($day->isFirst()) |
$retour.= ( "<tr>\n" ); |
//$retour.= ( "<td class=\"".$class."\"><a href=\"".$link."\">".$day->thisDay()."</a>\n" ); |
$retour.= ( "<td class=\"".$class."\"><a href=\"".$link."\">".$day->thisDay()."</a>\n" ); |
if ($type=='calendrier') { |
$retour.= "<td class=\"".$class."\">".$day->thisDay()."\n"; |
if ($day->isSelected() ) { |
$evenements=$day->getEntry(); |
while ($ligne_evenement=array_pop($evenements)) { |
$id_fiches=array(); |
$id_fiches[]=$ligne_evenement->bf_id_fiche; |
$url->addQueryString ('id_fiches',$id_fiches); |
$link = $url->getUrl(); |
$retour.= "<a href=\"".$link."\">".$ligne_evenement->bf_titre."</a>\n"; |
$url->removeQueryString ('id_fiches'); |
} |
} |
} |
else { |
$lien_date= "<td class=\"".$class."\">".$day->thisDay()."\n"; |
if ($day->isSelected() ) { |
$evenements=$day->getEntry(); |
$id_fiches=array(); |
while ($ligne_evenement=array_pop($evenements)) { |
$id_fiches[]=$ligne_evenement->bf_id_fiche; |
} |
$url->addQueryString ('id_fiches',$id_fiches); |
if ($day->isSelected() ) { |
$evenements=$day->getEntry(); |
while ($ligne_evenement=array_pop($evenements)) { |
$url->addQueryString ('id_fiche',$ligne_evenement->bf_id_fiche); |
$link = $url->getUrl(); |
$lien_date= "<td class=\"".$class."\"><a href=\"".$link."\">".$day->thisDay()."</a>\n"; |
$url->removeQueryString ('id_fiches'); |
$retour.= ( "<a href=\"".$link."\">".$ligne_evenement->bf_titre."</a>\n" ); |
} |
$retour.=$lien_date; |
} |
$retour.= ( "</td>\n" ); |
280,17 → 239,17 |
$retour.= "</table>"; |
} |
return $retour; |
// Vue detail |
if ((isset($_GET['id_fiches']))) { |
$GLOBALS['_PAPYRUS_']['rendu']['CONTENU_CORPS'] = baz_voir_fiches(0,$_GET['id_fiches'] ); |
} |
return $retour; |
else { |
// Vue jour |
if (isset($_GET['id_fiche'])) { |
return $retour.baz_voir_fiche(0, $_GET['id_fiche']); |
} |
} |
; |
} |
?> |
/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.12 2005-10-14 13:59:23 alexandre_tb Exp $ |
// CVS : $Id: bazar.fonct.php,v 1.13 2005-10-21 16:15:04 florian 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.12 $ $Date: 2005-10-14 13:59:23 $ |
*@version $Revision: 1.13 $ $Date: 2005-10-21 16:15:04 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
63,7 → 63,7 |
* @return string Retourne 'redacteur', 'administrateur', 'superadministrateur', ou 'aucun' |
*/ |
function niveau_droit($id_nature_offre='0', $personne) { |
$requete = 'select bd_niveau_droit FROM bazar_droits WHERE bd_id_utilisateur="'.$personne.'"'. |
$requete = 'select bd_niveau_droit FROM bazar_droits WHERE bd_id_utilisateur='.$personne. |
' AND (bd_id_nature_offre='.$id_nature_offre.' OR bd_id_nature_offre=0)'; |
$resultat = $GLOBALS['_BAZAR_']['db']->query ($requete) ; |
if (DB::isError($resultat)) { |
476,8 → 476,6 |
// Clique sur son bouton précédent |
if ($mode == BAZ_ACTION_NOUVEAU) unset($_SESSION['formulaire_annonce_valide']) ; |
echo $mode; |
echo $_SESSION['formulaire_annonce_valide'] ; |
} |
//requete pour obtenir l'id du type d'annonce |
/trunk/bibliotheque/bazar.fonct.rss.php |
---|
249,9 → 249,21 |
$res .= '<div class="BAZ_cadre_fiche_bas"> </div>'."\n"; |
$res .= '</div>'."\n"; |
//on ajoute les appropriations, s'il le faut |
if (($danslappli==1)and($GLOBALS['_BAZAR_']['appropriation']==1)) { |
$res .= '<br />'."\n".'<div class="BAZ_cadre_fiche">'."\n"; |
$res .= '<div class="BAZ_cadre_fiche_haut"> </div>'."\n"; |
$res .= '<div class="BAZ_cadre_fiche_corps">'."\n"; |
$res .= '<h3>'.BAZ_LES_STRUCTURES_POSSEDANT_UNE_RESSOURCE.'</h3>'."\n"; |
$res .= '</div>'."\n"; |
$res .= '<div class="BAZ_cadre_fiche_bas"> </div>'."\n"; |
$res .= '</div>'."\n"; |
} |
//on ajoute les commentaires, s'il le faut |
if (($danslappli==1)and($GLOBALS['_BAZAR_']['commentaire']==1)) { |
$res .= '<div class="BAZ_cadre_fiche">'."\n"; |
$res .= '<br />'."\n".'<div class="BAZ_cadre_fiche">'."\n"; |
$res .= '<div class="BAZ_cadre_fiche_haut"> </div>'."\n"; |
$res .= '<div class="BAZ_cadre_fiche_corps">'."\n"; |
$res .= '<h3>'.BAZ_LES_COMMENTAIRES.'</h3>'."\n"; |
308,17 → 320,6 |
$res .= '</div>'."\n"; |
} |
//on ajoute les appropriations, s'il le faut |
if (($danslappli==1)and($GLOBALS['_BAZAR_']['appropriation']==1)) { |
$res .= '<div class="BAZ_cadre_fiche">'."\n"; |
$res .= '<div class="BAZ_cadre_fiche_haut"> </div>'."\n"; |
$res .= '<div class="BAZ_cadre_fiche_corps">'."\n"; |
$res .= '</div>'."\n"; |
$res .= '<div class="BAZ_cadre_fiche_bas"> </div>'."\n"; |
$res .= '</div>'."\n"; |
} |
return $res ; |
} |
457,12 → 458,8 |
$lien_formulaire=preg_replace ('/&/', '&', $GLOBALS['_BAZAR_']['url']->getURL()) ; |
$formtemplate = new HTML_QuickForm('formulaire', 'post', $lien_formulaire) ; |
$squelette =&$formtemplate->defaultRenderer(); |
$squelette->setFormTemplate("\n".'<form{attributes}>'."\n".'<ul>'."\n".'{content}'."\n".'</ul>'."\n".'</form>'."\n"); |
$squelette->setElementTemplate( '<li class="enligne">'."\n".'{element}'."\n". |
'</li>'."\n"); |
$squelette->setFormTemplate("\n".'<form{attributes}>'."\n".'<ul>'."\n".'{content}'."\n".'</ul>'."\n".'</form>'."\n"); |
$squelette->setElementTemplate( '<li class="enligne">'."\n".'{element}'."\n".'</li>'."\n"); |
//requete pour obtenir l'id et le label des types d'annonces |
$requete = 'SELECT bn_label_nature '. |
'FROM bazar_nature WHERE bn_ce_id_menu='.$GLOBALS['_GEN_commun']['info_menu']->gm_id_menu. |
475,7 → 472,7 |
while ($ligne = $resultat->fetchRow(DB_FETCHMODE_ASSOC)) { |
$type_annonce_select[$ligne['bn_label_nature']] = $ligne['bn_label_nature']; |
} |
$option=array('style'=>'width: 130px;', 'onchange'=>'this.form.submit();'); |
$option=array('style'=>'width: 160px;', 'onchange'=>'this.form.submit();'); |
$formtemplate->addElement ('select', 'nature', BAZ_TYPEANNONCE, $type_annonce_select, $option) ; |
//requete pour obtenir l'id, le nom et prénom de toutes les personnes ayant une fiche publiée actuellement |
491,7 → 488,7 |
while ($ligne = $resultat->fetchRow(DB_FETCHMODE_ASSOC)) { |
$personnes_select[$ligne[BAZ_CHAMPS_ID]] = $ligne[BAZ_CHAMPS_NOM]." ".$ligne[BAZ_CHAMPS_PRENOM] ; |
} |
$option=array('style'=>'width: 130px;', 'onchange'=>'this.form.submit();'); |
$option=array('style'=>'width: 160px;', 'onchange'=>'this.form.submit();'); |
$formtemplate->addElement ('select', 'personnes', BAZ_EMETTEUR, $personnes_select, $option) ; |
//champs texte pour entrer les mots clés |
517,7 → 514,7 |
} |
} |
//génération de la liste de flux à afficher |
$res.=RSSversHTML(gen_RSS($_POST['nature'], '', $_POST['personnes'], 1, $requeteSQL), 1, 'jm') ; |
$res.=RSSversHTML(gen_RSS($_POST['nature'], '', $_POST['personnes'], 1, $requeteSQL), 1, BAZ_TYPE_AFFICHAGE_LISTE) ; |
} |
else { |
//on affiche toutes les annonces |