<if="$timestuff['formtype'] != 'range'">
<tr>
 <td colspan='2' align='center' class='bg1'>
 <div style='width:100%;' align='center' class='borderwrap'>
 <table cellpadding='0' cellspacing='0' width='100%' class='darkrow3'>
  <tr>
	<td align="left" width='100%' colspan='2'>
	 <input type='checkbox' name='set_times' {$timestuff['checked']} value='1' onclick="toggleview('time-settings')" /> &nbsp;<strong>{$this->ipsclass->lang['form_set_times']}</strong>
	</td>
   </tr>
 </table>
<div id='time-settings' style='display:{$timestuff['divhide']};'>
 <table cellpadding='0' cellspacing='0' width='100%' class='darkrow3'>
  <tr>
	<td align="right" width='20%'>
	 <strong>{$this->ipsclass->lang['form_tz']}</strong>
	</td>
	<td align="left" width='80%'>
	    {$timezone}
	</td>
   </tr>
  <tr>
	<td align="right" width='20%'>
	 <strong>{$this->ipsclass->lang['form_timestart']}</strong>
	</td>
	<td align="left" width='80%'>
	    <input type='text' size='8' name='event_timestart' value='{$timestuff['timestart']}' />
	</td>
   </tr>
 </table>
</div>
</div>
</td>
</tr>
</if>
<tr>
 <td colspan='2' align='center' class='bg1'>
 <div style='width:100%;' align='center' class='borderwrap'>
 <table cellpadding='0' cellspacing='0' width='100%' class='darkrow3'>
   <tr>
	<td align="right" width='20%' valign='middle'>
	 <strong>{$this->ipsclass->lang['form_whichcal']}</strong>
	</td>
	<td align="left" width='80%'>
	    <select name='event_calendar_id'>{$dropdown}</select>
	</td>
   </tr>
   <tr>
	<td align="right" width='20%' valign='middle'>
	 <strong>{$this->ipsclass->lang['calendar_event_type']}</strong>
	</td>
	<td align="left" width='80%'>
	    <select name="e_type">
			<option value="public"$pub_select>{$this->ipsclass->lang['calendar_type_public']}</option>
			<option value="private"$priv_select>{$this->ipsclass->lang['calendar_type_private']}</option>
		</select>
	</td>
   </tr>
  </table>
 </div>
 </td>
</tr>