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

65 lines
2.6 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">
2012-09-06 05:02:01 +02:00
<button class="control newcontact" id="contacts_newcontact" title="<?php echo $l->t('Add Contact'); ?>"></button>
<button class="control import" title="<?php echo $l->t('Import'); ?>"></button>
<button class="control settings" title="<?php echo $l->t('Settings'); ?>"></button>
2012-07-31 12:21:45 +02:00
<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">
<input class="float" id="import_upload_start" type="file" accept="text/directory,text/vcard,text/x-vcard" name="importfile" />
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-02-14 01:47:18 +01:00
echo $this->inc('part.contact');
echo $this->inc('part.no_contacts');
?>
<div class="hidden popup" id="ninjahelp">
<a class="close" tabindex="0" role="button" title="<?php echo $l->t('Close'); ?>"></a>
2012-07-22 00:15:28 +02:00
<h2><?php echo $l->t('Keyboard shortcuts'); ?></h2>
<div class="help-section">
<h3><?php echo $l->t('Navigation'); ?></h3>
<dl>
2012-08-03 01:02:53 +02:00
<dt>j/Down</dt>
2012-07-22 00:15:28 +02:00
<dd><?php echo $l->t('Next contact in list'); ?></dd>
2012-08-03 01:02:53 +02:00
<dt>k/Up</dt>
2012-07-22 00:15:28 +02:00
<dd><?php echo $l->t('Previous contact in list'); ?></dd>
2012-08-03 01:02:53 +02:00
<dt>o</dt>
2012-07-22 00:15:28 +02:00
<dd><?php echo $l->t('Expand/collapse current addressbook'); ?></dd>
2012-08-03 01:02:53 +02:00
<dt>n/PageDown</dt>
<dd><?php echo $l->t('Next addressbook'); ?></dd>
<dt>p/PageUp</dt>
<dd><?php echo $l->t('Previous addressbook'); ?></dd>
2012-07-22 00:15:28 +02:00
</dl>
</div>
<div class="help-section">
<h3><?php echo $l->t('Actions'); ?></h3>
<dl>
<dt>r</dt>
<dd><?php echo $l->t('Refresh contacts list'); ?></dd>
<dt>a</dt>
<dd><?php echo $l->t('Add new contact'); ?></dd>
2012-08-03 01:02:53 +02:00
<!-- dt>Shift-a</dt>
<dd><?php echo $l->t('Add new addressbook'); ?></dd -->
2012-07-22 00:15:28 +02:00
<dt>Shift-Delete</dt>
<dd><?php echo $l->t('Delete current contact'); ?></dd>
</dl>
</div>
</div>
2011-08-06 22:32:06 +02:00
</div>
<!-- Dialogs -->
<div id="dialog_holder"></div>
<!-- End of Dialogs -->