index.php 1.1 KB

1234567891011121314151617181920212223242526272829
  1. <script type='text/javascript'>
  2. var totalurl = '<?php echo OCP\Util::linkToRemote('carddav'); ?>addressbooks';
  3. var categories = <?php echo json_encode($_['categories']); ?>;
  4. var lang = '<?php echo OCP\Config::getUserValue(OCP\USER::getUser(), 'core', 'lang', 'en'); ?>';
  5. </script>
  6. <div id="leftcontent">
  7. <div id="contacts">
  8. </div>
  9. <div id="bottomcontrols">
  10. <form>
  11. <button class="svg" id="contacts_newcontact" title="<?php echo $l->t('Add Contact'); ?>"><img class="svg" src="<?php echo OCP\Util::linkTo('contacts', 'img/contact-new.svg'); ?>" alt="<?php echo $l->t('Add Contact'); ?>" /></button>
  12. <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>
  13. </form>
  14. </div>
  15. </div>
  16. <div id="rightcontent" class="rightcontent" data-id="<?php echo $_['id']; ?>">
  17. <?php
  18. if ($_['id']){
  19. echo $this->inc('part.contact');
  20. }
  21. else{
  22. echo $this->inc('part.no_contacts');
  23. }
  24. ?>
  25. </div>
  26. <!-- Dialogs -->
  27. <div id="dialog_holder"></div>
  28. <!-- End of Dialogs -->