<form action="invite.php" name="invite" method="post">
<?php Horde::pformInput() ?>
<input type="hidden" name="eventID" value="<?php echo $eventID ?>" />
<input type="hidden" name="calendar" value="<?php echo $event->getCalendar() ?>" />
<input type="hidden" name="url" value="<?php echo Horde::getFormData('url') ?>" />
<input type="hidden" name="actionID" value="invite" />
<table border="0" width="100%">
<tr><td align="left" class="header"><?php echo sprintf(_("Invite people to %s"), $event->getTitle()) ?></td><tr>
<?php if (count($identities) > 1): ?>
<tr>
  <td>
    <?php echo _("Select the identity you want to use to invite people:") ?><br>
    <select name="identity">
<?php for ($i = 0; $i < count($identities); $i++): ?>
        <option value="<?php echo $i ?>"<?php if ($i == $ident->getDefault()) echo ' selected="selected"' ?>><?php echo $identities[$i] ?></option>
<?php endfor; ?>
    </select>
  </td>
</tr>
<?php endif; ?>
<tr><td><textarea name="invitees" rows="5" cols="60"><?php echo htmlspecialchars(Horde::getPost('invitees')) ?></textarea></td></tr>
<tr>
  <td width="1%">
    <input type="submit" class="button" name="doinvite" value="<?php echo htmlspecialchars(_("Invite these people")) ?>" />
<?php if ($registry->hasMethod('contacts/search')): ?>
    <input type="button" class="button" name="contacts" value="<?php echo htmlspecialchars(_("Add people from my Address Book")) ?>" onclick="window.open('<?php echo Horde::applicationUrl('contacts.php') ?>', 'contacts', 'toolbar=no,location=no,status=yes,scrollbars=yes,resizable=yes,width=650,height=350,left=100,top=100'); return false;" />
<?php endif; ?>
  </td>
</tr>
</table>
</form>
