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.rss.php,v 1.98 2007-10-24 13:27:45 alexandre_tb Exp $
|
22 |
// CVS : $Id: bazar.fonct.rss.php,v 1.99 2007-11-05 10:17:19 alexandre_tb Exp $
|
23 |
/**
|
23 |
/**
|
24 |
*
|
24 |
*
|
25 |
*@package bazar
|
25 |
*@package bazar
|
26 |
//Auteur original :
|
26 |
//Auteur original :
|
27 |
*@author Alexandre GRANIER <alexandre@tela-botanica.org>
|
27 |
*@author Alexandre GRANIER <alexandre@tela-botanica.org>
|
28 |
*@author Florian Schmitt <florian@ecole-et-nature.org>
|
28 |
*@author Florian Schmitt <florian@ecole-et-nature.org>
|
29 |
//Autres auteurs :
|
29 |
//Autres auteurs :
|
30 |
*@copyright Tela-Botanica 2000-2006
|
30 |
*@copyright Tela-Botanica 2000-2006
|
31 |
*@version $Revision: 1.98 $
|
31 |
*@version $Revision: 1.99 $
|
32 |
// +------------------------------------------------------------------------------------------------------+
|
32 |
// +------------------------------------------------------------------------------------------------------+
|
33 |
*/
|
33 |
*/
|
Line 34... |
Line 34... |
34 |
|
34 |
|
35 |
// +------------------------------------------------------------------------------------------------------+
|
35 |
// +------------------------------------------------------------------------------------------------------+
|
Line 864... |
Line 864... |
864 |
while ($ligne = $resultat->fetchRow(DB_FETCHMODE_ASSOC)) {
|
864 |
while ($ligne = $resultat->fetchRow(DB_FETCHMODE_ASSOC)) {
|
865 |
$type_annonce_select[$ligne['bn_id_nature']] = $ligne['bn_label_nature'];
|
865 |
$type_annonce_select[$ligne['bn_id_nature']] = $ligne['bn_label_nature'];
|
866 |
$tableau_typeannonces[] = $ligne['bn_id_nature'] ;
|
866 |
$tableau_typeannonces[] = $ligne['bn_id_nature'] ;
|
867 |
}
|
867 |
}
|
868 |
if ($nb_type_de_fiches>1 && $GLOBALS['_BAZAR_']['typeannonce']=='toutes' && BAZ_AFFICHER_FILTRE_MOTEUR) {
|
868 |
if ($nb_type_de_fiches>1 && $GLOBALS['_BAZAR_']['typeannonce']=='toutes' && BAZ_AFFICHER_FILTRE_MOTEUR) {
|
869 |
$res= '<h2>'.BAZ_TOUTES_LES_ANNONCES.'</h2><br />'."\n";
|
869 |
$res= '';
|
870 |
$option=array('style'=>'border:1px solid #000;width: 200px;font:12px Myriad, Arial, sans-serif;',
|
870 |
$option=array('style'=>'border:1px solid #000;width: 200px;font:12px Myriad, Arial, sans-serif;',
|
871 |
'onchange' => 'javascript:this.form.submit();');
|
871 |
'onchange' => 'javascript:this.form.submit();');
|
872 |
$formtemplate->addElement ('select', 'nature', BAZ_TYPEANNONCE, $type_annonce_select, $option) ;
|
872 |
$formtemplate->addElement ('select', 'nature', BAZ_TYPEANNONCE, $type_annonce_select, $option) ;
|
873 |
if (isset($_REQUEST['nature'])) {
|
873 |
if (isset($_REQUEST['nature'])) {
|
874 |
$defauts=array('nature'=>$_REQUEST['nature']);
|
874 |
$defauts=array('nature'=>$_REQUEST['nature']);
|
Line 975... |
Line 975... |
975 |
}
|
975 |
}
|
976 |
else {
|
976 |
else {
|
977 |
foreach(array_merge($_POST, $_GET) as $cle => $valeur) $GLOBALS['_BAZAR_']['url']->addQueryString($cle, $valeur);
|
977 |
foreach(array_merge($_POST, $_GET) as $cle => $valeur) $GLOBALS['_BAZAR_']['url']->addQueryString($cle, $valeur);
|
978 |
$GLOBALS['_BAZAR_']['url']->addQueryString('recherche_avancee', '1');
|
978 |
$GLOBALS['_BAZAR_']['url']->addQueryString('recherche_avancee', '1');
|
979 |
$lien_recherche_avancee = '<a href="'.$GLOBALS['_BAZAR_']['url']->getURL().'">'.BAZ_RECHERCHE_AVANCEE.'</a><br />';
|
979 |
$lien_recherche_avancee = '<a href="'.$GLOBALS['_BAZAR_']['url']->getURL().'">'.BAZ_RECHERCHE_AVANCEE.'</a><br />';
|
- |
|
980 |
foreach(array_merge($_POST, $_GET) as $cle => $valeur) {
|
980 |
foreach(array_merge($_POST, $_GET) as $cle => $valeur) $GLOBALS['_BAZAR_']['url']->removeQueryString($cle);
|
981 |
if ($cle != 'menu') $GLOBALS['_BAZAR_']['url']->removeQueryString($cle);
|
- |
|
982 |
}
|
981 |
}
|
983 |
}
|
982 |
}
|
984 |
}
|
Line 983... |
Line 985... |
983 |
|
985 |
|
984 |
//lien recherche avancee
|
986 |
//lien recherche avancee
|
Line 1239... |
Line 1241... |
1239 |
}
|
1241 |
}
|
Line 1240... |
Line 1242... |
1240 |
|
1242 |
|
1241 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
1243 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
1242 |
*
|
1244 |
*
|
- |
|
1245 |
* $Log: not supported by cvs2svn $
|
- |
|
1246 |
* Revision 1.98 2007-10-24 13:27:45 alexandre_tb
|
- |
|
1247 |
* bug d'affichage multiple lorsqu'il y a +sieurs langues
|
1243 |
* $Log: not supported by cvs2svn $
|
1248 |
*
|
1244 |
* Revision 1.97 2007-10-24 08:56:27 alexandre_tb
|
1249 |
* Revision 1.97 2007-10-24 08:56:27 alexandre_tb
|
1245 |
* bug d'affichage multiple lorsqu'il y a +sieurs langues
|
1250 |
* bug d'affichage multiple lorsqu'il y a +sieurs langues
|
1246 |
*
|
1251 |
*
|
1247 |
* Revision 1.96 2007-10-22 10:09:21 florian
|
1252 |
* Revision 1.96 2007-10-22 10:09:21 florian
|