The followings are the available columns in table:
Inheritance: extends BaseEventTypeElement
Esempio n. 1
0
 public function getFooterProcedures($event_id)
 {
     if (!($event = Event::model()->findByPk($event_id))) {
         throw new Exception("Event not found: {$event_id}");
     }
     if (!($element = Element_OphTrConsent_Procedure::model()->find('event_id=?', array($event->id)))) {
         throw new Exception("Procedure element not found, possibly not a consent event: {$event_id}");
     }
     $return = 'Procedure(s): ';
     foreach ($element->procedures as $i => $proc) {
         if ($i >= 2) {
             $return .= '...';
             break;
         } elseif ($i) {
             $return .= ', ';
         }
         $return .= $proc->term;
     }
     return $return;
 }
Esempio n. 2
0
												Operation
											</span>
											<span class="large-4 column">
												<?php 
    foreach ($operation->procedures as $i => $procedure) {
        if ($i > 0) {
            echo '<br/>';
        }
        echo $operation->eye->name . ' ' . $procedure->term;
    }
    ?>
											</span>
										</span>
									</label>
									<?php 
    if (Element_OphTrConsent_Procedure::model()->find('booking_event_id=?', array($operation->event_id))) {
        ?>
										<div class="alert-box alert with-icon">
											Warning: this booking already has a consent form
										</div>
									<?php 
    }
    ?>
								<?php 
}
?>
								<label class="highlight booking">
									<span class="row">
										<span class="large-1 column">
											<input type="radio" value="unbooked" name="SelectBooking" <?php 
if (count($bookings) == 0) {