bug 413, quand on creait un nouvel evenement. si on faisait une faute toutes les...
[platal.git] / templates / vcard.tpl
CommitLineData
0337d704 1{**************************************************************************}
2{* *}
3{* Copyright (C) 2003-2004 Polytechnique.org *}
4{* http://opensource.polytechnique.org/ *}
5{* *}
6{* This program is free software; you can redistribute it and/or modify *}
7{* it under the terms of the GNU General Public License as published by *}
8{* the Free Software Foundation; either version 2 of the License, or *}
9{* (at your option) any later version. *}
10{* *}
11{* This program is distributed in the hope that it will be useful, *}
12{* but WITHOUT ANY WARRANTY; without even the implied warranty of *}
13{* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *}
14{* GNU General Public License for more details. *}
15{* *}
16{* You should have received a copy of the GNU General Public License *}
17{* along with this program; if not, write to the Free Software *}
18{* Foundation, Inc., *}
19{* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *}
20{* *}
21{**************************************************************************}
22BEGIN:VCARD
23VERSION:3.0
24{if $vcard.nom_usage}
25FN;ENCODING=QUOTED-PRINTABLE:{"`$vcard.prenom` `$vcard.nom_usage` (`$vcard.nom`)"|qp_enc}
26{else}
27FN;ENCODING=QUOTED-PRINTABLE:{"`$vcard.prenom` `$vcard.nom`"|qp_enc}
28{/if}
29N;ENCODING=QUOTED-PRINTABLE:{$vcard.nom|qp_enc};{$vcard.prenom|qp_enc};{$vcard.nom_usage|qp_enc};;
30EMAIL;TYPE=internet:{$vcard.bestalias}@polytechnique.org
31{if $vcard.bestalias neq $vcard.forlife}
32EMAIL;TYPE=internet:{$vcard.forlife}@polytechnique.org
33{/if}
34{if $vcard.virtualalias}
35EMAIL;TYPE=internet:{$vcard.virtualalias}
36{/if}
37{if $vcard.mobile}
38TEL;TYPE=cell;ENCODING=QUOTED-PRINTABLE:{$vcard.mobile|qp_enc}
39{/if}
40{if $vcard.adr_pro}
41{if $vcard.adr_pro[0].entreprise}
42ORG;ENCODING=QUOTED-PRINTABLE:{$vcard.adr_pro[0].entreprise|qp_enc}
43{/if}
44{if $vcard.adr_pro[0].poste}
45TITLE;ENCODING=QUOTED-PRINTABLE:{$vcard.adr_pro[0].poste|qp_enc}
46{/if}
47{if $vcard.adr_pro[0].fonction}
48ROLE;ENCODING=QUOTED-PRINTABLE:{$vcard.adr_pro[0].fonction|qp_enc}
49{/if}
50{if $vcard.adr_pro[0].tel}
51TEL;TYPE=work;ENCODING=QUOTED-PRINTABLE:{$vcard.adr_pro[0].tel|qp_enc}
52{/if}
53{if $vcard.adr_pro[0].fax}
54FAX;TYPE=work;ENCODING=QUOTED-PRINTABLE:{$vcard.adr_pro[0].fax|qp_enc}
55{/if}
56ADR;TYPE=work;ENCODING=QUOTED-PRINTABLE:{format_adr adr=$vcard.adr_pro[0]}
57{/if}
58{foreach item=adr from=$vcard.adr}
59ADR;TYPE=home{if $adr.courier},postal{/if};ENCODING=QUOTED-PRINTABLE:{format_adr adr=$adr}
60{if $adr.tel}
61TEL;TYPE=home;ENCODING=QUOTED-PRINTABLE:{$adr.tel|qp_enc}
62{/if}
63{if $adr.fax}
64FAX;TYPE=home;ENCODING=QUOTED-PRINTABLE:{$adr.fax|qp_enc}
65{/if}
66{/foreach}
67{if $vcard.web}
68URL;ENCODING=QUOTED-PRINTABLE:{$vcard.web|qp_enc}
69{/if}
70NOTE;ENCODING=QUOTED-PRINTABLE:{"(X`$vcard.promo`)\n`$vcard.libre`"|qp_enc}
71SORT-STRING;ENCODING=QUOTED-PRINTABLE:{$vcard.nom|qp_enc}
72REV:{$vcard.date|date_format:"%Y%m%dT000000Z"}
73END:VCARD
74{* vim:set et sw=2 sts=2 sws=2: *}