<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 Time") ?></span>
   </td>
 </tr>

 <tr class="item" valign="top">
    <td>
        <table width="100%" cellspacing="0" cellpadding="0">
            <!-- start time -->
            <tr>
             <td align="right" valign="top">
                <b><?php echo _("Start Time") ?>:&nbsp;</b>
             </td>
             <td align="left" colspan="3">
              <select name="meeting[start][day]" id="start[day]">
                <?php for ($i = 1; $i <= 31; $i++) :?>
                    <option value="<?php echo $i ?>" <?php echo $i == date('j', $meeting['start']) ? 'selected' : ''?>><?php echo $i ?></option>
                <?php endfor; ?>
              </select> - 
              <select name="meeting[start][month]" id="start[month]">
                <?php for ($i = 1; $i <= 12; $i++) :?>
                    <option value="<?php echo $i ?>" <?php echo $i == date('n', $meeting['start']) ? 'selected' : ''?>><?php echo strftime('%b', mktime(0, 0, 0, $i, 1, 1990)) ?></option>
                <?php endfor; ?>
              </select>  -
              <select name="meeting[start][year]" id="start[year]">
                <?php for ($i = date('Y'); $i <= date('Y') + 5; $i++) :?>
                    <option value="<?php echo $i ?>" <?php echo $i == date('Y', $meeting['start']) ? 'selected' : ''?>><?php echo $i ?></option>
                <?php endfor; ?>
              </select>
              <a href="#" onclick="javascript:openCalendar('start', 'start');"><?php echo Horde::img('calendar.gif', '', 'id="start"') ?></a>
              <div id="goto" class="control" style="position:absolute;visibility:hidden;padding:1px"></div>
              &nbsp;@<br />
              <select name="meeting[start][hour]" id="start[hour]">
                <?php $hourformat = $prefs->getValue('twentyFour') ? 'H' : 'g a';
                      for ($i = 0; $i <= 23; $i++) :?>
                    <option value="<?php echo $i ?>" <?php echo $i == intval(date('H', $meeting['start'])) ? 'selected' : ''?>><?php echo date($hourformat, mktime($i, 0, 0, 1, 1, 1990)) ?></option>
                <?php endfor; ?>
              </select>&nbsp;:&nbsp;
              <select name="meeting[start][min]" id="start[min]">
                <?php for ($i = 0; $i <= 55; $i += 5) :?>
                    <option value="<?php echo $i ?>" <?php echo $i == date('i', $meeting['start']) ? 'selected' : ''?>><?php echo sprintf('%02d', $i) ?></option>
                <?php endfor; ?>
              </select>
             </td>
            </tr>

            <!-- end time -->
            <tr>
             <td align="right" valign="top">
                <b><?php echo _("End Time") ?>:&nbsp;</b>
             </td>
             <td align="left" valign="bottom">
              <select name="meeting[end][day]" id="end[day]">
                <?php for ($i = 1; $i <= 31; $i++) :?>
                    <option value="<?php echo $i ?>" <?php echo $i == date('j', $meeting['end']) ? 'selected' : ''?>><?php echo $i ?></option>
                <?php endfor; ?>
              </select> - 
              <select name="meeting[end][month]" id="end[month]">
                <?php for ($i = 1; $i <= 12; $i++) :?>
                    <option value="<?php echo $i ?>" <?php echo $i == date('n', $meeting['end']) ? 'selected' : ''?>><?php echo strftime('%b', mktime(0, 0, 0, $i, 1, 1990)) ?></option>
                <?php endfor; ?>
              </select>  -
              <select name="meeting[end][year]" id="end[year]">
                <?php for ($i = date('Y'); $i <= date('Y') + 5; $i++) :?>
                    <option value="<?php echo $i ?>" <?php echo $i == date('Y', $meeting['end']) ? 'selected' : ''?>><?php echo $i ?></option>
                <?php endfor; ?>
              </select>
              <a href="#" onclick="javascript:openCalendar('end', 'end');"><?php echo Horde::img('calendar.gif', '', 'id="end"') ?></a>
              <div id="goto" class="control" style="position:absolute;visibility:hidden;padding:1px"></div>
              &nbsp;@<br />
              <select name="meeting[end][hour]" id="end[hour]">
                <?php $hourformat = $prefs->getValue('twentyFour') ? 'H' : 'g a';
                      for ($i = 0; $i <= 23; $i++) :?>
                    <option value="<?php echo $i ?>" <?php echo $i == intval(date('H', $meeting['end'])) ? 'selected' : ''?>><?php echo date($hourformat, mktime($i, 0, 0, 1, 1, 1990)) ?></option>
                <?php endfor; ?>
              </select>&nbsp;:&nbsp;
              <select name="meeting[end][min]" id="end[min]">
                <?php for ($i = 0; $i <= 55; $i += 5) :?>
                    <option value="<?php echo $i ?>" <?php echo $i == date('i', $meeting['end']) ? 'selected' : ''?>><?php echo sprintf('%02d', $i) ?></option>
                <?php endfor; ?>
              </select>
             </td>
            </tr>
        </table>
   </td>
 </tr>
</table></td>
