Returns the static model of the specified AR class.
public static model ( $className = __CLASS__ ) : Firm | ||
return | Firm | the static model class |
public function actionDeleteInjectionUsers() { $criteria = new CDbCriteria(); $criteria->addInCondition('id', @$_POST['user_id']); if (OphTrIntravitrealinjection_InjectionUser::model()->deleteAll($criteria)) { echo '1'; } else { echo '0'; } }
?> <?php if (!$element->getIsNewRecord()) { $expiry_date_params = array('minDate' => Helper::convertDate2NHS($element->created_date)); } else { $expiry_date_params = array('minDate' => 'yesterday'); } ?> <?php echo $form->datePicker($element, $side . '_batch_expiry_date', $expiry_date_params, array(), array('label' => $form->layoutColumns['label'], 'field' => 3)); ?> <?php echo $form->dropDownList($element, $side . '_injection_given_by_id', CHtml::listData(OphTrIntravitrealinjection_InjectionUser::model()->getUsers(), 'id', 'ReversedFullNameAndUserName'), array('empty' => '- Please select -'), false, array('field' => 6)); ?> <div id="div_<?php echo get_class($element); ?> _<?php echo $side; ?> _injection_time" class="row field-row"> <div class="<?php echo $form->columns('label'); ?> "> <label for="<?php