* Foundation, Inc., *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
***************************************************************************
- $Id: fiche.php,v 1.10 2004-09-05 20:27:57 x2000coic Exp $
+ $Id: fiche.php,v 1.11 2004-09-19 10:41:05 x2000coic Exp $
***************************************************************************/
$page->assign('xorg_title', "$prenom $nom");
+
// reformatage is_contact
$is_contact = (bool) $is_contact;
$page->assign('is_contact', $is_contact);
mysql_free_result($result);
+//check si le gars est un referent :
+$reqsql = "SELECT 1 FROM mentor WHERE uid = '$user_id' AND expertise <> ''";
+$result = $globals->db->query($reqsql);
+if (list($is_referent) = mysql_fetch_row($result)){
+ mysql_free_result($result);
+}
+$page->assign('is_referent', $is_referent);
+
//recuperation des infos professionnelles
$reqsql =
"SELECT e.entreprise, s.label as secteur , ss.label as sous_secteur , f.fonction_fr as fonction,
* Foundation, Inc., *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
***************************************************************************
- $Id: fiche_referent.php,v 1.8 2004-09-05 12:54:18 x2000habouzit Exp $
+ $Id: fiche_referent.php,v 1.9 2004-09-19 10:41:05 x2000coic Exp $
***************************************************************************/
$page->assign('cv', $cv);
$page->assign('forlife', $forlife);
+
//recuperation des infos professionnelles
$reqsql =
"SELECT e.entreprise, s.label as secteur , ss.label as sous_secteur , f.fonction_fr as fonction,
* Foundation, Inc., *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
***************************************************************************
- $Id: fiche.tpl,v 1.11 2004-09-10 23:54:14 x2000habouzit Exp $
+ $Id: fiche.tpl,v 1.12 2004-09-19 10:41:08 x2000coic Exp $
***************************************************************************}
<a href="mailto:{$forlife}@polytechnique.org">{$forlife}@polytechnique.org</a><br />
</div>
<div><em>{$nationalite}</em> - X {$promo} - Formation : {$applis|smarty:nodefaults}</div>
+ {if $is_referent}
+ <div><a href="javascript:x()" onclick="popWin('fiche_referent.php?user={$forlife}')">Ma fiche référent</a></div>
+ {/if}
</div>
<div id="fiche_divers">