nextcloud/apps/calendar/templates/calendar.php

42 lines
2.0 KiB
PHP
Raw Normal View History

2011-10-18 21:58:47 +04:00
<script type='text/javascript'>
2011-10-18 22:42:22 +04:00
var defaultView = '<?php echo OC_Preferences::getValue(OC_USER::getUser(), 'calendar', 'currentview', 'month') ?>';
2011-10-18 21:58:47 +04:00
var eventSources = <?php echo json_encode($_['eventSources']) ?>;
2011-10-18 22:42:22 +04:00
var dayNames = <?php echo json_encode($l->tA(array('Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'))) ?>;
var dayNamesShort = <?php echo json_encode($l->tA(array('Sun.', 'Mon.', 'Tue.', 'Wed.', 'Thu.', 'Fri.', 'Sat.'))) ?>;
var monthNames = <?php echo json_encode($l->tA(array('January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'))) ?>;
var monthNamesShort = <?php echo json_encode($l->tA(array('Jan.', 'Feb.', 'Mar.', 'Apr.', 'May.', 'Jun.', 'Jul.', 'Aug.', 'Sep.', 'Oct.', 'Nov.', 'Dec.'))) ?>;
var allDayText = '<?php echo $l->t('All day') ?>';
2011-10-18 21:58:47 +04:00
</script>
2011-08-12 16:29:45 +04:00
<div id="controls">
<div>
2011-08-11 13:22:07 +04:00
<form>
<div id="view">
2011-10-18 21:58:47 +04:00
<input type="button" value="<?php echo $l->t('Week');?>" id="oneweekview_radio"/>
<input type="button" value="<?php echo $l->t('Month');?>" id="onemonthview_radio"/>
<input type="button" value="<?php echo $l->t('List');?>" id="listview_radio"/>
2011-08-11 13:22:07 +04:00
</div>
</form>
<form>
<div id="choosecalendar">
2011-10-18 21:58:47 +04:00
<input type="button" id="today_input" value="<?php echo $l->t("Today");?>"/>
<input type="button" id="choosecalendar_input" value="<?php echo $l->t("Calendars");?>" onclick="Calendar.UI.Calendar.overview();" />
2011-08-11 13:22:07 +04:00
</div>
</form>
<form>
<div id="datecontrol">
2011-10-18 21:58:47 +04:00
<input type="button" value="&nbsp;&lt;&nbsp;" id="datecontrol_left"/>
<span id="datecontrol_date"></span>
<input type="button" value="&nbsp;&gt;&nbsp;" id="datecontrol_right"/>
2011-08-11 13:22:07 +04:00
</div>
</form>
</div>
</div>
2011-08-12 16:29:45 +04:00
<div id="calendar_holder">
2011-08-11 13:22:07 +04:00
</div>
<!-- Dialogs -->
<div id="dialog_holder"></div>
2011-08-11 13:22:07 +04:00
<div id="parsingfail_dialog" title="Parsing Fail">
<?php echo $l->t("There was a fail, while parsing the file."); ?>
2011-08-11 13:22:07 +04:00
</div>
<!-- End of Dialogs -->