Inheritance: extends BaseActiveRecordVersioned
 * OpenEyes is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
 * You should have received a copy of the GNU General Public License along with OpenEyes in a file titled COPYING. If not, see <http://www.gnu.org/licenses/>.
 *
 * @link http://www.openeyes.org.uk
 *
 * @author OpenEyes <*****@*****.**>
 * @copyright Copyright (c) 2008-2011, Moorfields Eye Hospital NHS Foundation Trust
 * @copyright Copyright (c) 2011-2013, OpenEyes Foundation
 * @license http://www.gnu.org/licenses/gpl-3.0.html The GNU General Public License V3.0
 */
$centralAreas = CHtml::listData(\OEModule\OphCiExamination\models\OphCiExamination_BlebAssessment_CentralArea::model()->activeOrPk(array($element->right_central_area_id, $element->left_central_area_id))->findAll(array('order' => 'display_order')), 'id', 'area');
$centralAreaFieldImages = \OEModule\OphCiExamination\models\OphCiExamination_BlebAssessment_CentralArea::model()->getFieldImages();
$maxAreas = CHtml::listData(\OEModule\OphCiExamination\models\OphCiExamination_BlebAssessment_MaxArea::model()->activeOrPk(array($element->right_max_area_id, $element->left_max_area_id))->findAll(array('order' => 'display_order')), 'id', 'area');
$maxAreaFieldImages = \OEModule\OphCiExamination\models\OphCiExamination_BlebAssessment_MaxArea::model()->getFieldImages();
$heights = CHtml::listData(\OEModule\OphCiExamination\models\OphCiExamination_BlebAssessment_Height::model()->activeOrPk(array($element->right_height_id, $element->left_height_id))->findAll(array('order' => 'display_order')), 'id', 'height');
$heightFieldImages = \OEModule\OphCiExamination\models\OphCiExamination_BlebAssessment_Height::model()->getFieldImages();
$vascularities = CHtml::listData(\OEModule\OphCiExamination\models\OphCiExamination_BlebAssessment_Vascularity::model()->activeOrPk(array($element->right_vasc_id, $element->left_vasc_id))->findAll(array('order' => 'display_order')), 'id', 'vascularity');
$vascularitiesFieldImages = \OEModule\OphCiExamination\models\OphCiExamination_BlebAssessment_Vascularity::model()->getFieldImages();
?>
<div class="element-fields element-eyes row">
	<?php 
echo $form->hiddenInput($element, 'eye_id', false, array('class' => 'sideField'));
?>
	<script type="text/javascript">
		var idToImagesArr = {
			'OEModule_OphCiExamination_models_Element_OphCiExamination_BlebAssessment_left_central_area_id':
				{id:'centralArea',selects:<?php 
echo json_encode($centralAreas);
?>
},
			'OEModule_OphCiExamination_models_Element_OphCiExamination_BlebAssessment_right_central_area_id':