nextcloud/apps/contacts/templates/index.php

36 lines
1.3 KiB
PHP
Raw Normal View History

<script type='text/javascript'>
var totalurl = '<?php echo OC_Helper::linkToAbsolute('contacts', 'carddav.php'); ?>/addressbooks';
var categories = <?php echo json_encode($_['categories']); ?>;
2012-05-01 20:50:31 +04:00
var lang = '<?php echo OC_Preferences::getValue(OCP\USER::getUser(), 'core', 'lang', 'en'); ?>';
</script>
<!-- div id="controls">
2011-09-09 01:36:47 +04:00
<form>
<input type="button" id="contacts_newcontact" value="<?php echo $l->t('Add Contact'); ?>">
<input type="button" id="chooseaddressbook" value="<?php echo $l->t('Addressbooks'); ?>">
2011-09-09 01:36:47 +04:00
</form>
</div -->
2011-08-11 12:08:02 +04:00
<div id="leftcontent" class="leftcontent">
<ul id="contacts">
2011-08-09 15:53:58 +04:00
<?php echo $this->inc("part.contacts"); ?>
2011-08-07 00:32:06 +04:00
</ul>
</div>
<div id="bottomcontrols">
<form>
2012-04-23 22:39:04 +04:00
<img class="svg" id="contacts_newcontact" src="<?php echo OC_Helper::linkTo('contacts', 'img/contact-new.svg'); ?>" alt="<?php echo $l->t('Add Contact'); ?>" title="<?php echo $l->t('Add Contact'); ?>" />
<img class="svg" id="chooseaddressbook" src="core/img/actions/settings.svg" alt="<?php echo $l->t('Addressbooks'); ?>" title="<?php echo $l->t('Addressbooks'); ?>" />
</form>
</div>
2011-08-11 12:08:02 +04:00
<div id="rightcontent" class="rightcontent" data-id="<?php echo $_['id']; ?>">
<?php
if ($_['id']){
2012-02-14 04:47:18 +04:00
echo $this->inc('part.contact');
}
else{
2012-02-14 04:47:18 +04:00
echo $this->inc('part.no_contacts');
}
?>
2011-08-07 00:32:06 +04:00
</div>
<!-- Dialogs -->
<div id="dialog_holder"></div>
<!-- End of Dialogs -->