1
0
mirror of https://github.com/owncloudarchive/contacts.git synced 2024-11-29 11:24:11 +01:00
OwncloudContactsOfficial/templates/index.php

43 lines
2.2 KiB
PHP
Raw Normal View History

2012-07-15 04:15:57 +02:00
<div id='notification'></div>
<script type='text/javascript'>
var totalurl = '<?php echo OCP\Util::linkToRemote('carddav'); ?>addressbooks';
var categories = <?php echo json_encode($_['categories']); ?>;
2012-06-22 14:27:24 +02:00
var id = '<?php echo $_['id']; ?>';
2012-05-02 15:54:34 +02:00
var lang = '<?php echo OCP\Config::getUserValue(OCP\USER::getUser(), 'core', 'lang', 'en'); ?>';
</script>
<div id="leftcontent">
2012-07-15 04:15:57 +02:00
<div class="hidden" id="statusbar"></div>
2012-06-17 23:12:11 +02:00
<div id="contacts">
</div>
2012-07-15 04:15:57 +02:00
<div id="uploadprogressbar"></div>
2012-06-17 23:12:11 +02:00
<div id="bottomcontrols">
<form id="import_upload_form" action="<?php echo OCP\Util::linkTo('contacts', 'ajax/uploadimport.php'); ?>" method="post" enctype="multipart/form-data" target="import_upload_target">
2012-07-15 04:15:57 +02:00
<button class="svg" id="contacts_newcontact" title="<?php echo $l->t('Add Contact'); ?>"><img class="svg" src="<?php echo OCP\Util::imagePath('contacts', 'contact-new.svg'); ?>" alt="<?php echo $l->t('Add Contact'); ?>" /></button>
<span class="svg" id="contacts_import" title="<?php echo $l->t('Import'); ?>">
<input class="float" id="import_upload_start" type="file" accept="text/directory,text/vcard,text/x-vcard" name="importfile" />
<img class="svg" src="core/img/actions/upload.svg" alt="<?php echo $l->t('Import'); ?>" />
</span>
2012-06-17 23:12:11 +02:00
<button class="svg" id="chooseaddressbook" title="<?php echo $l->t('Addressbooks'); ?>"><img class="svg" src="core/img/actions/settings.svg" alt="<?php echo $l->t('Addressbooks'); ?>" /></button>
2012-07-15 04:15:57 +02:00
<input type="hidden" name="MAX_FILE_SIZE" value="<?php echo $_['uploadMaxFilesize'] ?>" id="max_upload">
</form>
<iframe name="import_upload_target" id='import_upload_target' src=""></iframe>
2012-06-17 23:12:11 +02:00
</div>
</div>
2011-08-11 10:08:02 +02:00
<div id="rightcontent" class="rightcontent" data-id="<?php echo $_['id']; ?>">
<?php
2012-07-20 17:09:03 +02:00
if($_['has_contacts']) {
2012-02-14 01:47:18 +01:00
echo $this->inc('part.contact');
}
else{
2012-02-14 01:47:18 +01:00
echo $this->inc('part.no_contacts');
}
?>
2011-08-06 22:32:06 +02:00
</div>
<!-- Dialogs -->
<div id="dialog_holder"></div>
<!-- End of Dialogs -->
2012-07-15 04:15:57 +02:00
<menu type="context" id="addressbookmenu">
<menuitem label="Delete" icon="core/img/actions/delete.svg" onclick="alert('Really? ' + $(this).attr('data-id'))"></menuitem>
<menuitem label="Rename" icon="core/img/actions/rename.svg" onclick="alert('Can\'t do that')"></menuitem>
</menu>