<?php
if (empty($url)) {
    $url = Horde::addParameter('month.php', 'month=' . $month);
    $url = Horde::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 Horde::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>

<!-- description -->
<tr class="smallheader"> 
 <td align="left" class="smallheader"><?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>
