nextcloud/apps/contacts/templates/index.php

35 lines
1.1 KiB
PHP
Raw Normal View History

2011-08-07 00:32:06 +04:00
<?php // Include Style and Script
2011-12-30 20:47:14 +04:00
//OC_Util::addScript('contacts','interface'); // this line caused entry duplication, cause contacts/index.php already inlcudes it
OC_Util::addScript('contacts','jquery.inview');
2011-08-07 00:32:06 +04:00
OC_Util::addStyle('contacts','styles');
OC_Util::addStyle('contacts','formtastic');
2011-08-07 00:32:06 +04:00
?>
<script type='text/javascript'>
2011-12-16 20:42:07 +04:00
var totalurl = '<?php echo OC_Helper::linkTo('contacts', 'carddav.php', null, true); ?>/addressbooks';
</script>
2011-09-09 01:36:47 +04:00
<div id="controls">
<form>
<input type="button" id="contacts_newcontact" value="<?php echo $l->t('Add Contact'); ?>">
<input type="button" id="chooseaddressbook" value="<?php echo $l->t('Address Books'); ?>">
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>
2011-08-11 12:08:02 +04:00
<div id="rightcontent" class="rightcontent" data-id="<?php echo $_['id']; ?>">
<?php
if ($_['id']){
echo $this->inc("part.details");
}
else{
echo $this->inc("part.addcardform");
}
?>
2011-08-07 00:32:06 +04:00
</div>
<!-- Dialogs -->
<div id="dialog_holder"></div>
<!-- End of Dialogs -->