/trunk/client/bazar/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.30 2006-01-16 09:42:57 alexandre_tb Exp $ |
// CVS : $Id: bazar.fonct.php,v 1.31 2006-01-17 10:07:08 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.30 $ $Date: 2006-01-16 09:42:57 $ |
*@version $Revision: 1.31 $ $Date: 2006-01-17 10:07:08 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
1218,7 → 1218,7 |
} |
$ligne = $resultat->fetchRow(DB_FETCHMODE_ASSOC) ; |
$valeurs_fiche = array() ; |
$tableau=($GLOBALS['_BAZAR_']['typeannonce'].'.tpl'); |
$tableau = baz_valeurs_template($GLOBALS['_BAZAR_']['template']); |
for ($i=0; $i<count($tableau); $i++) { |
if ($tableau[$i]['type']!='labelhtml') { |
$valeurs_fiche[$tableau[$i]['nom_bdd']] = stripslashes($ligne[$tableau[$i]['nom_bdd']]); |
1381,6 → 1381,9 |
/* +--Fin du code ----------------------------------------------------------------------------------------+ |
* |
* $Log: not supported by cvs2svn $ |
* Revision 1.30 2006/01/16 09:42:57 alexandre_tb |
* en cours |
* |
* Revision 1.29 2006/01/13 14:12:51 florian |
* utilisation des temlates dans la table bazar_nature |
* |
/trunk/client/bazar/bibliotheque/bazar.fonct.rss.php |
---|
396,8 → 396,18 |
if ($formatdate=='jma') {$res.=strftime('%d.%m.%Y',strtotime($date[1])).': ';} |
if ($formatdate=='jmh') {$res.=strftime('%d.%m %H:%M',strtotime($date[1])).': ';} |
if ($formatdate=='jmah') {$res.=strftime('%d.%m.%Y %H:%M',strtotime($date[1])).': ';} |
$res.='<a href="'.preg_replace ('/&/', '&', $url[1]).'">'.$title[1].'</a><br />'; |
$res.='<a href="'.preg_replace ('/&/', '&', $url[1]).'">'.$title[1].'</a>'; |
if ($voirdesc) {$res.=$cat[1];} |
// Ajout du bouton supprimer pour les superadministrateur |
if ($GLOBALS['AUTH']->getAuth() && niveau_droit(0,$GLOBALS['AUTH']->getAuthData(BAZ_CHAMPS_ID))=='superadministrateur') |
{ |
$mon_url = preg_replace ('/&/', '&', $url[1]) ; |
$url_suppr = new Net_URL(preg_replace ('/&/', '&', $mon_url)) ; |
$url_suppr->addQueryString('action', BAZ_ACTION_SUPPRESSION) ; |
$res .= ' ( <a href="'.$url_suppr->getURL(). |
'" onclick="javascript:return confirm(\''.BAZ_SUPPRIMER.' ?\');">'. |
BAZ_SUPPRIMER.'</a> )'."\n" ; |
} |
$res.='</li>'."\n"; |
} |
$res.='</ul>'."\n"; |
/trunk/client/bazar/bazar.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.php,v 1.22 2006-01-16 15:11:28 alexandre_tb Exp $ |
// CVS : $Id: bazar.php,v 1.23 2006-01-17 10:07:36 alexandre_tb Exp $ |
/** |
* |
*@package bazar |
28,7 → 28,7 |
*@author Florian Schmitt <florian@ecole-et-nature.org> |
//Autres auteurs : |
*@copyright Tela-Botanica 2000-2004 |
*@version $Revision: 1.22 $ $Date: 2006-01-16 15:11:28 $ |
*@version $Revision: 1.23 $ $Date: 2006-01-17 10:07:36 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
185,7 → 185,7 |
case BAZ_VOIR_VOS_ANNONCES : $res .= mes_fiches(); break; |
case BAZ_VOIR_TOUTES_ANNONCES : $res .= baz_liste($GLOBALS['_BAZAR_']['id_nature']); break; |
case BAZ_DEPOSER_ANNONCE : $res .= baz_formulaire(BAZ_DEPOSER_ANNONCE); break; |
case BAZ_ANNONCES_A_VALIDER : $res .= fiches_a_valider(); break; |
case BAZ_ANNONCES_A_VALIDER : $res .= fiches_a_valider().baz_liste(); break; |
case BAZ_ADMINISTRER_ANNONCES : $res .= baz_administrer_annonces(); break; |
case BAZ_MODIFIER_FICHE : $res .= baz_formulaire(BAZ_ACTION_MODIFIER); break; |
case BAZ_SUPPRIMER_FICHE : $res .= baz_suppression().baz_liste('',$GLOBALS['id_user'],''); break; |
213,6 → 213,9 |
/* +--Fin du code ----------------------------------------------------------------------------------------+ |
* |
* $Log: not supported by cvs2svn $ |
* Revision 1.22 2006/01/16 15:11:28 alexandre_tb |
* simplification code |
* |
* Revision 1.21 2006/01/13 14:12:52 florian |
* utilisation des temlates dans la table bazar_nature |
* |