From 90a830babaafb4252bcad0bb6d6966d9e65abe88 Mon Sep 17 00:00:00 2001 From: Thomas Tanghus Date: Mon, 6 Feb 2012 07:32:57 +0100 Subject: Added files for new contact editor/viewer. --- apps/contacts/templates/part.contact.php | 210 +++++++++++++++++++++++++++++++ 1 file changed, 210 insertions(+) create mode 100644 apps/contacts/templates/part.contact.php (limited to 'apps/contacts/templates/part.contact.php') diff --git a/apps/contacts/templates/part.contact.php b/apps/contacts/templates/part.contact.php new file mode 100644 index 00000000000..0e3611b2e4c --- /dev/null +++ b/apps/contacts/templates/part.contact.php @@ -0,0 +1,210 @@ +format('d-m-Y'); +} +$card['NICKNAME'] = (array_key_exists('NICKNAME',$_['details'])) ? $_['details']['NICKNAME'][0] : null; +$card['EMAIL'] = (array_key_exists('EMAIL',$_['details'])) ? $_['details']['EMAIL'] : array(); +$card['TEL'] = (array_key_exists('TEL',$_['details'])) ? $_['details']['TEL'] : array(); +$card['ADR'] = (array_key_exists('ADR',$_['details'])) ? $_['details']['ADR'] : array(); +?> +
+ + +
+ +
id="file_upload_form" action="ajax/uploadphoto.php" method="post" enctype="multipart/form-data" target="file_upload_target"> +
+
+ + +
+ + + + + +
+
+
> + +
+
+ +
+ +
+
+ +
+ + + + + + +
+
+
+
+ + +
+
+ +
0?'':'style="display:none;"'); ?>> +
+ t('Email'); ?> +
    + + +
  • + /> + +
  • + +
+
+ + +
0?'':'style="display:none;"'); ?>> +
+ t('Phone'); ?> +
    + + +
  • + /> + + +
  • + +
+
+ + +
0?'':'style="display:none;"'); ?>> +
+ t('Address'); ?> +
+ + + +
+
+ + + + 0) { + //array_walk($address['parameters'], ) Nah, this wont work... + $translated = array(); + foreach($address['parameters'] as $type) { + $translated[] = $l->t(ucwords(strtolower($type))); + } + echo implode('/', $translated); + } + ?> +
+
+
    + '.$adr[0].'':''); + $tmp .= ($adr[1]?'
  • '.$adr[1].'
  • ':''); + $tmp .= ($adr[2]?'
  • '.$adr[2].'
  • ':''); + $tmp .= ($adr[3]||$adr[5]?'
  • '.$adr[5].' '.$adr[3].'
  • ':''); + $tmp .= ($adr[4]?'
  • '.$adr[4].'
  • ':''); + $tmp .= ($adr[6]?'
  • '.$adr[6].'
  • ':''); + echo $tmp; + + ?> +
+
+
+ +
+
+
+
+ + + + +
+
+
+
+ +
+
+
+ -- cgit v1.2.3