From 03a6316fbe62380ff82a601222339f9f016f62ea Mon Sep 17 00:00:00 2001 From: x2003bruneau Date: Mon, 2 Jul 2007 16:21:19 +0000 Subject: [PATCH] Rework profile using divs instead of tables. Only one skin is ported to the new structure. Should fix #692, but need tests. htdocs/css/keynote.css | 53 ++++++-- templates/profile/profile.tpl | 262 +++++++++++++++++++----------------------- 2 files changed, 164 insertions(+), 151 deletions(-) git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@1877 839d8a87-29fc-0310-9880-83ba4fa771e5 --- htdocs/css/keynote.css | 53 +++++++-- templates/profile/profile.tpl | 262 ++++++++++++++++++++---------------------- 2 files changed, 164 insertions(+), 151 deletions(-) diff --git a/htdocs/css/keynote.css b/htdocs/css/keynote.css index db17c86..f26739b 100644 --- a/htdocs/css/keynote.css +++ b/htdocs/css/keynote.css @@ -388,28 +388,43 @@ td.conteneur_tab { font-weight: bold; } -#fiche_identite { - padding: 5px; - width: 600px; +#fiche .part { + float: left; + clear: left; + width: 75%; + padding-right: 0em; + margin-right: 0em; } -#photo { padding-left: 0em; } +#fiche #photo { + float: right; + padding-left: 0em; + margin-left: 0em; + clear: right; + width: 25%; +} + +#fiche #photo img { + width: 100%; +} #fiche_identite div.civilite { text-align: center; font-weight: bold; - width: 80%; - float: left; + width: 80%; + float: left; color: #fff; background: inherit; + padding-top: 0.5ex; } #fiche_identite div.maj { - float: left; - width: 20%; + float: right; + width: 19%; font-size: 75%; text-align: right; vertical-align: top; + padding: 0.5ex 1ex 1ex 0ex; clear: right; } @@ -429,8 +444,9 @@ td.conteneur_tab { background: inherit; } + #fiche_identite div.email { - clear: left; + clear: left; float: left; } #fiche_identite div.mob { @@ -441,16 +457,31 @@ td.conteneur_tab { #fiche_identite div.formation { margin: 0em 1em; - clear: both; + clear: both; } div.adresse { float: left; - width: 46%; + min-width: 46%; padding: 0px; margin: 0px 1% 1ex 1%; } +#fiche .medal_frame { + float: left; + width: 33%; +} + +#fiche .medal_frame img { + float: left; + padding: 0ex 1ex; +} + +#fiche .medal_text { + vertical-align: middle; + font-weight: bold; +} + /* only for fiche_referent.php*/ #fiche_referent{ diff --git a/templates/profile/profile.tpl b/templates/profile/profile.tpl index a4a0520..dc32504 100644 --- a/templates/profile/profile.tpl +++ b/templates/profile/profile.tpl @@ -43,162 +43,144 @@ function chgMainWinLoc(strPage) [Modifier ma fiche] {/if} - - - - - + {if $logged && $x.is_referent} + [Ma fiche référent] + {/if} + + {if $x.adr} - - - +
+

Contact :

+ {foreach from=$x.adr item="address" key="i" name=adresses} + {if $address.active} + {include file="geoloc/address.tpl" address=$address titre_div=true titre="Mon adresse actuelle :" + for="`$x.prenom` `$x.nom`"} + {elseif $address.secondaire} + {include file="geoloc/address.tpl" address=$address titre_div=true titre="Adresse secondaire :" + for="`$x.prenom` `$x.nom`"} + {else} + {include file="geoloc/address.tpl" address=$address titre_div=true titre="Adresse principale :" + for="`$x.prenom` `$x.nom`"} + {/if} + {if $i is odd}
{/if} + {/foreach} +
{/if} {if $x.adr_pro} - - - +
+

Informations professionnelles :

+ {foreach from=$x.adr_pro item="address" key="i"} + {include file="include/emploi.tpl" address=$address} + {include file="geoloc/address.tpl" address=$address titre="Adresse : " for=$address.entreprise} +
 
+ {/foreach} +
{/if} {if $x.medals} - - - +
+

Distinctions :

+ {foreach from=$x.medals item=m} +
+ {$m.medal} +
+ {$m.medal}
{$m.grade} +
+
+ {/foreach} +
 
+
{/if} - {if $logged} - {if $x.cv} - - - + {if $logged && $x.cv} +
+

Curriculum Vitae :

