public function getSchool($con = null) { include_once 'lib/model/om/BaseSchoolPeer.php'; if ($this->aSchool === null && $this->school_of_origin !== null) { $this->aSchool = SchoolPeer::retrieveByPK($this->school_of_origin, $con); } return $this->aSchool; }
</td> </tr> <tr><td colspan="6"><div class="subtitle">Latar Belakang Siswa</div></td></tr> <tr> <td style="vertical-align:middle;"><label ><?php echo __('School of origin'); ?> </label></td> <td width="2%" style="text-align:center; vertical-align:middle;">:</td> <td style="vertical-align:middle;"> <p class="detail"> <?php $school_name = ''; if ($student_detail->getSchoolOfOrigin() != null) { $school = SchoolPeer::retrieveByPK($student_detail->getSchoolOfOrigin()); if ($school) { $school_name = $school->getName(); } echo $school_name; } else { echo ''; } ?> </p> </td> <td style="vertical-align:middle;"><label ><?php echo __('Graduation year'); ?> </label></td> <td width="2%" style="text-align:center; vertical-align:middle;">:</td>
echo object_input_hidden_tag($student_education_history, 'getId'); echo input_hidden_tag('action_type', ''); echo input_hidden_tag('student_id', $student_id); ?> <table class="form"> <tr><td class="form"> <table class="form_content"> <tbody> <tr><td class='first'> <label ><?php echo __('School of origin'); ?> </label><br/> <?php echo input_hidden_tag('school_id', $school_id); echo input_auto_complete_tag('school_name', $student_education_history->getSchoolId() ? SchoolPeer::retrieveByPK($student_education_history->getSchoolId())->toString() : '', '/school/getList', array('size' => 64), array('after_update_element' => 'function(f, s) {$("school_id").updateFromInformalAutocomplete(f, s);}', 'min_chars' => 2)); ?> <?php echo form_error('school_id'); ?> </td><td> <tr><td > <label><?php echo __('In date'); ?> </label><br/> <?php echo object_input_date_tag($student_education_history, 'getInDate', array('rich' => true, 'calendar_button_img' => '/images/calendar.gif')); ?> <?php echo form_error('in_date');