Subversion Repositories Applications.bazar

Compare Revisions

Ignore whitespace Rev 83 → Rev 84

/trunk/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.23 2006-01-17 10:07:36 alexandre_tb Exp $
// CVS : $Id: bazar.php,v 1.24 2006-01-26 11:06:43 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.23 $ $Date: 2006-01-17 10:07:36 $
*@version $Revision: 1.24 $ $Date: 2006-01-26 11:06:43 $
// +------------------------------------------------------------------------------------------------------+
*/
 
99,7 → 99,18
$GLOBALS['id_user']=$GLOBALS['AUTH']->getAuthData(BAZ_CHAMPS_ID);
 
//Recuperer les eventuelles variables passees en GET ou en POST
if (isset($_REQUEST['id_fiche'])) $GLOBALS['_BAZAR_']['id_fiche']=$_REQUEST['id_fiche'];
if (isset($_REQUEST['id_fiche'])) {
$GLOBALS['_BAZAR_']['id_fiche']=$_REQUEST['id_fiche'];
// récupération du type d'annonce à partir de la fiche
$requete = 'select bf_ce_nature from bazar_fiche where bf_id_fiche='.$GLOBALS['_BAZAR_']['id_fiche'] ;
$resultat = $GLOBALS['_BAZAR_']['db']->query ($requete) ;
if (DB::isError($resultat)) {
echo $resultat->getMessage().'<br />'.$resultat->getInfoDebug();
}
$ligne = $resultat->fetchRow(DB_FETCHMODE_OBJECT) ;
$GLOBALS['_BAZAR_']['id_typeannonce'] = $ligne->bf_ce_nature ;
$resultat->free();
}
if (isset($_REQUEST['typeannonce'])) {
$GLOBALS['_BAZAR_']['id_typeannonce']=$_REQUEST['typeannonce'];
}
127,7 → 138,7
if ($GLOBALS['_BAZAR_']['affiche_menu']) {
//---------------le menu de l'appli-----------
function afficherContenuNavigation () {
$res ='<ul>'."\n";
$res ='<ul id="BAZ_menu">'."\n";
$GLOBALS['_BAZAR_']['url']->addQueryString('action', BAZ_VOIR_TOUTES_ANNONCES);
$GLOBALS['_BAZAR_']['url']->addQueryString('nature', 'toutes');
//partie consultation d'annonces
213,6 → 224,9
/* +--Fin du code ----------------------------------------------------------------------------------------+
*
* $Log: not supported by cvs2svn $
* Revision 1.23 2006/01/17 10:07:36 alexandre_tb
* en cours
*
* Revision 1.22 2006/01/16 15:11:28 alexandre_tb
* simplification code
*