// Copyright SQCRM. For licensing, reuse, modification and distribution see license.txt 
/**
* repeat event edit view for calendar
* @author Abhik Chakraborty
*/
?>
<div class="box_content">
	<div class="form-group">
		<input type="checkbox" id="event_repeat" name="event_repeat" checked>
		<b><?php echo _('Repeat'); ?></b>
    </div>
    <div id="recurrent_options_section" style="display:block;">
    <br />
		<?php
		$do_recurrent_events = new RecurrentEvents();
		$recurrent_options = $do_recurrent_events->get_recurrent_options();
		echo _('Frequencey');
		echo '<br />';
		echo '<select name="recurrent_options" id="recurrent_options">';
		foreach ($recurrent_options as $key=>$val) {
			$selected = '';
			if ($recurrent_events_pattern["recurrent_options"] == $key) $selected = "selected";
			echo '<option value="'.$key.'" '.$selected.'>'.$val.'</option>'."\n";
		}
		echo '</select>';
		?>
		<?php
		if ($recurrent_events_pattern["recurrent_options"] == 1 || $recurrent_events_pattern["recurrent_options"] == 5
        || $recurrent_events_pattern["recurrent_options"] == 6 || $recurrent_events_pattern["recurrent_options"] == 7
		) {
		?>