117 lines
3.6 KiB
PHP
117 lines
3.6 KiB
PHP
<!-- timespan header -->
|
|
<tr>
|
|
<td colspan="5" class="control">
|
|
<strong><?php echo _("Time span") ?></strong>
|
|
</td>
|
|
</tr>
|
|
|
|
<!-- start date -->
|
|
<tr>
|
|
<td class="rightAlign">
|
|
<strong><?php echo Horde::label('start_year', _("Sta_rt")) ?></strong>
|
|
</td>
|
|
<td colspan="2" class="rightAlign"><?php echo _("On") ?> </td>
|
|
<td>
|
|
<?php echo $event->html('start[year]') ?>
|
|
-
|
|
<?php echo $event->html('start[month]') ?>
|
|
-
|
|
<?php echo $event->html('start[day]') ?>
|
|
<?php if ($GLOBALS['browser']->hasFeature('dom')): ?>
|
|
<span id="start_wday"></span>
|
|
</td>
|
|
<td>
|
|
<?php echo Horde::img('calendar.png', _("Set start date"), 'id="start_img"') ?>
|
|
<?php endif; ?>
|
|
</td>
|
|
</tr>
|
|
|
|
<!-- start time -->
|
|
<tr>
|
|
<td> </td>
|
|
<td colspan="2" class="rightAlign"><?php echo Horde::label('start_hour', _("At")) ?> </td>
|
|
<td colspan="2">
|
|
<?php echo $event->html('start_hour') ?> : <?php echo $event->html('start_min') ?>
|
|
<?php
|
|
if (!$GLOBALS['prefs']->getValue('twentyFour')) {
|
|
if ($event->start->hour < 12) {
|
|
$am = ' checked="checked"';
|
|
$pm = '';
|
|
} else {
|
|
$am = '';
|
|
$pm = ' checked="checked"';
|
|
}
|
|
?>
|
|
<input id="am" type="radio" class="checkbox" name="am_pm" value="AM"<?php echo $am ?> /><label id="am_label" for="am">AM</label>
|
|
<input id="pm" type="radio" class="checkbox" name="am_pm" value="PM"<?php echo $pm ?> /><label id="pm_label" for="pm">PM</label>
|
|
<?php } ?>
|
|
</td>
|
|
</tr>
|
|
|
|
<!-- end date -->
|
|
<tr>
|
|
<td class="rightAlign"><strong><?php echo Horde::label('end', _("En_d")) ?></strong></td>
|
|
<td>
|
|
<input type="radio" class="checkbox" name="end_or_dur" id="end" value="0" checked="checked" />
|
|
</td>
|
|
<td class="rightAlign">
|
|
<?php echo Horde::label('end_year', _("On")) ?>
|
|
</td>
|
|
<td>
|
|
<?php echo $event->html('end[year]') ?>
|
|
-
|
|
<?php echo $event->html('end[month]') ?>
|
|
-
|
|
<?php echo $event->html('end[day]') ?>
|
|
<?php if ($GLOBALS['browser']->hasFeature('dom')): ?>
|
|
<span id="end_wday"></span>
|
|
</td>
|
|
<td rowspan="2" valign="top">
|
|
<?php echo Horde::img('calendar.png', _("Set end date"), array('id' => 'end_img')) ?>
|
|
<?php endif; ?>
|
|
</td>
|
|
</tr>
|
|
|
|
<!-- end time -->
|
|
<tr>
|
|
<td> </td>
|
|
<td> </td>
|
|
<td class="rightAlign">
|
|
<?php echo _("At") ?>
|
|
</td>
|
|
<td colspan="2">
|
|
<?php echo $event->html('end_hour') ?> : <?php echo $event->html('end_min') ?>
|
|
<?php
|
|
if (!$GLOBALS['prefs']->getValue('twentyFour')) {
|
|
if ($event->end->hour < 12) {
|
|
$am = ' checked="checked"';
|
|
$pm = '';
|
|
} else {
|
|
$am = '';
|
|
$pm = ' checked="checked"';
|
|
}
|
|
?>
|
|
<input id="eam" type="radio" class="checkbox" name="end_am_pm" value="AM"<?php echo $am ?> /><label id="eam_label" for="eam">AM</label>
|
|
<input id="epm" type="radio" class="checkbox" name="end_am_pm" value="PM"<?php echo $pm ?> /><label id="epm_label" for="epm">PM</label>
|
|
<?php } ?>
|
|
</td>
|
|
</tr>
|
|
|
|
<!-- duration -->
|
|
<tr>
|
|
<td valign="top" class="rightAlign"><strong><?php echo Horde::label('duration', _("Duration")) ?></strong></td>
|
|
<td valign="top">
|
|
<input type="radio" class="checkbox" name="end_or_dur" id="duration" value="1" />
|
|
</td>
|
|
<td> </td>
|
|
<td valign="top">
|
|
<input id="allday" name="whole_day" type="checkbox" class="checkbox"<?php $dur = $event->getDuration(); if ($dur->wholeDay) echo ' checked="checked"' ?> />
|
|
<label id="allday_label" for="allday"><?php echo _("All day") ?></label><br />
|
|
<?php printf(_("%s Day(s) %s Hour(s) %s Minutes"), $event->html('dur_day'), $event->html('dur_hour'), $event->html('dur_min')) ?>
|
|
<?php if ($GLOBALS['browser']->hasFeature('dom')): ?>
|
|
</td>
|
|
<td rowspan="2">
|
|
<?php endif; ?>
|
|
</td>
|
|
</tr>
|