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.52 2006-06-02 09:29:07 florian Exp $
|
22 |
// CVS : $Id: bazar.fonct.rss.php,v 1.53 2006-06-29 10:29:51 florian 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.52 $
|
31 |
*@version $Revision: 1.53 $
|
32 |
// +------------------------------------------------------------------------------------------------------+
|
32 |
// +------------------------------------------------------------------------------------------------------+
|
33 |
*/
|
33 |
*/
|
Line 34... |
Line 34... |
34 |
|
34 |
|
35 |
// +------------------------------------------------------------------------------------------------------+
|
35 |
// +------------------------------------------------------------------------------------------------------+
|
Line 660... |
Line 660... |
660 |
' :</td>'."\n".'<td style="text-align:left;padding:5px;"> '."\n".'{element}'."\n".
|
660 |
' :</td>'."\n".'<td style="text-align:left;padding:5px;"> '."\n".'{element}'."\n".
|
661 |
'<!-- BEGIN error --><span class="erreur">{error}</span><!-- END error -->'."\n".
|
661 |
'<!-- BEGIN error --><span class="erreur">{error}</span><!-- END error -->'."\n".
|
662 |
'</td>'."\n".'</tr>'."\n");
|
662 |
'</td>'."\n".'</tr>'."\n");
|
663 |
$squelette->setElementTemplate( '<tr>'."\n".'<td colspan="2" class="liste_a_cocher"><strong>{label} {element}</strong>'."\n".
|
663 |
$squelette->setElementTemplate( '<tr>'."\n".'<td colspan="2" class="liste_a_cocher"><strong>{label} {element}</strong>'."\n".
|
664 |
'<!-- BEGIN required --><span class="symbole_obligatoire"> *</span><!-- END required -->'."\n".'</td>'."\n".'</tr>'."\n", 'accept_condition');
|
664 |
'<!-- BEGIN required --><span class="symbole_obligatoire"> *</span><!-- END required -->'."\n".'</td>'."\n".'</tr>'."\n", 'accept_condition');
|
665 |
$squelette->setElementTemplate( '<tr><td colspan="2" class="bouton">{label}{element}</td></tr>'."\n", 'valider');
|
665 |
$squelette->setElementTemplate( '<tr><td colspan="2">{label}{element}</td></tr>'."\n", 'rechercher');
|
Line 666... |
Line 666... |
666 |
|
666 |
|
667 |
$squelette->setRequiredNoteTemplate("\n".'<tr>'."\n".'<td colspan="2" class="symbole_obligatoire">* {requiredNote}</td></tr>'."\n");
|
667 |
$squelette->setRequiredNoteTemplate("\n".'<tr>'."\n".'<td colspan="2" class="symbole_obligatoire">* {requiredNote}</td></tr>'."\n");
|
668 |
//Traduction de champs requis
|
668 |
//Traduction de champs requis
|
669 |
$formtemplate->setRequiredNote(BAZ_CHAMPS_REQUIS) ;
|
669 |
$formtemplate->setRequiredNote(BAZ_CHAMPS_REQUIS) ;
|
Line 751... |
Line 751... |
751 |
}
|
751 |
}
|
Line 752... |
Line 752... |
752 |
|
752 |
|
753 |
//champs texte pour entrer les mots cles
|
753 |
//champs texte pour entrer les mots cles
|
754 |
$option=array('maxlength'=>60,'style'=>'border:1px solid #000;width:200px;font:12px Myriad, Arial, sans-serif;');
|
754 |
$option=array('maxlength'=>60,'style'=>'border:1px solid #000;width:200px;font:12px Myriad, Arial, sans-serif;');
|
755 |
$formtemplate->addElement('text', 'recherche_mots_cles', BAZ_MOT_CLE, $option) ;
|
755 |
$formtemplate->addElement('text', 'recherche_mots_cles', BAZ_MOT_CLE, $option) ;
|
756 |
$defauts=array('recherche_mots_cles'=>BAZ_MOT_CLE);
|
756 |
//$defauts=array('recherche_mots_cles'=>BAZ_MOT_CLE);
|
Line 757... |
Line 757... |
757 |
$formtemplate->setDefaults($defauts);
|
757 |
$formtemplate->setDefaults($defauts);
|
758 |
|
758 |
|
Line 803... |
Line 803... |
803 |
if (isset($lien_recherche_avancee)) {
|
803 |
if (isset($lien_recherche_avancee)) {
|
804 |
labelhtml($formtemplate,'',$lien_recherche_avancee,'','','','','');
|
804 |
labelhtml($formtemplate,'',$lien_recherche_avancee,'','','','','');
|
805 |
}
|
805 |
}
|
Line 806... |
Line 806... |
806 |
|
806 |
|
807 |
//Bouton de validation du formulaire
|
807 |
//Bouton de validation du formulaire
|
808 |
$option=array('style'=>'border:1px solid #000;width:80px;font:12px Myriad, Arial, sans-serif;');
|
808 |
$option=array('style'=>'border:1px solid #000;width:100px;font:12px Myriad, Arial, sans-serif;');
|
809 |
$bouton[] = &HTML_QuickForm::createElement('submit', 'rechercher', BAZ_RECHERCHER, $option);
|
809 |
//$bouton[] = &HTML_QuickForm::createElement('submit', 'rechercher', BAZ_RECHERCHER, $option);
|
- |
|
810 |
//$formtemplate->addGroup($bouton, null, null, '');
|
Line 810... |
Line 811... |
810 |
$formtemplate->addGroup($bouton, null, null, '');
|
811 |
$formtemplate->addElement('submit', 'rechercher', BAZ_RECHERCHER, $option);
|
811 |
|
812 |
|
Line 892... |
Line 893... |
892 |
$res .= '<br /><p class="zone_info">'."\n".BAZ_ENTRER_VOS_CRITERES_DE_RECHERCHE.'</p>'."\n";
|
893 |
$res .= '<br /><p class="zone_info">'."\n".BAZ_ENTRER_VOS_CRITERES_DE_RECHERCHE.'</p>'."\n";
|
893 |
$GLOBALS['_BAZAR_']['url']->removeQueryString('action');
|
894 |
$GLOBALS['_BAZAR_']['url']->removeQueryString('action');
|
894 |
$GLOBALS['_BAZAR_']['url']->addQueryString('action', BAZ_VOIR_FLUX_RSS);
|
895 |
$GLOBALS['_BAZAR_']['url']->addQueryString('action', BAZ_VOIR_FLUX_RSS);
|
895 |
$GLOBALS['_BAZAR_']['url']->addQueryString('annonce', $typeannonce);
|
896 |
$GLOBALS['_BAZAR_']['url']->addQueryString('annonce', $typeannonce);
|
896 |
$GLOBALS['_BAZAR_']['url']->addQueryString('categorie_nature', $GLOBALS['_BAZAR_']['categorie_nature']);
|
897 |
$GLOBALS['_BAZAR_']['url']->addQueryString('categorie_nature', $GLOBALS['_BAZAR_']['categorie_nature']);
|
897 |
$res .= '{{Syndication titre="Les dernières fiches enregistrées" url="'.$GLOBALS['_BAZAR_']['url']->getURL().
|
898 |
$res .= '{{Syndication titre="Les dernières fiches enregistrées" url="'.preg_replace ('/&/', '&', $GLOBALS['_BAZAR_']['url']->getURL()).
|
898 |
'" nb=10 nouvellefenetre=0 formatdate="'.BAZ_TYPE_AFFICHAGE_LISTE.'"}}';
|
899 |
'" nb=10 nouvellefenetre=0 formatdate="'.BAZ_TYPE_AFFICHAGE_LISTE.'"}}';
|
899 |
}
|
900 |
}
|
900 |
return $res;
|
901 |
return $res;
|
901 |
}
|
902 |
}
|
Line 913... |
Line 914... |
913 |
$req_where=1;
|
914 |
$req_where=1;
|
914 |
$requete .= 'bf_statut_fiche='.$valide;
|
915 |
$requete .= 'bf_statut_fiche='.$valide;
|
915 |
}
|
916 |
}
|
Line 916... |
Line 917... |
916 |
|
917 |
|
917 |
if ($valide!=0) {
|
- |
|
918 |
if ($req_where==1) {$requete .= ' AND ';}
|
918 |
if ($valide!=0) {
|
919 |
$utilisateur = new Administrateur_bazar ($GLOBALS['AUTH']) ;
|
919 |
$utilisateur = new Administrateur_bazar ($GLOBALS['AUTH']) ;
|
920 |
if ($utilisateur->isSuperAdmin()) {
|
920 |
if ($utilisateur->isSuperAdmin()) {
|
921 |
$req_where=1;
|
921 |
$req_where=1;
|
922 |
} else {
|
- |
|
923 |
if ($req_where==1) {
|
922 |
} else {
|
924 |
$requete .= ' AND ';
|
- |
|
925 |
}
|
923 |
if ($req_where==1) {$requete .= ' AND ';}
|
926 |
$requete .= '(bf_date_debut_validite_fiche<=NOW() or bf_date_debut_validite_fiche="0000-00-00")'.
|
924 |
$requete .= '(bf_date_debut_validite_fiche<=NOW() or bf_date_debut_validite_fiche="0000-00-00")'.
|
- |
|
925 |
' AND (bf_date_fin_validite_fiche>=NOW() or bf_date_fin_validite_fiche="0000-00-00") AND bn_id_nature=bf_ce_nature';
|
927 |
' AND (bf_date_fin_validite_fiche>=NOW() or bf_date_fin_validite_fiche="0000-00-00") AND bn_id_nature=bf_ce_nature';
|
926 |
$req_where=1;
|
928 |
}
|
927 |
}
|
929 |
}
|
928 |
}
|
930 |
if ($emetteur!='' && $emetteur!='tous') {
|
929 |
if ($emetteur!='' && $emetteur!='tous') {
|
931 |
if ($req_where==1) {$requete .= ' AND ';}
|
930 |
if ($req_where==1) {$requete .= ' AND ';}
|
Line 991... |
Line 990... |
991 |
}
|
990 |
}
|
Line 992... |
Line 991... |
992 |
|
991 |
|
993 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
992 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
994 |
*
|
993 |
*
|
- |
|
994 |
* $Log: not supported by cvs2svn $
|
- |
|
995 |
* Revision 1.52 2006/06/02 09:29:07 florian
|
- |
|
996 |
* debut d'integration de wikini
|
995 |
* $Log: not supported by cvs2svn $
|
997 |
*
|
996 |
* Revision 1.51 2006/05/23 15:41:27 alexandre_tb
|
998 |
* Revision 1.51 2006/05/23 15:41:27 alexandre_tb
|
997 |
* ajout de la numérotation des pages en haut et en bas ds résultats et ajout d'une div class=bazar_numero pour les entourer
|
999 |
* ajout de la numérotation des pages en haut et en bas ds résultats et ajout d'une div class=bazar_numero pour les entourer
|
998 |
*
|
1000 |
*
|
999 |
* Revision 1.50 2006/05/22 09:55:12 alexandre_tb
|
1001 |
* Revision 1.50 2006/05/22 09:55:12 alexandre_tb
|