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.99.2.3 2007-12-03 15:16:21 jp_milcent Exp $
|
22 |
// CVS : $Id: bazar.fonct.rss.php,v 1.99.2.4 2007-12-04 08:58:26 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.99.2.3 $
|
31 |
*@version $Revision: 1.99.2.4 $
|
32 |
// +------------------------------------------------------------------------------------------------------+
|
32 |
// +------------------------------------------------------------------------------------------------------+
|
33 |
*/
|
33 |
*/
|
Line 34... |
Line 34... |
34 |
|
34 |
|
35 |
// +------------------------------------------------------------------------------------------------------+
|
35 |
// +------------------------------------------------------------------------------------------------------+
|
Line 825... |
Line 825... |
825 |
$GLOBALS['_BAZAR_']['url']->addQueryString('action', BAZ_VOIR_TOUTES_ANNONCES);
|
825 |
$GLOBALS['_BAZAR_']['url']->addQueryString('action', BAZ_VOIR_TOUTES_ANNONCES);
|
826 |
if (isset($_REQUEST['recherche_avancee'])) $GLOBALS['_BAZAR_']['url']->addQueryString ('recherche_avancee', $_REQUEST['recherche_avancee']);
|
826 |
if (isset($_REQUEST['recherche_avancee'])) $GLOBALS['_BAZAR_']['url']->addQueryString ('recherche_avancee', $_REQUEST['recherche_avancee']);
|
827 |
$lien_formulaire = preg_replace ('/&/', '&', $GLOBALS['_BAZAR_']['url']->getURL()) ;
|
827 |
$lien_formulaire = preg_replace ('/&/', '&', $GLOBALS['_BAZAR_']['url']->getURL()) ;
|
828 |
$formtemplate = new HTML_QuickForm('formulaire', 'post', $lien_formulaire) ;
|
828 |
$formtemplate = new HTML_QuickForm('formulaire', 'post', $lien_formulaire) ;
|
829 |
$squelette =& $formtemplate->defaultRenderer();
|
829 |
$squelette =& $formtemplate->defaultRenderer();
|
830 |
$squelette->setFormTemplate("\n".'<form {attributes}>'."\n".'<table style="border:0;width:100%;">'."\n".'{content}'."\n".'</table>'."\n".'</form>'."\n");
|
830 |
$squelette->setFormTemplate("\n".'<form {attributes}>'."\n".'<table>'."\n".'{content}'."\n".'</table>'."\n".'</form>'."\n");
|
831 |
$squelette->setElementTemplate( '<tr>'."\n".'<td style="font-size:12px;width:120px;text-align:right;">'."\n".'{label}'.
|
831 |
$squelette->setElementTemplate( '<tr>'."\n".'<td>'."\n".'{label}'.
|
832 |
'<!-- BEGIN required --><span class="symbole_obligatoire"> *</span><!-- END required -->'."\n".
|
832 |
'<!-- BEGIN required --><span class="symbole_obligatoire"> *</span><!-- END required -->'."\n".
|
833 |
' :</td>'."\n".'<td style="text-align:left;padding:5px;"> '."\n".'{element}'."\n".
|
833 |
' :</td>'."\n".'<td style="text-align:left;padding:5px;"> '."\n".'{element}'."\n".
|
834 |
'<!-- BEGIN error --><span class="erreur">{error}</span><!-- END error -->'."\n".
|
834 |
'<!-- BEGIN error --><span class="erreur">{error}</span><!-- END error -->'."\n".
|
835 |
'</td>'."\n".'</tr>'."\n");
|
835 |
'</td>'."\n".'</tr>'."\n");
|
836 |
$squelette->setElementTemplate( '<tr>'."\n".'<td colspan="2" class="liste_a_cocher"><strong>{label} {element}</strong>'."\n".
|
836 |
$squelette->setElementTemplate( '<tr>'."\n".'<td colspan="2" class="liste_a_cocher"><strong>{label} {element}</strong>'."\n".
|
Line 860... |
Line 860... |
860 |
$type_annonce_select[$ligne['bn_id_nature']] = $ligne['bn_label_nature'];
|
860 |
$type_annonce_select[$ligne['bn_id_nature']] = $ligne['bn_label_nature'];
|
861 |
$tableau_typeannonces[] = $ligne['bn_id_nature'] ;
|
861 |
$tableau_typeannonces[] = $ligne['bn_id_nature'] ;
|
862 |
}
|
862 |
}
|
863 |
if ($nb_type_de_fiches>1 && $GLOBALS['_BAZAR_']['typeannonce']=='toutes' && BAZ_AFFICHER_FILTRE_MOTEUR) {
|
863 |
if ($nb_type_de_fiches>1 && $GLOBALS['_BAZAR_']['typeannonce']=='toutes' && BAZ_AFFICHER_FILTRE_MOTEUR) {
|
864 |
$res= '';
|
864 |
$res= '';
|
865 |
$option=array('style'=>'border:1px solid #000;width: 200px;font:12px Myriad, Arial, sans-serif;',
|
- |
|
866 |
'onchange' => 'javascript:this.form.submit();');
|
865 |
$option=array('onchange' => 'javascript:this.form.submit();');
|
867 |
$formtemplate->addElement ('select', 'nature', BAZ_TYPEANNONCE, $type_annonce_select, $option) ;
|
866 |
$formtemplate->addElement ('select', 'nature', BAZ_TYPEANNONCE, $type_annonce_select, $option) ;
|
868 |
if (isset($_REQUEST['nature'])) {
|
867 |
if (isset($_REQUEST['nature'])) {
|
869 |
$defauts=array('nature'=>$_REQUEST['nature']);
|
868 |
$defauts=array('nature'=>$_REQUEST['nature']);
|
870 |
$formtemplate->setDefaults($defauts);
|
869 |
$formtemplate->setDefaults($defauts);
|
871 |
}
|
870 |
}
|
Line 1242... |
Line 1241... |
1242 |
}
|
1241 |
}
|
Line 1243... |
Line 1242... |
1243 |
|
1242 |
|
1244 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
1243 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
1245 |
*
|
1244 |
*
|
- |
|
1245 |
* $Log: not supported by cvs2svn $
|
- |
|
1246 |
* Revision 1.99.2.3 2007-12-03 15:16:21 jp_milcent
|
- |
|
1247 |
* Correction problème de la div mystère!
|
1246 |
* $Log: not supported by cvs2svn $
|
1248 |
*
|
1247 |
* Revision 1.99.2.2 2007-11-30 15:02:50 alexandre_tb
|
1249 |
* Revision 1.99.2.2 2007-11-30 15:02:50 alexandre_tb
|
1248 |
* simplification du code et correction du bug (les fiches de la carto n affichent pas la bonne nature
|
1250 |
* simplification du code et correction du bug (les fiches de la carto n affichent pas la bonne nature
|
1249 |
*
|
1251 |
*
|
1250 |
* Revision 1.99.2.1 2007-11-30 14:14:36 jp_milcent
|
1252 |
* Revision 1.99.2.1 2007-11-30 14:14:36 jp_milcent
|