<td height="100%" width="<?php echo round(100 / $templates) ?>%" align="left" valign="top"><table width="100%" height="100%" border="0" cellpadding="1" cellspacing="1">
 <tr class="header">
   <td>
     <span class="smallheader"><?php echo _("Meeting Attendees") ?></span>
   </td>
 </tr>

<tr>
    <td class="item" style="padding-left:2px; padding-right:2px; padding-top:2px">

        <table width="100%" border="0" cellpadding="0" cellspacing="0" class="control">
        <tr class="item" style="height:20px">
            <td nowrap="nowrap" width="2%" align="center">
                <?php Horde::pimg('delete.gif', _("Remove Attendee")) ?>
            </td>
            <td class="item" nowrap="nowrap">
                <?php echo _("Email Address") ?>
            </td>
            <td class="item" nowrap="nowrap">
                <?php echo _("Attendance") ?>
            </td>
            <td class="item" nowrap="nowrap">
                <?php echo _("Response") ?>
            </td>
        </tr>
    <?php foreach ($meeting['attendees'] as $key => $attendee): ?>
        <tr>
            <td nowrap="nowrap" width="2%" align="center" class="item<?php echo ($key % 2) ?>">
                <a href="#" onclick="deleteAttendee('<?php echo addslashes($attendee['email']) ?>')">
                  <?php Horde::pimg('delete.gif', _("Remove Attendee")) ?>
                </a>
            </td>
            <td align="left" nowrap="nowrap" class="item<?php echo ($key % 2) ?>">
                <input type='hidden' name='meeting[attendees][<?php echo $key ?>][email]' value='<?php echo $attendee['email'] ?>' />
                <?php echo $attendee['email'] ?>
            </td>
            <td align="left" nowrap="nowrap" class="item<?php echo ($key % 2) ?>">
                <select name='meeting[attendees][<?php echo $key ?>][attendance]'>
                    <option value='required' <?php echo $attendee['attendance'] == 'required' ? 'selected' : '' ?>>
                        <?php echo _("Required") ?>
                    </option>    
                    <option value='optional' <?php echo $attendee['attendance'] == 'optional' ? 'selected' : '' ?>>
                        <?php echo _("Optional") ?>
                    </option>
                </select>
            </td>
            <td align="left" nowrap="nowrap" class="item<?php echo ($key % 2) ?>">
                <select name='meeting[attendees][<?php echo $key ?>][responce]'>
                    <option value='none' <?php echo $attendee['responce'] == 'none' ? 'selected' : '' ?>>
                        <?php echo _("None") ?>
                    </option>    
                    <option value='accepted' <?php echo $attendee['responce'] == 'accepted' ? 'selected' : '' ?>>
                        <?php echo _("Accepted") ?>
                    </option>    
                    <option value='declined' <?php echo $attendee['responce'] == 'declined' ? 'selected' : '' ?>>
                        <?php echo _("Declined") ?>
                    </option>    
                    <option value='tentative' <?php echo $attendee['responce'] == 'tentative' ? 'selected' : '' ?>>
                        <?php echo _("Tentative") ?>
                    </option>    
                </select>
            </td>

        </tr>
    <?php endforeach; ?> 
        </table>
  </td> 
 </tr>

<tr class="item">
    <td>
        <br/>
        <?php echo _('New Attendee') ?> : <input type='text' size='40' name='email'>
        <input type='button' class="button" onclick='actionIDsubmit(<?php echo MOMENT_ADD_ATTENDEE ?>);' value='<?php echo _('Add') ?>' />
        <?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></td>
