2012-07-15 06:15:57 +04:00
|
|
|
<div id='notification'></div>
|
2011-12-04 23:25:46 +04:00
|
|
|
<script type='text/javascript'>
|
2012-05-07 22:22:55 +04:00
|
|
|
var totalurl = '<?php echo OCP\Util::linkToRemote('carddav'); ?>addressbooks';
|
2012-04-13 01:10:10 +04:00
|
|
|
var categories = <?php echo json_encode($_['categories']); ?>;
|
2012-06-22 16:27:24 +04:00
|
|
|
var id = '<?php echo $_['id']; ?>';
|
2012-05-02 17:54:34 +04:00
|
|
|
var lang = '<?php echo OCP\Config::getUserValue(OCP\USER::getUser(), 'core', 'lang', 'en'); ?>';
|
2011-12-04 23:25:46 +04:00
|
|
|
</script>
|
2012-06-17 01:37:24 +04:00
|
|
|
<div id="leftcontent">
|
2012-07-15 06:15:57 +04:00
|
|
|
<div class="hidden" id="statusbar"></div>
|
2012-06-18 01:12:11 +04:00
|
|
|
<div id="contacts">
|
|
|
|
</div>
|
2012-07-15 06:15:57 +04:00
|
|
|
<div id="uploadprogressbar"></div>
|
2012-06-18 01:12:11 +04:00
|
|
|
<div id="bottomcontrols">
|
2012-07-15 06:15:57 +04: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>
|
2012-07-31 14:21:45 +04:00
|
|
|
<button class="svg import tip" title="<?php echo $l->t('Import'); ?>">
|
2012-07-15 14:20:26 +04:00
|
|
|
<img class="svg" src="core/img/actions/upload.svg" alt="<?php echo $l->t('Import'); ?>" />
|
2012-07-31 14:21:45 +04:00
|
|
|
</button>
|
|
|
|
<button class="svg settings tip" title="<?php echo $l->t('Settings'); ?>"><img class="svg" src="core/img/actions/settings.svg" alt="<?php echo $l->t('Addressbooks'); ?>" /></button>
|
|
|
|
<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 06:15:57 +04: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-18 01:12:11 +04:00
|
|
|
</div>
|
2012-05-06 15:49:40 +04:00
|
|
|
</div>
|
2011-08-11 12:08:02 +04:00
|
|
|
<div id="rightcontent" class="rightcontent" data-id="<?php echo $_['id']; ?>">
|
2011-12-07 01:33:20 +04:00
|
|
|
<?php
|
2012-07-20 19:09:03 +04:00
|
|
|
if($_['has_contacts']) {
|
2012-02-14 04:47:18 +04:00
|
|
|
echo $this->inc('part.contact');
|
2011-12-07 01:33:20 +04:00
|
|
|
}
|
|
|
|
else{
|
2012-02-14 04:47:18 +04:00
|
|
|
echo $this->inc('part.no_contacts');
|
2011-12-07 01:33:20 +04:00
|
|
|
}
|
|
|
|
?>
|
2012-07-22 02:15:28 +04:00
|
|
|
<div class="hidden" id="ninjahelp">
|
|
|
|
<a class="close" tabindex="0" role="button">
|
|
|
|
<img class="svg" src="core/img/actions/delete.svg" alt="<?php echo $l->t('Close'); ?>" />
|
|
|
|
</a>
|
|
|
|
<h2><?php echo $l->t('Keyboard shortcuts'); ?></h2>
|
|
|
|
<div class="help-section">
|
|
|
|
<h3><?php echo $l->t('Navigation'); ?></h3>
|
|
|
|
<dl>
|
|
|
|
<dt>j/Down/Space</dt>
|
|
|
|
<dd><?php echo $l->t('Next contact in list'); ?></dd>
|
|
|
|
<dt>k/Up/Shift-Space</dt>
|
|
|
|
<dd><?php echo $l->t('Previous contact in list'); ?></dd>
|
|
|
|
<dt>o/Enter</dt>
|
|
|
|
<dd><?php echo $l->t('Expand/collapse current addressbook'); ?></dd>
|
|
|
|
<dt>n/p</dt>
|
|
|
|
<dd><?php echo $l->t('Next/previous addressbook'); ?></dd>
|
|
|
|
</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>
|
|
|
|
<dt>Shift-a</dt>
|
|
|
|
<dd><?php echo $l->t('Add new addressbook'); ?></dd>
|
|
|
|
<dt>Shift-Delete</dt>
|
|
|
|
<dd><?php echo $l->t('Delete current contact'); ?></dd>
|
|
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
</div>
|
2011-08-07 00:32:06 +04:00
|
|
|
</div>
|
2011-12-04 23:25:46 +04:00
|
|
|
<!-- Dialogs -->
|
|
|
|
<div id="dialog_holder"></div>
|
|
|
|
<!-- End of Dialogs -->
|
2012-07-15 06:15:57 +04: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>
|