{**************************************************************************}
{* *}
-{* Copyright (C) 2003-2007 Polytechnique.org *}
+{* Copyright (C) 2003-2011 Polytechnique.org *}
{* http://opensource.polytechnique.org/ *}
{* *}
{* This program is free software; you can redistribute it and/or modify *}
{* *}
{**************************************************************************}
-{javascript name=ajax}
+<script type="text/javascript">
+ $($.closeOnEsc);
+</script>
+
+{assign var=terms value=$profile->getMentoringTerms()}
+{assign var=countries value=$profile->getMentoringCountries()}
<div id="fiche">
-
- <div class="center">
- <strong>{$prenom} {$nom}</strong><br />
- <span>X{$promo} - </span> <a href="mailto:{$bestalias}@{#globals.mail.domain#}">{$bestalias}@{#globals.mail.domain#}</a>
+<div id="fiche_referent">
+ <div id="fiche_identite">
+ <div class="civilite">
+ <strong>{$profile->fullName()}</strong><br />
+ <span>{$profile->promo()} - </span> <a href="mailto:{$profile->displayEmail()}">{$profile->displayEmail()}</a>
+ </div>
</div>
+ <div class="spacer"></div>
- {if $expertise != '' || $secteurs|count || $pays|count }
-
- <h2>Informations de référent :</h2>
-
- <div id="fiche_referent">
- {if $expertise}
+ {if $profile->mentor_expertise != '' || $terms|count || $countries|count }
+ <div id="part">
+ <h2>Informations de référent :</h2>
+ {if $profile->mentor_expertise}
<div class="rubrique_referent">
- <em>Expertise : </em><br />
- <span>{$expertise|nl2br}</span>
+ <em>Expertise : </em><br />
+ <span>{$profile->mentor_expertise|nl2br}</span>
</div>
{/if}
- {if $secteurs|count}
+ {if $terms|count}
<div class="rubrique_referent">
- <em>Secteurs :</em><br />
+ <em>Mots-clefs :</em><br />
<ul>
- {foreach from=$secteurs item="secteur" key="i"}
- <li>{$secteur}{if $ss_secteurs.$i != ''} ({$ss_secteurs.$i}){/if}</li>
+ {foreach from=$terms item="term"}
+ <li>{$term->full_name}</li>
{/foreach}
</ul>
</div>
{/if}
- {if $pays|count}
+ {if $countries|count}
<div class="rubrique_referent">
- <em>Pays :</em>
+ <em>Pays :</em>
<ul>
{foreach from=$pays item="pays_i"}
<li>{$pays_i}</li>
</div>
{/if}
- {foreach from=$adr_pro item="address" key="i"}
- <h2>{$address.entreprise}</h2>
- {include file="include/emploi.tpl" address=$address}
- {include file="geoloc/address.tpl" address=$address titre="Adresse : " for=$address.entreprise}
-
- <div class="spacer"> </div>
- {/foreach}
+ {assign var=jobs value=$profile->getJobs(2)}
+ <div class="part">
+ {foreach from=$jobs item="job"}
+ <h2>{$job->company->name}</h2>
+ {include file="include/emploi.tpl" job=$job}
+ {if $job->address}
+ {include file="geoloc/address.tpl" address=$job->address titre="Adresse : " for=$job->company->name phones=$job->phones pos="left"}
+ {elseif $job->phones}
+ {display_phones tels=$job->phones}
+ {/if}
+ <div class="spacer"> </div>
+ {/foreach}
+ </div>
- {if $cv}
- <h2>Curriculum Vitae : </h2>
- <div>{$cv|smarty:nodefaults}</div>
+ {if $profile->cv}
+ <div class="part">
+ <h2>Curriculum Vitae : </h2>
+ <div style="padding: 0 2ex">{$profile->cv|miniwiki:title|smarty:nodefaults}</div>
+ </div>
{/if}
-
+ <div class="spacer"></div>
+</div>
</div>
{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}