+ {$x.cv|smarty:nodefaults} +
{/if} + {if !$logged} +
+ Cette fiche est publique et visible par tout internaute,
+ vous pouvez aussi voir celle réservée aux X. +
{/if} -{if !$logged} - -{/if} - -
-
- {if $x.sexe}•{/if} - {$x.prenom} {if $x.nom_usage eq ""}{$x.nom}{else}{$x.nom_usage} ({$x.nom}){/if} - {if $logged} - {if $x.nickname} (alias {$x.nickname}){/if}  - {* - *}{icon name=vcard title="Afficher la carte de visite"} - {if !$x.is_contact} - - {icon name=add title="Ajouter à mes contacts"} +
+
+ {if $photo_url}Photo de {$x.forlife}{/if} + {if $logged} + {if $x.section}
Section : {$x.section}
{/if} + {if $x.binets_join}
Binet(s) : {$x.binets_join}
{/if} + {if $x.gpxs_join}
Groupe(s) X : {$x.gpxs_join|smarty:nodefaults}
{/if} + {/if} + {if $x.web}
Site Web : {$x.web}
{/if} + {if $x.freetext}
Commentaires :
{$x.freetext|smarty:nodefaults}
{/if} +
+
+
+ {if $x.sexe}•{/if} + {$x.prenom} {if $x.nom_usage eq ""}{$x.nom}{else}{$x.nom_usage} ({$x.nom}){/if} + {if $logged} + {if $x.nickname} (alias {$x.nickname}){/if}  + {* + *}{icon name=vcard title="Afficher la carte de visite"} + {if !$x.is_contact} + + {icon name=add title="Ajouter à mes contacts"} + {else} + + {icon name=cross title="Retirer de mes contacts"} + {/if} + {if $smarty.session.perms->hasFlag('admin')} + + {icon name=wrench title="administrer user"} + {/if} + {/if} +
+ {if $logged} +
+ Fiche mise à jour
+ le {$x.date|date_format} +
+ {/if} + {if $logged || $x.mobile} +
+ {if $logged} + - {if $logged} -
- Fiche mise à jour
- le {$x.date|date_format} -
{/if} - {if $logged || $x.mobile} -
- {if $logged} - - {/if} -
- {if $x.mobile}Mobile : {$x.mobile}
{/if} -
-
+
+ {if $x.mobile}Mobile : {$x.mobile}
{/if}
+
+
+ {/if} +
+ {if $x.iso3166} + {$x.nationalite}  {/if} -
- {if $x.iso3166} - {$x.nationalite}  - {/if} - X {$x.promo} - {if ($x.promo_sortie-3 > $x.promo)} - - X {math equation="a-b" a=$x.promo_sortie b=3} - {/if} - {if $x.applis_join} -  - Formation : {$x.applis_join|smarty:nodefaults} - {/if} - {if $logged} - {if $x.is_referent} - [Ma fiche référent] - {/if} - {/if} -
-
- {if $photo_url}Photo de {$x.forlife}{/if} - {if $logged} - {if $x.section}
Section : {$x.section}
{/if} - {if $x.binets_join}
Binet(s) : {$x.binets_join}
{/if} - {if $x.gpxs_join}
Groupe(s) X : {$x.gpxs_join|smarty:nodefaults}
{/if} + X {$x.promo} + {if ($x.promo_sortie-3 > $x.promo)} + - X {math equation="a-b" a=$x.promo_sortie b=3} + {/if} + {if $x.applis_join} +  - Formation : {$x.applis_join|smarty:nodefaults} {/if} - {if $x.web}
Site Web : {$x.web}
{/if} - {if $x.freetext}
Commentaires :
{$x.freetext|smarty:nodefaults}
{/if} -
-

Contact :

- {foreach from=$x.adr item="address" key="i"} - {if $address.active} - {include file="geoloc/address.tpl" address=$address titre_div=true titre="Mon adresse actuelle :" - for="`$x.prenom` `$x.nom`"} - {elseif $address.secondaire} - {include file="geoloc/address.tpl" address=$address titre_div=true titre="Adresse secondaire :" - for="`$x.prenom` `$x.nom`"} - {else} - {include file="geoloc/address.tpl" address=$address titre_div=true titre="Adresse principale :" - for="`$x.prenom` `$x.nom`"} - {/if} - {/foreach} -
 
-
-

Informations professionnelles :

- {foreach from=$x.adr_pro item="address" key="i"} - {include file="include/emploi.tpl" address=$address} - {include file="geoloc/address.tpl" address=$address titre="Adresse : " for=$address.entreprise} -
 
- {/foreach} -
-

Distinctions :

- {foreach from=$x.medals item=m} - - - - - -
- {$m.medal} - - {$m.medal} -
{$m.grade} -
- {/foreach} -
 
-
-

Curriculum Vitae :

- {$x.cv|smarty:nodefaults} -
Cette fiche est publique et visible par tout internaute,
-vous pouvez aussi voir celle réservée aux X. -
+
+ {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *} -- 2.1.4