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.94 2007-10-10 13:26:00 alexandre_tb Exp $
|
22 |
// CVS : $Id: bazar.fonct.rss.php,v 1.95 2007-10-22 09:22:02 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.94 $
|
31 |
*@version $Revision: 1.95 $
|
32 |
// +------------------------------------------------------------------------------------------------------+
|
32 |
// +------------------------------------------------------------------------------------------------------+
|
33 |
*/
|
33 |
*/
|
Line 34... |
Line 34... |
34 |
|
34 |
|
35 |
// +------------------------------------------------------------------------------------------------------+
|
35 |
// +------------------------------------------------------------------------------------------------------+
|
Line 842... |
Line 842... |
842 |
'<!-- BEGIN required --><span class="symbole_obligatoire"> *</span><!-- END required -->'."\n".'</td>'."\n".'</tr>'."\n", 'accept_condition');
|
842 |
'<!-- BEGIN required --><span class="symbole_obligatoire"> *</span><!-- END required -->'."\n".'</td>'."\n".'</tr>'."\n", 'accept_condition');
|
843 |
$squelette->setElementTemplate( '<tr><td colspan="2">{label}{element}</td></tr>'."\n", 'rechercher');
|
843 |
$squelette->setElementTemplate( '<tr><td colspan="2">{label}{element}</td></tr>'."\n", 'rechercher');
|
Line 844... |
Line 844... |
844 |
|
844 |
|
845 |
$squelette->setRequiredNoteTemplate("\n".'<tr>'."\n".'<td colspan="2" class="symbole_obligatoire">* {requiredNote}</td></tr>'."\n");
|
845 |
$squelette->setRequiredNoteTemplate("\n".'<tr>'."\n".'<td colspan="2" class="symbole_obligatoire">* {requiredNote}</td></tr>'."\n");
|
846 |
//Traduction de champs requis
|
846 |
//Traduction de champs requis
|
847 |
$formtemplate->setRequiredNote(BAZ_CHAMPS_REQUIS) ;
|
847 |
//$formtemplate->setRequiredNote(BAZ_CHAMPS_REQUIS) ;
|
Line 848... |
Line 848... |
848 |
$formtemplate->setJsWarnings(BAZ_ERREUR_SAISIE,BAZ_VEUILLEZ_CORRIGER);
|
848 |
//$formtemplate->setJsWarnings(BAZ_ERREUR_SAISIE,BAZ_VEUILLEZ_CORRIGER);
|
849 |
|
849 |
|
850 |
|
850 |
|
Line 998... |
Line 998... |
998 |
$nb_jointures=0;
|
998 |
$nb_jointures=0;
|
999 |
$requeteFrom = '' ;
|
999 |
$requeteFrom = '' ;
|
1000 |
$requeteWhere = ' bn_ce_id_menu IN ('.$GLOBALS['_BAZAR_']['categorie_nature'].') ';
|
1000 |
$requeteWhere = ' bn_ce_id_menu IN ('.$GLOBALS['_BAZAR_']['categorie_nature'].') ';
|
1001 |
if ($GLOBALS['_BAZAR_']['id_typeannonce'] != 'toutes') $requeteWhere .= 'AND bn_id_nature='.$GLOBALS['_BAZAR_']['id_typeannonce'] ;
|
1001 |
if ($GLOBALS['_BAZAR_']['id_typeannonce'] != 'toutes') $requeteWhere .= 'AND bn_id_nature='.$GLOBALS['_BAZAR_']['id_typeannonce'] ;
|
1002 |
$requeteWhere .= ' AND bn_id_nature=bf_ce_nature AND ' ;
|
1002 |
$requeteWhere .= ' AND bn_id_nature=bf_ce_nature AND ' ;
|
- |
|
1003 |
if (isset($GLOBALS['_BAZAR_']['langue'])) {
|
- |
|
1004 |
$requeteWhere .= ' bn_ce_i18n like "'.$GLOBALS['_BAZAR_']['langue'].'%" and ';
|
1003 |
|
1005 |
}
|
1004 |
$requeteWhereListe = '' ;
|
1006 |
$requeteWhereListe = '' ;
|
Line 1005... |
Line 1007... |
1005 |
|
1007 |
|
1006 |
if ( isset($tableau) ) {
|
1008 |
if ( isset($tableau) ) {
|
1007 |
for ($i = 0; $i < count ($tableau); $i++) {
|
1009 |
for ($i = 0; $i < count ($tableau); $i++) {
|
Line 1236... |
Line 1238... |
1236 |
}
|
1238 |
}
|
Line 1237... |
Line 1239... |
1237 |
|
1239 |
|
1238 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
1240 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
1239 |
*
|
1241 |
*
|
- |
|
1242 |
* $Log: not supported by cvs2svn $
|
- |
|
1243 |
* Revision 1.94 2007-10-10 13:26:00 alexandre_tb
|
- |
|
1244 |
* utilisation de la classe Administrateur_bazar a la place de niveau_droit
|
1240 |
* $Log: not supported by cvs2svn $
|
1245 |
*
|
1241 |
* Revision 1.93 2007-10-01 11:59:51 alexandre_tb
|
1246 |
* Revision 1.93 2007-10-01 11:59:51 alexandre_tb
|
1242 |
* cosmetique d affichage de la date de l evenement
|
1247 |
* cosmetique d affichage de la date de l evenement
|
1243 |
*
|
1248 |
*
|
1244 |
* Revision 1.92 2007-09-28 15:02:43 jp_milcent
|
1249 |
* Revision 1.92 2007-09-28 15:02:43 jp_milcent
|