From ea62a1705b554185cbcec232731b5198149b1f50 Mon Sep 17 00:00:00 2001 From: Florent Bruneau Date: Mon, 5 May 2008 12:04:33 +0200 Subject: [PATCH] Add user photo to the "minifiche". Signed-off-by: Florent Bruneau --- htdocs/css/keynote.css | 35 ++++++++---- templates/include/minifiche.tpl | 116 +++++++++++++++++++++------------------- 2 files changed, 87 insertions(+), 64 deletions(-) diff --git a/htdocs/css/keynote.css b/htdocs/css/keynote.css index a9d35bb..7461091 100644 --- a/htdocs/css/keynote.css +++ b/htdocs/css/keynote.css @@ -263,27 +263,44 @@ div.contact-list { } div.contact-list div.contact { border-top: 1px solid #fff; - background: url('../images/skins/keynote_bg_verylighter.png') #bbbbca top left repeat-x fixed; + background: url('../images/skins/keynote_bg_lighter.png') #848495 top left repeat-x fixed; color: #000; } -div.grayed { +div.contact-list div.grayed { font-style: italic; -} -div.grayed div.contact { color: #444; + background: url('../images/skins/keynote_bg_lighter.png') #848495 top left repeat-x fixed; +} + +div.contact-list div.contact:hover { background: url('../images/skins/keynote_bg_verylighter.png') #bbbbca top left repeat-x fixed; } +.contact .photo { + float: left; +} + +.contact .photo img { + width: 40px; + margin-right: 4px; +} + +.contact .profile_content { + float: left; +} + +div.contact div.identity { + float: left; + width: 70%; +} + div.contact div.nom { font-weight: bold; - width: 35%; - float: left; padding-left: 2px; } div.contact div.appli { - float: left; } div.contact div.bits { @@ -300,8 +317,8 @@ div.contact div.long { } div.long table { width: 100%; } -div.long td.lt { width: 35%; } -div.long td.rt { width: 65%; } +div.long td.lt { width: 25%; font-style: italic; } +div.long td.rt { width: 75%; } /******************************************************************************* 6 Profil diff --git a/templates/include/minifiche.tpl b/templates/include/minifiche.tpl index 66ecc64..04f6803 100644 --- a/templates/include/minifiche.tpl +++ b/templates/include/minifiche.tpl @@ -20,69 +20,77 @@ {* *} {**************************************************************************} -{if (!$c.inscrit && $smarty.session.auth ge AUTH_COOKIE) || $c.dcd}
{/if} -
+
+
+
+ {$c.prenom} {$c.nom} +
- + -
- {if $c.iso3166} - {$c.nat}  - {/if} - (X {$c.promo}{if $c.app0text}, {applis_fmt type=$c.app0type text=$c.app0text url=$c.app0url}{* - *}{/if}{if $c.app1text}, {applis_fmt type=$c.app1type text=$c.app1text url=$c.app1url}{/if}) - {if $c.dcd}décédé{if $c.sexe}e{/if} le {$c.deces|date_format}{/if} - {if $smarty.session.auth ge AUTH_COOKIE} - {if !$c.dcd && !$c.wasinscrit} - clique ici si tu connais son adresse email ! - {/if} - {/if} +
+ {if $c.iso3166} + {$c.nat}  + {/if} + (X {$c.promo}{if $c.app0text}, {applis_fmt type=$c.app0type text=$c.app0text url=$c.app0url}{* + *}{/if}{if $c.app1text}, {applis_fmt type=$c.app1type text=$c.app1text url=$c.app1url}{/if}) + {if $c.dcd}décédé{if $c.sexe}e{/if} le {$c.deces|date_format}{/if} + {if $smarty.session.auth ge AUTH_COOKIE} + {if !$c.dcd && !$c.wasinscrit} + clique ici si tu connais son adresse email ! + {/if} + {/if} +
-
-
+
+
{if $smarty.session.auth ge AUTH_COOKIE} - {if !$c.wasinscrit && !$c.dcd} - {if $show_action eq ajouter} - {* - *}{icon name=add title="Ajouter à la liste de mes surveillances"} - {else} - {* - *}{icon name=cross title="Retirer de la liste de mes surveillances"} - {/if} - {elseif $c.wasinscrit} - {* - *}{icon name=user_suit title="Afficher la fiche"} - {if !$c.dcd} - {* - *}{icon name=vcard title="Afficher la carte de visite"} - {if $show_action eq ajouter} - {* - *}{icon name=add title="Ajouter à mes contacts"} - {else} - {* - *}{icon name=cross title="Retirer de mes contacts"} - {/if} + {if !$c.wasinscrit && !$c.dcd} + {if $show_action eq ajouter} + {* + *}{icon name=add title="Ajouter à la liste de mes surveillances"} + {else} + {* + *}{icon name=cross title="Retirer de la liste de mes surveillances"} + {/if} + {elseif $c.wasinscrit} + {* + *}{icon name=user_suit title="Afficher la fiche"} + {if !$c.dcd} + {* + *}{icon name=vcard title="Afficher la carte de visite"} + {if $show_action eq ajouter} + {* + *}{icon name=add title="Ajouter à mes contacts"} + {else} + {* + *}{icon name=cross title="Retirer de mes contacts"} + {/if} + {/if} {/if} {/if} - {/if} +
{if hasPerm('admin')} - [{if !$c.wasinscrit && !$c.dcd} - {* - *}{icon name=email title="marketter user"} - {/if} - {* - *}{icon name=wrench title="administrer user"} - {* - *}{icon name=user_gray title="fiche AX"}] +
+ {if !$c.wasinscrit && !$c.dcd} + {* + *}{icon name=email title="marketter user"} {/if} -
+ {* + *}{icon name=wrench title="administrer user"} + {* + *}{icon name=user_gray title="fiche AX"} + {/if} +
@@ -136,8 +144,6 @@ {/if} {/if}
-
-{if (!$c.inscrit && $smarty.session.auth ge AUTH_COOKIE) || $c.dcd}
{/if} {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *} -- 2.1.4