<?php
if (empty($url)) {
    $url = Util::addParameter('month.php', 'month', $month);
    $url = Util::addParameter($url, 'year', $year);
    $url = Horde::applicationUrl($url, true);
}
?>
<form action="<?php echo Horde::applicationUrl('deleventaction.php') ?>" method="post" target="_self" name="delete">
<input type="hidden" name="year" value="<?php if (isset($year)) echo $year ?>" />
<input type="hidden" name="month" value="<?php if (isset($month)) echo $month ?>" />
<input type="hidden" name="mday" value="<?php if (isset($day)) echo $day ?>" />
<input type="hidden" name="url" value="<?php echo $url ?>" />
<input type="hidden" name="eventID" value="<?php echo $event->getID() ?>" />
<input type="hidden" name="calendar" value="<?php echo Util::getFormData('calendar') ?>" />

<center>
<table border="0" cellspacing="0" cellpadding="4" align="center">

<!-- header -->
<tr class="header">
 <td align="left" class="header"><b><?php echo sprintf(_("Delete %s"), $event->getTitle()) ?></b></td>
</tr>

<?php if (!empty($event->attendees)): ?>
<!-- attendee updates -->
<tr class="item0">
 <td align="left">
  <input id="sendupdates" type="checkbox" name="sendupdates" checked="checked" /><label for="sendupdates"> <?php echo _("Send a cancel notification to all attendees when deleting this event") ?></label>
 </td>
</tr>
<?php endif ?>

<!-- description -->
<tr>
 <td align="left" class="light"><?php echo _("Delete the current event only, this occurrence and all future occurences, or all occurences?") ?></td>
</tr>

<!-- buttons -->
<tr>
 <td align="left">
  <input type="submit" class="button" name="current" value="<?php echo _("Current") ?>" />
  <input type="submit" class="button" name="future" value="<?php echo _("Future") ?>" />
  <input type="submit" class="button" name="all" value="<?php echo _("All") ?>" />
  <input type="submit" class="button" name="cancel" value="<?php echo _("Cancel") ?>" onclick="self.location = '<?php echo $url; ?>'; return false;" />
 </td>
</tr>

</table>
</center>
</form>
