5 * Template to display a vCard
7 * The following variables are available in this template:
8 * $view_message_link - URL to go back to the message
9 * $download_link - URL to download the vCard
10 * $nickname - Default nickname for the address book add form
11 * $firstname - First name for the address book add from
12 * $last name - Last name for the add form
13 * $email - Email for the add form
14 * $info - array of Additional info for the add form. May be
15 * empty if no additional info is provided by the
16 * card. Index of each element is the value for the
17 * option, value of each element is the name.
18 * $vcard - array containing vCard data, scrubbed and i-18-n'ed.
19 * Index of each element is the field name, value of
20 * each element is the field value.
22 * @copyright © 1999-2006 The SquirrelMail Project Team
23 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
25 * @package squirrelmail
26 * @subpackage templates
29 /** add required includes **/
31 /** extract template variables **/
34 /** Begin template **/
37 <table cellspacing="0" class="table1">
40 <?php echo _("Viewing a Business Card") ; ?> - <a href="<?php echo $view_message_link; ?>"><?php echo _("View message"); ?></a>
45 <table cellspacing="0">
47 foreach ($vcard as $field=>$value) {
50 <td class="fieldName">
51 <?php echo $field; ?>:
53 <td class="fieldValue">
65 <a href="<?php echo $download_link; ?>"><?php echo _("Download this as a file"); ?></a>
69 <form action="../src/addressbook.php" method="post" name="f_add">
70 <input type="hidden" name="addaddr[firstname]" value="<?php echo $firstname; ?>" />
71 <input type="hidden" name="addaddr[lastname]" value="<?php echo $lastname; ?>" />
72 <table cellspacing="0" class="table1">
75 <?php echo _("Add to address book"); ?>
80 <table cellspacing="0">
82 <td class="fieldName">
83 <?php echo _("Nickname"); ?>
85 <td class="fieldValue">
86 <input type="text" name="addaddr[nickname]" value="<?php echo $nickname; ?>" size="20" />
90 <td class="fieldName">
91 <?php echo _("Email"); ?>
93 <td class="fieldValue">
94 <input type="text" name="addaddr[email]" value="<?php echo $email; ?>" size="20" />
98 <td class="fieldName">
99 <?php echo _("Additional Info"); ?>
101 <td class="fieldValue">
103 if (count($info) == 0) {
105 <input type="text" name="addaddr[label]" value="" size="20" />
109 <select name="addaddr[label]">
111 foreach ($info as $value=>$field) {
113 <option value="<?php echo $value; ?>"><?php echo $field; ?></option>
128 <input type="submit" value="<?php echo _("Add to address book"); ?>" name="addaddr[SUBMIT]" id="addaddr_SUBMIT_" />