{**************************************************************************}
{* *}
-{* Copyright (C) 2003-2009 Polytechnique.org *}
+{* Copyright (C) 2003-2010 Polytechnique.org *}
{* http://opensource.polytechnique.org/ *}
{* *}
{* This program is free software; you can redistribute it and/or modify *}
Ma liste personnelle de contacts
</h1>
-<p>
+<form id="add_user" action="carnet/contacts" method="post">
<div style="float: right">
- <form id="add_user" action="carnet/contacts" method="post">
{xsrf_token_field}
- <div>
<input type="hidden" name="action" value="ajouter" />
<input type="text" size="30" name="user" class="quick_search"
value="ajouter prenom.nom"
- onfocus="if (this.value == 'ajouter prenom.nom') this.value=''"
+ onfocus="if (this.value == 'ajouter prenom.nom') this.value=''; $('#add_button').show()"
onblur="if (this.value == '') this.value='ajouter prenom.nom'"
- size="20" maxlength="70"/>
- <a href="" onclick="document.getElementById('add_user').submit(); return false;">
+ maxlength="70"/>
+ <a id="add_button" href="carnet/contacts/add" style="display: none" onclick="document.getElementById('add_user').submit(); return false;">
{icon name=add title="Ajouter la personne"}
</a>
- </div>
- </form>
</div>
+<p>
Ajouter à tes contacts :
</p>
+</form>
<p style="clear: both">
Sur la page de résultats d'une recherche, tu peux ajouter un contact en cliquant sur {icon name=add}.
</p>
+{if $plset_count || $smarty.request.quick}
<p>
Tu peux télécharger des informations sur tes contacts :
</p>
-{if $plset_count || $smarty.request.quick}
<ul>
<li>Tes contacts en PDF, sans les photos :
[<a href="carnet/contacts/pdf/promo/mescontacts.pdf" class='popup'><strong>tri par promo</strong></a>]
[<a href="carnet/contacts/pdf/photos/mescontacts.pdf" class='popup'><strong>tri par noms</strong></a>]
</li>
<li>
- {icon name=calendar_view_day title='Anniversaires'}
- <a href="carnet/contacts/ical/{$smarty.session.hruid}/{$smarty.session.core_rss_hash}/anniv-x.ics" title="Anniversaires">
- Le calendrier des anniversaires
+ Le calendrier des anniversaires :
+ <a href="carnet/contacts/ical/{$smarty.session.hruid}/{$smarty.session.user->token}/anniv-x.ics">
+ {icon name=calendar_view_day title='Anniversaires au format iCal'}
+ </a>
+ <a href="carnet/contacts/csv/birthday/{$smarty.session.hruid}/{$smarty.session.user->token}/anniv-x.csv">
+ {icon name=outlook title='Anniversaires au format Outlook'}
</a>
</li>
<li>
- {icon name=vcard title='Carte de visite'}
- <a href="carnet/contacts/vcard/photos/MesContactsXorg.vcf">La carte de visite électronique</a>
+ La carte de visite électronique :
+ <a href="carnet/contacts/vcard/photos/MesContactsXorg.vcf">
+ {icon name=vcard title='Carte de visite au format vCard'}
+ </a>
(<a href="carnet/contacts/vcard/MesContactsXorg.vcf">sans les photos</a>)
+ <a href="carnet/contacts/csv/{$smarty.session.hruid}/{$smarty.session.user->token}/MesContactsXorg.csv">
+ {icon name=outlook title='Contacts au format Outlook'}
+ </a>
</li>
</ul>
-<p>
+<form action="carnet/contacts/search#plset_content" method="get">
<div style="float: right">
- <form action="carnet/contacts/search#plset_content" method="get">
- <div>
<input type="text" size="30" name="quick" class="quick_search"
value="{$smarty.request.quick|default:'recherche dans tes contacts'}"
onfocus="if (this.value == 'recherche dans tes contacts') this.value=''"
onblur="if (this.value == '') this.value='recherche dans tes contacts'"/>
- <a href="carnet/contacts">{icon name=cross title='Annuler la recherche'}</a>
- </div>
- </form>
+ {if $smarty.request.quick}<a href="carnet/contacts">{icon name=arrow_undo title='Annuler la recherche'}</a>{/if}
</div>
+</form>
+<p>
Rechercher dans tes contacts :
</p>