From 43963487399c8e290c30132e577e2f5fffb06cc4 Mon Sep 17 00:00:00 2001
From: x2000habouzit
Date: Fri, 3 Sep 2004 00:20:28 +0000
Subject: [PATCH] wibble
---
htdocs/referent.php | 13 +++++++------
templates/fiche_referent.tpl | 4 ++--
templates/referent.tpl | 30 +++++++++++++++---------------
3 files changed, 24 insertions(+), 23 deletions(-)
diff --git a/htdocs/referent.php b/htdocs/referent.php
index 9a0bc63..74950cb 100644
--- a/htdocs/referent.php
+++ b/htdocs/referent.php
@@ -18,7 +18,7 @@
* Foundation, Inc., *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
***************************************************************************
- $Id: referent.php,v 1.6 2004-08-31 19:48:46 x2000habouzit Exp $
+ $Id: referent.php,v 1.7 2004-09-03 00:20:28 x2000habouzit Exp $
***************************************************************************/
@@ -66,16 +66,16 @@ mysql_free_result($res);
$page->assign_by_ref('secteurs', $secteurs);
//on recupere les sous-secteurs si necessaire
+$ss_secteurs[''] = '';
if(!empty($secteur_selectionne))
{
$res = $globals->db->query("SELECT id, label FROM emploi_ss_secteur
WHERE secteur = '$secteur_selectionne'");
- $ss_secteurs[''] = '';
while(list($tmp_id, $tmp_label) = mysql_fetch_row($res))
$ss_secteurs[$tmp_id] = $tmp_label;
mysql_free_result($res);
- $page->assign_by_ref('ss_secteurs', $ss_secteurs);
}
+$page->assign_by_ref('ss_secteurs', $ss_secteurs);
//recuperation des noms de pays
$res = $globals->db->query("SELECT a2, pays FROM geoloc_pays WHERE pays <> '' ORDER BY pays");
@@ -88,11 +88,12 @@ $page->assign_by_ref('pays', $pays);
//On vient d'un formulaire
if(isset($_REQUEST['Chercher'])){
- $champ_select = 'm.uid, a.prenom, a.nom, a.promo, a.username, m.expertise';
+ $champ_select = 'm.uid, a.prenom, a.nom, a.promo, l.alias, m.expertise';
$champ_select = $champ_select.', mp.pid';
$champ_select = $champ_select.', ms.secteur, ms.ss_secteur';
$clause_from = 'FROM mentor as m LEFT JOIN auth_user_md5 AS a ON(m.uid = a.user_id)';
+ $clause_from = $clause_from.' INNER JOIN aliases AS l ON (a.user_id=l.id AND l.type=\'a_vie\')';
$clause_from = $clause_from.' LEFT JOIN mentor_pays AS mp ON(m.uid = mp.uid)';
$clause_from = $clause_from.' LEFT JOIN mentor_secteurs AS ms ON(m.uid = ms.uid)';
@@ -140,7 +141,7 @@ if(isset($_REQUEST['Chercher'])){
$page->assign('resultats',true);
$personnes = Array();
$page->assign_by_ref('personnes',$personnes);
- while((list($uid, $prenom, $nom, $promo, $username, $expertise_bd, $pays_id, $secteur_id, $ss_secteur_id) = mysql_fetch_row($res))
+ while((list($uid, $prenom, $nom, $promo, $forlife, $expertise_bd, $pays_id, $secteur_id, $ss_secteur_id) = mysql_fetch_row($res))
|| ($nb_resultats >= $nb_max_resultats_total)){
if($current_uid != $uid){
$current_uid = $uid;
@@ -150,7 +151,7 @@ if(isset($_REQUEST['Chercher'])){
$pers_trouve['nom'] = $nom;
$pers_trouve['prenom'] = $prenom;
$pers_trouve['promo'] = $promo;
- $pers_trouve['username'] = $username;
+ $pers_trouve['forlife'] = $forlife;
$pers_trouve['expertise'] = $expertise_bd;
$personnes[] = $pers_trouve;
}
diff --git a/templates/fiche_referent.tpl b/templates/fiche_referent.tpl
index be100c8..46a49be 100644
--- a/templates/fiche_referent.tpl
+++ b/templates/fiche_referent.tpl
@@ -17,14 +17,14 @@
* Foundation, Inc., *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
***************************************************************************
- $Id: fiche_referent.tpl,v 1.4 2004-08-31 11:25:39 x2000habouzit Exp $
+ $Id: fiche_referent.tpl,v 1.5 2004-09-03 00:21:21 x2000habouzit Exp $
***************************************************************************}
{dynamic}
{**a-t-il bien des infos de referents ? **}
diff --git a/templates/referent.tpl b/templates/referent.tpl
index b8109e7..a5a8458 100644
--- a/templates/referent.tpl
+++ b/templates/referent.tpl
@@ -17,16 +17,16 @@
* Foundation, Inc., *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
***************************************************************************
- $Id: referent.tpl,v 1.8 2004-08-31 11:25:39 x2000habouzit Exp $
+ $Id: referent.tpl,v 1.9 2004-09-03 00:20:28 x2000habouzit Exp $
***************************************************************************}
{literal}
-
@@ -44,27 +44,27 @@ sans doute car ta requ
d'être plus précis.
{elseif $resultats}
-