2011-09-02 08:14:56 +00:00
|
|
|
<?php
|
|
|
|
$hours = array(
|
|
|
|
'allday' => $l->t('All day'),
|
|
|
|
0 => '00:00',
|
|
|
|
1 => '01:00',
|
|
|
|
2 => '02:00',
|
|
|
|
3 => '03:00',
|
|
|
|
4 => '04:00',
|
|
|
|
5 => '05:00',
|
|
|
|
6 => '06:00',
|
|
|
|
7 => '07:00',
|
|
|
|
8 => '08:00',
|
|
|
|
9 => '09:00',
|
|
|
|
10 => '10:00',
|
|
|
|
11 => '11:00',
|
|
|
|
12 => '12:00',
|
|
|
|
13 => '13:00',
|
|
|
|
14 => '14:00',
|
|
|
|
15 => '15:00',
|
|
|
|
16 => '16:00',
|
|
|
|
17 => '17:00',
|
|
|
|
18 => '18:00',
|
|
|
|
19 => '19:00',
|
|
|
|
20 => '20:00',
|
|
|
|
21 => '21:00',
|
|
|
|
22 => '22:00',
|
|
|
|
23 => '23:00',
|
|
|
|
);
|
|
|
|
$weekdays = array('monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday', 'sunday');
|
|
|
|
?>
|
2011-08-20 13:19:43 +00:00
|
|
|
<script type="text/javascript">
|
2011-09-06 13:11:09 +00:00
|
|
|
Calendar.UI.daylong = new Array("<?php echo $l -> t("Sunday");?>", "<?php echo $l -> t("Monday");?>", "<?php echo $l -> t("Tuesday");?>", "<?php echo $l -> t("Wednesday");?>", "<?php echo $l -> t("Thursday");?>", "<?php echo $l -> t("Friday");?>", "<?php echo $l -> t("Saturday");?>");
|
|
|
|
Calendar.UI.dayshort = new Array("<?php echo $l -> t("Sun.");?>", "<?php echo $l -> t("Mon.");?>", "<?php echo $l -> t("Tue.");?>", "<?php echo $l -> t("Wed.");?>", "<?php echo $l -> t("Thu.");?>", "<?php echo $l -> t("Fri.");?>", "<?php echo $l -> t("Sat.");?>");
|
|
|
|
Calendar.UI.monthlong = new Array("<?php echo $l -> t("January");?>", "<?php echo $l -> t("February");?>", "<?php echo $l -> t("March");?>", "<?php echo $l -> t("April");?>", "<?php echo $l -> t("May");?>", "<?php echo $l -> t("June");?>", "<?php echo $l -> t("July");?>", "<?php echo $l -> t("August");?>", "<?php echo $l -> t("September");?>", "<?php echo $l -> t("October");?>", "<?php echo $l -> t("November");?>", "<?php echo $l -> t("December");?>");
|
|
|
|
Calendar.UI.monthshort = new Array("<?php echo $l -> t("Jan.");?>", "<?php echo $l -> t("Feb.");?>", "<?php echo $l -> t("Mar.");?>", "<?php echo $l -> t("Apr.");?>", "<?php echo $l -> t("May");?>", "<?php echo $l -> t("Jun.");?>", "<?php echo $l -> t("Jul.");?>", "<?php echo $l -> t("Aug.");?>", "<?php echo $l -> t("Sep.");?>", "<?php echo $l -> t("Oct.");?>", "<?php echo $l -> t("Nov.");?>", "<?php echo $l -> t("Dec.");?>");
|
|
|
|
Calendar.UI.cw_label = "<?php echo $l->t("Week");?>";
|
|
|
|
Calendar.UI.cws_label = "<?php echo $l->t("Weeks");?>";
|
2011-09-07 13:13:26 +00:00
|
|
|
Calendar.UI.more_before = String('<?php echo $l->t('More before {startdate}') ?>');
|
|
|
|
Calendar.UI.more_after = String('<?php echo $l->t('More after {enddate}') ?>');
|
2011-08-20 13:19:43 +00:00
|
|
|
</script>
|
2011-08-12 12:29:45 +00:00
|
|
|
<div id="sysbox"></div>
|
|
|
|
<div id="controls">
|
|
|
|
<div>
|
2011-08-11 09:22:07 +00:00
|
|
|
<form>
|
|
|
|
<div id="view">
|
2011-09-02 08:14:56 +00:00
|
|
|
<input type="button" value="1 <?php echo $l->t('Day');?>" id="onedayview_radio" onclick="Calendar.UI.setCurrentView('onedayview');"/>
|
|
|
|
<input type="button" value="1 <?php echo $l->t('Week');?>" id="oneweekview_radio" onclick="Calendar.UI.setCurrentView('oneweekview');"/>
|
|
|
|
<input type="button" value="4 <?php echo $l->t('Weeks');?>" id="fourweeksview_radio" onclick="Calendar.UI.setCurrentView('fourweeksview');"/>
|
|
|
|
<input type="button" value="1 <?php echo $l->t('Month');?>" id="onemonthview_radio" onclick="Calendar.UI.setCurrentView('onemonthview');"/>
|
|
|
|
<input type="button" value="<?php echo $l->t("Listview");?>" id="listview_radio" onclick="Calendar.UI.setCurrentView('listview');"/>
|
2011-08-11 09:22:07 +00:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
<form>
|
|
|
|
<div id="choosecalendar">
|
2011-09-02 08:14:56 +00:00
|
|
|
<input type="button" id="today_input" value="<?php echo $l->t("Today");?>" onclick="oc_cal_switch2today();"/>
|
|
|
|
<input type="button" id="choosecalendar_input" value="<?php echo $l->t("Calendars");?>" onclick="oc_cal_choosecalendar();" />
|
2011-08-11 09:22:07 +00:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
<form>
|
|
|
|
<div id="datecontrol">
|
2011-09-02 08:14:56 +00:00
|
|
|
<input type="button" value=" < " id="datecontrol_left" onclick="Calendar.UI.updateDate('backward');"/>
|
2011-08-12 12:29:45 +00:00
|
|
|
<input id="datecontrol_date" type="button" value=""/>
|
2011-09-02 08:14:56 +00:00
|
|
|
<input type="button" value=" > " id="datecontrol_right" onclick="Calendar.UI.updateDate('forward');"/>
|
2011-08-11 09:22:07 +00:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
2011-08-12 12:29:45 +00:00
|
|
|
<div id="calendar_holder">
|
2011-08-11 09:22:07 +00:00
|
|
|
<div id="onedayview">
|
|
|
|
<table>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2011-08-20 13:19:43 +00:00
|
|
|
<th class="calendar_time"><?php echo $l->t("Time");?></th>
|
2011-09-06 11:38:19 +00:00
|
|
|
<th id="onedayview_today" class="calendar_row" onclick="oc_cal_newevent('#onedayview_today');"></th>
|
2011-08-11 09:22:07 +00:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
2011-09-02 08:14:56 +00:00
|
|
|
<?php foreach($hours as $time => $time_label): ?>
|
2011-08-11 09:22:07 +00:00
|
|
|
<tr>
|
2011-09-02 08:14:56 +00:00
|
|
|
<td class="calendar_time"><?php echo $time_label ?></td>
|
2011-09-06 11:38:19 +00:00
|
|
|
<td class="calendar_row <?php echo $time ?>" onclick="oc_cal_newevent('#onedayview_today', '<?php echo $time ?>');"></td>
|
2011-08-11 09:22:07 +00:00
|
|
|
</tr>
|
2011-09-02 08:14:56 +00:00
|
|
|
<?php endforeach; ?>
|
2011-08-11 09:22:07 +00:00
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
<div id="oneweekview">
|
|
|
|
<table>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2011-08-20 13:19:43 +00:00
|
|
|
<th class="calendar_time"><?php echo $l->t("Time");?></th>
|
2011-09-02 08:14:56 +00:00
|
|
|
<?php foreach($weekdays as $weekdaynr => $weekday): ?>
|
2011-09-06 11:38:19 +00:00
|
|
|
<th class="calendar_row <?php echo $weekday ?> <?php echo $weekdaynr > 4 ? 'weekend_thead' : '' ?>" onclick="oc_cal_newevent('#oneweekview th.<?php echo $weekday ?>');"></th>
|
2011-09-02 08:14:56 +00:00
|
|
|
<?php endforeach; ?>
|
2011-08-11 09:22:07 +00:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
2011-09-02 08:14:56 +00:00
|
|
|
<?php foreach($hours as $time => $time_label): ?>
|
2011-08-11 09:22:07 +00:00
|
|
|
<tr>
|
2011-09-02 08:14:56 +00:00
|
|
|
<td class="calendar_time"><?php echo $time_label?></td>
|
|
|
|
<?php foreach($weekdays as $weekdaynr => $weekday): ?>
|
2011-09-06 11:38:19 +00:00
|
|
|
<td class="<?php echo $weekday ?> <?php echo $time ?> calendar_row <?php echo $weekdaynr > 4 ? 'weekend_row' : '' ?>" onclick="oc_cal_newevent('#oneweekview th.<?php echo $weekday ?>', '<?php echo $time ?>');"></td>
|
2011-09-02 08:14:56 +00:00
|
|
|
<?php endforeach; ?>
|
2011-08-11 09:22:07 +00:00
|
|
|
</tr>
|
2011-09-02 08:14:56 +00:00
|
|
|
<?php endforeach; ?>
|
2011-08-11 09:22:07 +00:00
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
<div id="fourweeksview">
|
|
|
|
<table>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2011-09-11 19:50:13 +00:00
|
|
|
<th class="calendar_row calw"><?php echo $l -> t("Week");?></th>
|
2011-09-02 08:14:56 +00:00
|
|
|
<?php foreach($weekdays as $weekdaynr => $weekday): ?>
|
2011-09-02 14:44:25 +00:00
|
|
|
<th class="calendar_row <?php echo $weekdaynr > 4 ? 'weekend_thead' : '' ?>"><?php echo $l->t(ucfirst($weekday)) ?></th>
|
2011-09-02 08:14:56 +00:00
|
|
|
<?php endforeach; ?>
|
2011-08-11 09:22:07 +00:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
2011-09-02 14:44:25 +00:00
|
|
|
<?php foreach(range(1, 4) as $week): ?>
|
|
|
|
<tr class="week_<?php echo $week ?>">
|
|
|
|
<td class="calw"></td>
|
2011-09-02 08:14:56 +00:00
|
|
|
<?php foreach($weekdays as $weekdaynr => $weekday): ?>
|
2011-09-06 11:38:19 +00:00
|
|
|
<td class="day <?php echo $weekday ?> <?php echo $weekdaynr > 4 ? 'weekend' : '' ?>" onclick="oc_cal_newevent('#fourweeksview .week_<?php echo $week ?> .<?php echo $weekday ?>')">
|
2011-09-02 14:44:25 +00:00
|
|
|
<div class="dateinfo"></div>
|
|
|
|
<div class="events"></div>
|
2011-08-11 09:22:07 +00:00
|
|
|
</td>
|
2011-09-02 08:14:56 +00:00
|
|
|
<?php endforeach; ?>
|
2011-08-11 09:22:07 +00:00
|
|
|
</tr>
|
2011-09-02 08:14:56 +00:00
|
|
|
<?php endforeach; ?>
|
2011-08-11 09:22:07 +00:00
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
<div id="onemonthview">
|
|
|
|
<table>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2011-09-02 08:14:56 +00:00
|
|
|
<?php foreach($weekdays as $weekdaynr => $weekday): ?>
|
2011-09-02 14:44:25 +00:00
|
|
|
<th class="calendar_row <?php echo $weekdaynr > 4 ? 'weekend_thead' : '' ?> <?php echo $weekday ?>"><?php echo $l->t(ucfirst($weekday));?></th>
|
2011-09-02 08:14:56 +00:00
|
|
|
<?php endforeach; ?>
|
2011-08-11 09:22:07 +00:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
2011-09-02 14:44:25 +00:00
|
|
|
<?php foreach(range(1, 6) as $week): ?>
|
|
|
|
<tr class="week_<?php echo $week ?>">
|
2011-09-02 08:14:56 +00:00
|
|
|
<?php foreach($weekdays as $weekdaynr => $weekday): ?>
|
2011-09-06 11:38:19 +00:00
|
|
|
<td class="day <?php echo $weekday ?> <?php echo $weekdaynr > 4 ? 'weekend' : '' ?>" onclick="oc_cal_newevent('#onemonthview .week_<?php echo $week ?> .<?php echo $weekday ?>')">
|
2011-09-02 14:44:25 +00:00
|
|
|
<div class="dateinfo"></div>
|
|
|
|
<div class="events"></div>
|
2011-08-11 09:22:07 +00:00
|
|
|
</td>
|
2011-09-02 08:14:56 +00:00
|
|
|
<?php endforeach; ?>
|
2011-08-11 09:22:07 +00:00
|
|
|
</tr>
|
2011-09-02 08:14:56 +00:00
|
|
|
<?php endforeach; ?>
|
2011-08-11 09:22:07 +00:00
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
<div id="listview">
|
2011-09-07 13:13:26 +00:00
|
|
|
<div id="more_before"></div>
|
|
|
|
<div id="events"></div>
|
|
|
|
<div id="more_after"></div>
|
2011-08-11 09:22:07 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- Dialogs -->
|
2011-08-19 18:33:48 +00:00
|
|
|
<div id="dialog_holder"></div>
|
2011-08-11 09:22:07 +00:00
|
|
|
<div id="parsingfail_dialog" title="Parsing Fail">
|
2011-08-28 18:13:40 +00:00
|
|
|
<?php echo $l->t("There was a fail, while parsing the file."); ?>
|
2011-08-11 09:22:07 +00:00
|
|
|
</div>
|
|
|
|
<!-- End of Dialogs -->
|
|
|
|
<script type="text/javascript">
|
|
|
|
<?php
|
2011-09-02 08:14:56 +00:00
|
|
|
//use last view as default on the next
|
|
|
|
echo "Calendar.UI.setCurrentView(\"" . OC_Preferences::getValue(OC_USER::getUser(), "calendar", "currentview", "onemonthview") . "\");\n";
|
2011-08-12 12:29:45 +00:00
|
|
|
|
2011-08-28 18:13:40 +00:00
|
|
|
?>
|
2011-09-01 21:27:00 +00:00
|
|
|
</script>
|