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.php,v 1.57.2.8 2007-03-05 14:33:44 jp_milcent Exp $
|
22 |
// CVS : $Id: bazar.fonct.php,v 1.57.2.9 2007-03-06 16:23:24 jp_milcent Exp $
|
23 |
/**
|
23 |
/**
|
24 |
*
|
24 |
*
|
25 |
* Fonctions du module bazar
|
25 |
* Fonctions du module bazar
|
26 |
*
|
26 |
*
|
27 |
*
|
27 |
*
|
Line 29... |
Line 29... |
29 |
//Auteur original :
|
29 |
//Auteur original :
|
30 |
*@author Alexandre Granier <alexandre@tela-botanica.org>
|
30 |
*@author Alexandre Granier <alexandre@tela-botanica.org>
|
31 |
*@author Florian Schmitt <florian@ecole-et-nature.org>
|
31 |
*@author Florian Schmitt <florian@ecole-et-nature.org>
|
32 |
//Autres auteurs :
|
32 |
//Autres auteurs :
|
33 |
*@copyright Tela-Botanica 2000-2004
|
33 |
*@copyright Tela-Botanica 2000-2004
|
34 |
*@version $Revision: 1.57.2.8 $ $Date: 2007-03-05 14:33:44 $
|
34 |
*@version $Revision: 1.57.2.9 $ $Date: 2007-03-06 16:23:24 $
|
35 |
// +------------------------------------------------------------------------------------------------------+
|
35 |
// +------------------------------------------------------------------------------------------------------+
|
36 |
*/
|
36 |
*/
|
Line 37... |
Line 37... |
37 |
|
37 |
|
38 |
// +------------------------------------------------------------------------------------------------------+
|
38 |
// +------------------------------------------------------------------------------------------------------+
|
Line 215... |
Line 215... |
215 |
}
|
215 |
}
|
216 |
else {
|
216 |
else {
|
217 |
$res .= '<p class="zone_info">'.BAZ_PAS_DE_FICHE.'</p>'."\n" ;
|
217 |
$res .= '<p class="zone_info">'.BAZ_PAS_DE_FICHE.'</p>'."\n" ;
|
218 |
}
|
218 |
}
|
219 |
$GLOBALS['_BAZAR_']['url']->addQueryString('action', BAZ_DEPOSER_ANNONCE);
|
219 |
$GLOBALS['_BAZAR_']['url']->addQueryString('action', BAZ_DEPOSER_ANNONCE);
|
220 |
$res .= '<br /><ul><li><a href="'.$GLOBALS['_BAZAR_']['url']->getURL().'" title="'.BAZ_SAISIR_UNE_NOUVELLE_FICHE.'">'.BAZ_SAISIR_UNE_NOUVELLE_FICHE.'</a></li></ul>';
|
220 |
$res .= '<br /><ul id="liste_liens"><li id="lien_saisir"><a href="'.$GLOBALS['_BAZAR_']['url']->getURL().'" title="'.BAZ_SAISIR_UNE_NOUVELLE_FICHE.'">'.BAZ_SAISIR_UNE_NOUVELLE_FICHE.'</a></li></ul>';
|
221 |
$GLOBALS['_BAZAR_']['url']->removeQueryString('action');
|
221 |
$GLOBALS['_BAZAR_']['url']->removeQueryString('action');
|
222 |
}
|
222 |
}
|
223 |
else {
|
223 |
else {
|
224 |
$res .= '<p class="zone_info">'.BAZ_IDENTIFIEZ_VOUS_POUR_SAISIR.'</p>'."\n" ;
|
224 |
$res .= '<p class="zone_info">'.BAZ_IDENTIFIEZ_VOUS_POUR_SAISIR.'</p>'."\n" ;
|
225 |
$res .= '<form id="form_connexion" class="form_identification" action="' ;
|
225 |
$res .= '<form id="form_connexion" class="form_identification" action="' ;
|
Line 311... |
Line 311... |
311 |
}
|
311 |
}
|
312 |
}
|
312 |
}
|
Line 313... |
Line 313... |
313 |
|
313 |
|
314 |
//requete pour obtenir l'id, le nom et prenom des personnes inscrites a l'annuaire sauf soi meme
|
314 |
//requete pour obtenir l'id, le nom et prenom des personnes inscrites a l'annuaire sauf soi meme
|
315 |
$requete = 'SELECT '.BAZ_CHAMPS_ID.', '.BAZ_CHAMPS_NOM.', '.BAZ_CHAMPS_PRENOM.' FROM '.BAZ_ANNUAIRE.
|
315 |
$requete = 'SELECT '.BAZ_CHAMPS_ID.', '.BAZ_CHAMPS_NOM.', '.BAZ_CHAMPS_PRENOM.' FROM '.BAZ_ANNUAIRE.
|
316 |
' WHERE '.BAZ_CHAMPS_ID."!=".$GLOBALS['id_user'].' ORDER BY '.BAZ_CHAMPS_NOM.' ASC';
|
316 |
' WHERE '.BAZ_CHAMPS_ID." != ".$GLOBALS['id_user'].' ORDER BY '.BAZ_CHAMPS_NOM.' ASC';
|
317 |
$resultat = $GLOBALS['_BAZAR_']['db']->query($requete) ;
|
317 |
$resultat = $GLOBALS['_BAZAR_']['db']->query($requete) ;
|
318 |
if (DB::isError($resultat)) {
|
318 |
if (DB::isError($resultat)) {
|
319 |
echo ($resultat->getMessage().$resultat->getDebugInfo()) ;
|
319 |
echo ($resultat->getMessage().$resultat->getDebugInfo()) ;
|
320 |
}
|
320 |
}
|
Line 406... |
Line 406... |
406 |
'<a href='.$lien_passer_redacteur->getURL().'>'.BAZ_DROIT_REDACTEUR.'</a>',
|
406 |
'<a href='.$lien_passer_redacteur->getURL().'>'.BAZ_DROIT_REDACTEUR.'</a>',
|
407 |
'<a href='.$lien_passer_admin->getURL().'>'.BAZ_DROIT_ADMIN.'</a>'));
|
407 |
'<a href='.$lien_passer_admin->getURL().'>'.BAZ_DROIT_ADMIN.'</a>'));
|
Line 408... |
Line 408... |
408 |
|
408 |
|
409 |
}
|
409 |
}
|
- |
|
410 |
}
|
- |
|
411 |
// Nettoyage de l'url
|
- |
|
412 |
$GLOBALS['_BAZAR_']['url']->removeQueryString('action');
|
- |
|
413 |
$GLOBALS['_BAZAR_']['url']->removeQueryString('pers');
|
- |
|
414 |
$GLOBALS['_BAZAR_']['url']->removeQueryString('droits');
|
- |
|
415 |
$GLOBALS['_BAZAR_']['url']->removeQueryString('idtypeannonce');
|
410 |
}
|
416 |
|
411 |
$table->altRowAttributes(1, array('class' => 'ligne_impaire'), array('class' => 'ligne_paire'));
|
417 |
$table->altRowAttributes(1, array('class' => 'ligne_impaire'), array('class' => 'ligne_paire'));
|
412 |
$table->updateColAttributes(0, array('align' => 'left'));
|
418 |
$table->updateColAttributes(0, array('align' => 'left'));
|
413 |
$table->updateColAttributes(1, array('align' => 'left'));
|
419 |
$table->updateColAttributes(1, array('align' => 'left'));
|
414 |
$table->updateColAttributes(2, array('align' => 'left'));
|
420 |
$table->updateColAttributes(2, array('align' => 'left'));
|
Line 1253... |
Line 1259... |
1253 |
}
|
1259 |
}
|
Line 1254... |
Line 1260... |
1254 |
|
1260 |
|
1255 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
1261 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
1256 |
*
|
1262 |
*
|
- |
|
1263 |
* $Log: not supported by cvs2svn $
|
- |
|
1264 |
* Revision 1.57.2.8 2007/03/05 14:33:44 jp_milcent
|
- |
|
1265 |
* Suppression de l'appel à Mes_Fiches dans la fonction baz_formulaire
|
1257 |
* $Log: not supported by cvs2svn $
|
1266 |
*
|
1258 |
* Revision 1.57.2.7 2007/03/05 10:28:03 alexandre_tb
|
1267 |
* Revision 1.57.2.7 2007/03/05 10:28:03 alexandre_tb
|
1259 |
* correction d un commentaire
|
1268 |
* correction d un commentaire
|
1260 |
*
|
1269 |
*
|
1261 |
* Revision 1.57.2.6 2007/02/15 13:42:16 jp_milcent
|
1270 |
* Revision 1.57.2.6 2007/02/15 13:42:16 jp_milcent
|