diff options
author | Jakob Sack <kde@jakobsack.de> | 2011-08-06 22:32:06 +0200 |
---|---|---|
committer | Jakob Sack <kde@jakobsack.de> | 2011-08-06 22:32:06 +0200 |
commit | 2f10598af69209f2e84797aaf3399536f824f564 (patch) | |
tree | 6b457c19fae5d45ea760f4429b4038811b22af07 /apps/contacts/templates | |
parent | d9ccbe96dda717712d67274c777a0e614743784f (diff) | |
download | nextcloud-server-2f10598af69209f2e84797aaf3399536f824f564.tar.gz nextcloud-server-2f10598af69209f2e84797aaf3399536f824f564.zip |
New app: contacts
Diffstat (limited to 'apps/contacts/templates')
-rw-r--r-- | apps/contacts/templates/_contacts.php | 3 | ||||
-rw-r--r-- | apps/contacts/templates/_details.php | 4 | ||||
-rw-r--r-- | apps/contacts/templates/index.php | 13 |
3 files changed, 20 insertions, 0 deletions
diff --git a/apps/contacts/templates/_contacts.php b/apps/contacts/templates/_contacts.php new file mode 100644 index 00000000000..bf633b79b04 --- /dev/null +++ b/apps/contacts/templates/_contacts.php @@ -0,0 +1,3 @@ +<?php foreach( $_['contacts'] as $contact ): ?> + <li x-id="<?php echo $contact['id']; ?>"><a href="index.php?id=<?php echo $contact['id']; ?>"><?php echo $contact['name']; ?></a></li> +<?php endforeach; ?> diff --git a/apps/contacts/templates/_details.php b/apps/contacts/templates/_details.php new file mode 100644 index 00000000000..e27b17ef2eb --- /dev/null +++ b/apps/contacts/templates/_details.php @@ -0,0 +1,4 @@ +Name <?php echo $_['details']['FN'][0]['value']; ?> +<?php if(array_key_exists('PHOTO',$_['details'])): ?> + <img src="photo.php?id=<?php echo $_['id']; ?>"> +<?php endif; ?>
\ No newline at end of file diff --git a/apps/contacts/templates/index.php b/apps/contacts/templates/index.php new file mode 100644 index 00000000000..0cd214bfb18 --- /dev/null +++ b/apps/contacts/templates/index.php @@ -0,0 +1,13 @@ +<?php // Include Style and Script +OC_Util::addScript('contacts','interface'); +OC_Util::addStyle('contacts','styles'); +?> + +<div class="contacts_contacts leftcontent"> + <ul> + <?php echo $this->inc("_contacts"); ?> + </ul> +</div> +<div class="contacts_details rightcontent"> + <?php echo $this->inc("_details"); ?> +</div> |