Line 17... |
Line 17... |
17 |
// | |
|
17 |
// | |
|
18 |
// | You should have received a copy of the GNU Lesser General Public |
|
18 |
// | You should have received a copy of the GNU Lesser General Public |
|
19 |
// | License along with this library; if not, write to the Free Software |
|
19 |
// | License along with this library; if not, write to the Free Software |
|
20 |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
20 |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
21 |
// +------------------------------------------------------------------------------------------------------+
|
21 |
// +------------------------------------------------------------------------------------------------------+
|
22 |
// CVS : $Id: bazar.fonct.php,v 1.65 2007-06-25 08:31:17 alexandre_tb Exp $
|
22 |
// CVS : $Id: bazar.fonct.php,v 1.66 2007-06-25 12:15:06 alexandre_tb Exp $
|
23 |
/**
|
23 |
/**
|
24 |
*
|
24 |
*
|
25 |
* Fonctions du module bazar
|
25 |
* Fonctions du module bazar
|
26 |
*
|
26 |
*
|
27 |
*
|
27 |
*
|
Line 29... |
Line 29... |
29 |
//Auteur original :
|
29 |
//Auteur original :
|
30 |
*@author Alexandre Granier <alexandre@tela-botanica.org>
|
30 |
*@author Alexandre Granier <alexandre@tela-botanica.org>
|
31 |
*@author Florian Schmitt <florian@ecole-et-nature.org>
|
31 |
*@author Florian Schmitt <florian@ecole-et-nature.org>
|
32 |
//Autres auteurs :
|
32 |
//Autres auteurs :
|
33 |
*@copyright Tela-Botanica 2000-2004
|
33 |
*@copyright Tela-Botanica 2000-2004
|
34 |
*@version $Revision: 1.65 $ $Date: 2007-06-25 08:31:17 $
|
34 |
*@version $Revision: 1.66 $ $Date: 2007-06-25 12:15:06 $
|
35 |
// +------------------------------------------------------------------------------------------------------+
|
35 |
// +------------------------------------------------------------------------------------------------------+
|
36 |
*/
|
36 |
*/
|
Line 37... |
Line 37... |
37 |
|
37 |
|
38 |
// +------------------------------------------------------------------------------------------------------+
|
38 |
// +------------------------------------------------------------------------------------------------------+
|
Line 109... |
Line 109... |
109 |
$lien_voir=$GLOBALS['_BAZAR_']['url'];
|
109 |
$lien_voir=$GLOBALS['_BAZAR_']['url'];
|
110 |
$lien_voir->addQueryString('action', BAZ_VOIR_FICHE);
|
110 |
$lien_voir->addQueryString('action', BAZ_VOIR_FICHE);
|
111 |
$lien_voir->addQueryString('id_fiche', $ligne['bf_id_fiche']);
|
111 |
$lien_voir->addQueryString('id_fiche', $ligne['bf_id_fiche']);
|
112 |
$lien_voir->addQueryString('typeannonce', $ligne['bn_id_nature']);
|
112 |
$lien_voir->addQueryString('typeannonce', $ligne['bn_id_nature']);
|
Line 113... |
Line 113... |
113 |
|
113 |
|
114 |
$lien_publie_oui=$GLOBALS['_BAZAR_']['url'];
|
- |
|
115 |
$lien_publie_oui->addQueryString('action', BAZ_ACTION_PUBLIER);
|
114 |
// Nettoyage de l'url
|
116 |
$lien_publie_oui->addQueryString('id_fiche', $ligne['bf_id_fiche']);
|
115 |
// NOTE (jpm - 23 mai 2007): pour être compatible avec PHP5 il faut utiliser tjrs $GLOBALS['_BAZAR_']['url'] car en php4 on
|
117 |
$lien_publie_oui->addQueryString('typeannonce', $ligne['bn_id_nature']);
|
- |
|
118 |
|
- |
|
119 |
$lien_publie_non=$GLOBALS['_BAZAR_']['url'];
|
116 |
// copie bien une variable mais pas en php5, cela reste une référence...
|
120 |
$lien_publie_non->addQueryString('action', BAZ_ACTION_PAS_PUBLIER);
|
117 |
$GLOBALS['_BAZAR_']['url']->removeQueryString('action');
|
121 |
$lien_publie_non->addQueryString('id_fiche', $ligne['bf_id_fiche']);
|
118 |
$GLOBALS['_BAZAR_']['url']->removeQueryString('id_fiche');
|
Line -... |
Line 119... |
- |
|
119 |
$GLOBALS['_BAZAR_']['url']->removeQueryString('typeannonce');
|
- |
|
120 |
|
- |
|
121 |
$GLOBALS['_BAZAR_']['url']->addQueryString('id_fiche', $ligne['bf_id_fiche']);
|
- |
|
122 |
$GLOBALS['_BAZAR_']['url']->addQueryString('typeannonce', $ligne['bn_id_nature']);
|
122 |
$lien_publie_non->addQueryString('typeannonce', $ligne['bn_id_nature']);
|
123 |
|
- |
|
124 |
$GLOBALS['_BAZAR_']['url']->addQueryString('action', BAZ_VOIR_FICHE);
|
- |
|
125 |
$lien_voir = $GLOBALS['_BAZAR_']['url']->getURL();
|
- |
|
126 |
$GLOBALS['_BAZAR_']['url']->removeQueryString('action');
|
- |
|
127 |
|
- |
|
128 |
$GLOBALS['_BAZAR_']['url']->addQueryString('action', BAZ_ACTION_PUBLIER);
|
- |
|
129 |
$lien_publie_oui = $GLOBALS['_BAZAR_']['url']->getURL();
|
- |
|
130 |
$GLOBALS['_BAZAR_']['url']->removeQueryString('action');
|
- |
|
131 |
|
- |
|
132 |
$GLOBALS['_BAZAR_']['url']->addQueryString('action', BAZ_ACTION_PAS_PUBLIER);
|
- |
|
133 |
$lien_publie_non = $GLOBALS['_BAZAR_']['url']->getURL();
|
123 |
|
134 |
$GLOBALS['_BAZAR_']['url']->removeQueryString('action');
|
124 |
$lien_supprimer=$GLOBALS['_BAZAR_']['url'];
|
135 |
|
- |
|
136 |
$GLOBALS['_BAZAR_']['url']->addQueryString('action', BAZ_ACTION_SUPPRESSION);
|
- |
|
137 |
$lien_supprimer = $GLOBALS['_BAZAR_']['url']->getURL();
|
- |
|
138 |
$GLOBALS['_BAZAR_']['url']->removeQueryString('action');
|
125 |
$lien_supprimer->addQueryString('action', BAZ_ACTION_SUPPRESSION);
|
139 |
|
Line 126... |
Line 140... |
126 |
$lien_supprimer->addQueryString('id_fiche', $ligne['bf_id_fiche']);
|
140 |
$GLOBALS['_BAZAR_']['url']->removeQueryString('id_fiche');
|
127 |
$lien_supprimer->addQueryString('typeannonce', $ligne['bn_id_nature']);
|
141 |
$GLOBALS['_BAZAR_']['url']->removeQueryString('typeannonce');
|
128 |
|
142 |
|
129 |
$table->addRow (array(
|
143 |
$table->addRow (array(
|
130 |
'<a href="'.$lien_voir->getURL().'">'.$ligne['bf_titre'].'</a>'."\n", // col 1 : le nom
|
144 |
'<a href="'.$lien_voir.'">'.$ligne['bf_titre'].'</a>'."\n", // col 1 : le nom
|
131 |
$annonceur."\n", // col 2 : annonceur
|
145 |
$annonceur."\n", // col 2 : annonceur
|
132 |
$ligne['bn_label_nature']."\n", // col 3 : type annonce
|
146 |
$ligne['bn_label_nature']."\n", // col 3 : type annonce
|
133 |
"<a href=\"".$lien_publie_oui->getURL()."\">".BAZ_OUI."</a> / \n".
|
147 |
"<a href=\"".$lien_publie_oui."\">".BAZ_OUI."</a> / \n".
|
Line 134... |
Line 148... |
134 |
"<a href=\"".$lien_publie_non->getURL()."\">".BAZ_NON."</a>", // col 4 : publier ou pas
|
148 |
"<a href=\"".$lien_publie_non."\">".BAZ_NON."</a>", // col 4 : publier ou pas
|
135 |
"<a href=\"".$lien_supprimer->getURL()."\"".
|
149 |
"<a href=\"".$lien_supprimer."\"".
|
136 |
" onclick=\"javascript:return confirm('".BAZ_CONFIRMATION_SUPPRESSION."');\">".BAZ_SUPPRIMER."</a>\n")) ; // col 5 : supprimer
|
150 |
" onclick=\"javascript:return confirm('".BAZ_CONFIRMATION_SUPPRESSION."');\">".BAZ_SUPPRIMER."</a>\n")) ; // col 5 : supprimer
|
Line 1304... |
Line 1318... |
1304 |
}
|
1318 |
}
|
Line 1305... |
Line 1319... |
1305 |
|
1319 |
|
1306 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
1320 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
1307 |
*
|
1321 |
*
|
- |
|
1322 |
* $Log: not supported by cvs2svn $
|
- |
|
1323 |
* Revision 1.65 2007-06-25 08:31:17 alexandre_tb
|
- |
|
1324 |
* utilisation de la bibliotheque generale api/formulaire/formulaire.fonct.inc.php a la place de bazar.fonct.formulaire.php
|
1308 |
* $Log: not supported by cvs2svn $
|
1325 |
*
|
1309 |
* Revision 1.64 2007-06-04 15:25:39 alexandre_tb
|
1326 |
* Revision 1.64 2007-06-04 15:25:39 alexandre_tb
|
1310 |
* ajout de la carto google
|
1327 |
* ajout de la carto google
|
1311 |
*
|
1328 |
*
|
1312 |
* Revision 1.63 2007/04/11 08:30:12 neiluj
|
1329 |
* Revision 1.63 2007/04/11 08:30:12 neiluj
|