index.php 1.1 KB

123456789101112131415161718192021222324252627282930
  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" class="leftcontent">
  7. <ul id="contacts">
  8. <?php echo $this->inc("part.contacts"); ?>
  9. </ul>
  10. </div>
  11. <div id="bottomcontrols">
  12. <form>
  13. <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>
  14. <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>
  15. </form>
  16. </div>
  17. <div id="rightcontent" class="rightcontent" data-id="<?php echo $_['id']; ?>">
  18. <?php
  19. if ($_['id']){
  20. echo $this->inc('part.contact');
  21. }
  22. else{
  23. echo $this->inc('part.no_contacts');
  24. }
  25. ?>
  26. </div>
  27. <!-- Dialogs -->
  28. <div id="dialog_holder"></div>
  29. <!-- End of Dialogs -->