Subversion Repositories Applications.bazar

Rev

Rev 170 | Rev 185 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 170 Rev 178
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.63 2007-01-18 14:37:34 alexandre_tb Exp $
22
// CVS : $Id: bazar.fonct.rss.php,v 1.64 2007-02-02 14:00:41 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.63 $
31
*@version       $Revision: 1.64 $
32
// +------------------------------------------------------------------------------------------------------+
32
// +------------------------------------------------------------------------------------------------------+
33
*/
33
*/
Line 34... Line 34...
34
 
34
 
35
// +------------------------------------------------------------------------------------------------------+
35
// +------------------------------------------------------------------------------------------------------+
Line 821... Line 821...
821
	//Bouton de validation du formulaire
821
	//Bouton de validation du formulaire
822
	$option=array('style'=>'border:1px solid #000;width:100px;font:12px Myriad, Arial, sans-serif;');	
822
	$option=array('style'=>'border:1px solid #000;width:100px;font:12px Myriad, Arial, sans-serif;');	
823
	$formtemplate->addElement('submit', 'rechercher', BAZ_RECHERCHER, $option);
823
	$formtemplate->addElement('submit', 'rechercher', BAZ_RECHERCHER, $option);
Line 824... Line 824...
824
	
824
	
825
	//affichage du formulaire
825
	//affichage du formulaire
Line 826... Line 826...
826
	$res.=$formtemplate->toHTML()."\n";
826
	//$res.=$formtemplate->toHTML()."\n";
827
	
827
	
828
 
828
 
Line 905... Line 905...
905
		$res .= '<br /><p class="zone_info">'."\n".BAZ_ENTRER_VOS_CRITERES_DE_RECHERCHE.'</p>'."\n";
905
		$res .= '<br /><p class="zone_info">'."\n".BAZ_ENTRER_VOS_CRITERES_DE_RECHERCHE.'</p>'."\n";
906
		$GLOBALS['_BAZAR_']['url']->removeQueryString('action');
906
		$GLOBALS['_BAZAR_']['url']->removeQueryString('action');
907
		$GLOBALS['_BAZAR_']['url']->addQueryString('action', BAZ_VOIR_FLUX_RSS);
907
		$GLOBALS['_BAZAR_']['url']->addQueryString('action', BAZ_VOIR_FLUX_RSS);
908
		$GLOBALS['_BAZAR_']['url']->addQueryString('annonce', $typeannonce);
908
		$GLOBALS['_BAZAR_']['url']->addQueryString('annonce', $typeannonce);
909
		$GLOBALS['_BAZAR_']['url']->addQueryString('categorie_nature', $GLOBALS['_BAZAR_']['categorie_nature']);
909
		$GLOBALS['_BAZAR_']['url']->addQueryString('categorie_nature', $GLOBALS['_BAZAR_']['categorie_nature']);
910
		$res .= '{{Syndication titre="Les derni&egrave;res fiches enregistrées" url="'.preg_replace ('/&amp;/', '&', $GLOBALS['_BAZAR_']['url']->getURL()).
910
		/*$res .= '{{Syndication titre="Les derni&egrave;res fiches enregistrées" url="'.preg_replace ('/&amp;/', '&', $GLOBALS['_BAZAR_']['url']->getURL()).
911
                '" nb=10 nouvellefenetre=0 formatdate="'.BAZ_TYPE_AFFICHAGE_LISTE.'"}}';
911
                '" nb=10 nouvellefenetre=0 formatdate="'.BAZ_TYPE_AFFICHAGE_LISTE.'"}}';*/
912
	}
912
	}
-
 
913
	
-
 
914
	// Appel du template n 1
-
 
915
	include_once BAZ_CHEMIN_APPLI.'bibliotheque/bazarTemplate.class.php' ;
-
 
916
	include_once 'HTML/Template/IT.php';
-
 
917
	$template = new bazarTemplate ($GLOBALS['_BAZAR_']['db']) ;
-
 
918
	$chaine = $template->getTemplate(1, $GLOBALS['_BAZAR_']['langue'], $GLOBALS['_BAZAR_']['categorie_nature']);
-
 
919
	if (bazarTemplate::isError ($chaine)) return $chaine->getMessage() ;
-
 
920
	$tpl = new HTML_Template_IT() ;
-
 
921
	$tpl -> setTemplate($chaine);
-
 
922
	$tpl->setVariable('formulaire', $formtemplate->toHTML()) ;
-
 
923
	$res .= $tpl->get();
913
	return $res;
924
	return $res;
914
}
925
}
Line 915... Line 926...
915
 
926
 
916
/**
927
/**
Line 1014... Line 1025...
1014
}
1025
}
Line 1015... Line 1026...
1015
 
1026
 
1016
/* +--Fin du code ----------------------------------------------------------------------------------------+
1027
/* +--Fin du code ----------------------------------------------------------------------------------------+
1017
*
1028
*
-
 
1029
* $Log: not supported by cvs2svn $
-
 
1030
* Revision 1.63  2007/01/18 14:37:34  alexandre_tb
-
 
1031
* backport
-
 
1032
* les dates ne s'affichent pas si elles sont vides.
-
 
1033
* les champs dates propose 4 années avant l'année actuelle
1018
* $Log: not supported by cvs2svn $
1034
*
1019
* Revision 1.60.2.2  2007/01/17 16:01:27  alexandre_tb
1035
* Revision 1.60.2.2  2007/01/17 16:01:27  alexandre_tb
1020
* les dates ne s'affichent pas si elles sont vides.
1036
* les dates ne s'affichent pas si elles sont vides.
1021
* les champs dates propose 4 années avant l'année actuelle
1037
* les champs dates propose 4 années avant l'année actuelle
1022
*
1038
*