affichage des emplois
authorPascal Corpet <pascal.corpet@m4x.org>
Thu, 24 Feb 2005 09:01:37 +0000 (09:01 +0000)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Thu, 26 Jun 2008 21:28:16 +0000 (23:28 +0200)
git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-498

templates/fiche.tpl
templates/fiche_referent.tpl
templates/include/flags.radio.tpl

index 02ea616..18e30c9 100644 (file)
@@ -129,36 +129,7 @@ function chgMainWinLoc( strPage ) {
     <td>
       <h2>Informations professionnelles :</h2>
       {foreach from=$x.adr_pro item="address" key="i"}
-      <div class="adresse">
-        {if $address.entreprise}
-        <div>
-          <em>Entreprise/Organisme : </em> <strong>{$address.entreprise}</strong>
-        </div>
-        {/if}
-        {if $address.secteur}
-        <div>
-          <em>Secteur : </em>
-          <strong>{$address.secteur}{if $address.ss_secteur} ({$address.ss_secteur}){/if}</strong>
-        </div>
-        {/if}
-
-        {if $address.fonction}
-        <div>
-          <em>Fonction : </em> <strong>{$address.fonction}</strong>
-        </div>
-        {/if}
-        {if $address.poste}
-        <div>
-          <em>Poste : </em> <strong>{$address.poste}</strong>
-        </div>
-        {/if}
-        {if $address.email}
-        <div>
-          <em>E-mail : </em> <strong>{$address.email}</strong>
-        </div>
-        {/if}
-      </div>
-
+      {include file="include/emploi.tpl" address=$address}
       {include file="geoloc/address.tpl" address=$address titre="Adresse : "}
       <div class="spacer">&nbsp;</div>
       {/foreach}
index e3041e2..7202ab9 100644 (file)
 
   {foreach from=$adr_pro item="address" key="i"}
   <h2>{$address.entreprise}</h2>
-  <div class="adresse">
-    {if $address.entreprise}
-    <div>
-      <em>Entreprise/Organisme : </em>
-      <strong>{$address.entreprise}</strong>
-    </div>
-    {/if}
-    {if $address.secteur}
-    <div>
-      <em>Secteur : </em>
-      <strong>{$address.secteur}{if $address.ss_secteur} ({$address.ss_secteur}){/if}</strong>
-    </div>
-    {/if}
-
-    {if $address.fonction}
-    <div>
-      <em>Fonction : </em>
-      <strong>{$address.fonction}</strong>
-    </div>
-    {/if}
-    {if $address.poste}
-    <div>
-      <em>Poste : </em>
-      <strong>{$address.poste}</strong>
-    </div>
-    {/if}
-  </div>
-
+  {include file="include/emploi.tpl" address=$address}
   {include file="geoloc/address.tpl" address=$address titre="Adresse : "}
   
   <div class="spacer">&nbsp;</div>
index 2d232b7..8cd8f1f 100644 (file)
@@ -1,3 +1,23 @@
+{***************************************************************************
+ *  Copyright (C) 2003-2004 Polytechnique.org                              *
+ *  http://opensource.polytechnique.org/                                   *
+ *                                                                         *
+ *  This program is free software; you can redistribute it and/or modify   *
+ *  it under the terms of the GNU General Public License as published by   *
+ *  the Free Software Foundation; either version 2 of the License, or      *
+ *  (at your option) any later version.                                    *
+ *                                                                         *
+ *  This program is distributed in the hope that it will be useful,        *
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of         *
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the          *
+ *  GNU General Public License for more details.                           *
+ *                                                                         *
+ *  You should have received a copy of the GNU General Public License      *
+ *  along with this program; if not, write to the Free Software            *
+ *  Foundation, Inc.,                                                      *
+ *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                *
+ ***************************************************************************}
+
     <tr>
       <td colspan="5" class="pflags">
         <table class="flags" summary="Flags" cellpadding="0" cellspacing="0">