mirror of
https://github.com/owncloudarchive/contacts.git
synced 2025-01-30 19:52:17 +01:00
a6ac017f85
If you don't have any contacts, it would display a non-functioning delete button. Signed-off-by: Florian Pritz <bluewind@xinu.at>
35 lines
1.3 KiB
PHP
35 lines
1.3 KiB
PHP
<?php if(array_key_exists('FN',$_['details'])): ?>
|
|
<table>
|
|
<?php if(isset($_['details']['PHOTO'])): // Emails first ?>
|
|
<tr class="contacts_details_property">
|
|
<td class="contacts_details_left"> </td>
|
|
<td class="contacts_details_right">
|
|
<img src="photo.php?id=<?php echo $_['id']; ?>">
|
|
</td>
|
|
</tr>
|
|
<?php endif; ?>
|
|
|
|
<?php echo $this->inc('part.property', array('property' => $_['details']['FN'][0])); ?>
|
|
|
|
<?php if(isset($_['details']['BDAY'])): // Emails first ?>
|
|
<?php echo $this->inc('part.property', array('property' => $_['details']['BDAY'][0])); ?>
|
|
<?php endif; ?>
|
|
|
|
<?php if(isset($_['details']['ORG'])): // Emails first ?>
|
|
<?php echo $this->inc('part.property', array('property' => $_['details']['ORG'][0])); ?>
|
|
<?php endif; ?>
|
|
|
|
<?php foreach(array('EMAIL','TEL','ADR') as $type): ?>
|
|
<?php if(isset($_['details'][$type])): // Emails first ?>
|
|
<?php foreach($_['details'][$type] as $property): ?>
|
|
<?php echo $this->inc('part.property',array('property' => $property )); ?>
|
|
<?php endforeach; ?>
|
|
<?php endif; ?>
|
|
<?php endforeach; ?>
|
|
</table>
|
|
<form>
|
|
<input type="button" id="contacts_deletecard" value="<?php echo $l->t('Delete');?>">
|
|
<input type="button" id="contacts_addproperty" value="<?php echo $l->t('Add Property');?>">
|
|
</form>
|
|
<?php endif; ?>
|