<label class="title"><?php __('lblCalendar'); ?></label>
<select class="pj-form-field w200" id="install_calendar_id" name="cid">
	<?php
	foreach ($tpl['calendar_arr'] as $k => $calendar)
	{
		?><option value="<?php echo $calendar['id']; ?>"<?php echo ($controller->getForeignId() == $calendar['id']) || ($controller->getForeignId() != $calendar['id'] && $k == 0) ? ' selected="selected"' : NULL;?>><?php echo pjSanitize::html($calendar['title']); ?></option><?php
	}
	?>
</select>