Exemple #1
0
 public function executeEditStudent()
 {
     $employee_id = sfContext::getInstance()->getUser()->getAttribute('user_id', null, 'bo');
     $employee = EmployeePeer::retrieveByPK($employee_id);
     $this->forward404Unless($employee);
     $counseling_id = $this->getRequestParameter('counseling_id');
     $counseling = CounselingPeer::retrieveByPK($counseling_id);
     $this->forward404Unless($counseling);
     $accal_id = $this->getRequestParameter('accal_id');
     $academic_calendar = AcademicCalendarPeer::retrieveByPK($accal_id);
     $this->forward404Unless($academic_calendar);
     $student_id = $this->getRequestParameter('student_id');
     $student = StudentPeer::retrieveByPK($this->getRequestParameter('student_id'));
     $this->forward404Unless($student);
     $this->student_detail = $student->getStudentDetail();
     $actions = array(array('name' => 'save', 'type' => 'submit', 'options' => array('class' => 'save_button', 'onclick' => "action_type.value=this.value")));
     $this->actions = $actions;
     $actions2 = array(array('name' => '<span>' . $academic_calendar->toString() . '</span>', 'url' => 'counseling/listStudentByEmployee?accal_id=' . $academic_calendar->getId() . '&counseling_id=' . $counseling->getId() . '&employee_id=' . $employee_id, 'color' => 'sky'));
     array_push($actions2, array('name' => '<span>Ubah Data Siswa </span>', 'url' => 'counseling_detail/editStudent?student_id=' . $student->getId() . '&counseling_id=' . $counseling->getId() . '&accal_id=' . $academic_calendar->getId(), 'color' => 'sun', 'type' => 'direct'));
     $this->actions2 = $actions2;
     $this->subtitle = $student->getName() . ' - ' . $student->getClassGroup()->toString();
     ## Data Ayah
     $ca = new Criteria();
     $ca->add(StudentParentsPeer::STUDENT_ID, $student->getId());
     $ca->add(StudentParentsPeer::RELATION, StudentParents::RELATION_FATHER);
     $father = StudentParentsPeer::doSelectOne($ca);
     ## Data Ibu
     $cb = new Criteria();
     $cb->add(StudentParentsPeer::STUDENT_ID, $student->getId());
     $cb->add(StudentParentsPeer::RELATION, StudentParents::RELATION_MOTHER);
     $mother = StudentParentsPeer::doSelectOne($cb);
     ## Data Wali
     $cc = new Criteria();
     $cc->add(StudentParentsPeer::STUDENT_ID, $student->getId());
     $cc->add(StudentParentsPeer::RELATION, StudentParents::RELATION_GUARDIAN);
     $guardian = StudentParentsPeer::doSelectOne($cc);
     ## Prestasi Murid
     $cd = new Criteria();
     $cd->add(StudentAchievementPeer::STUDENT_ID, $student->getId());
     $achieves = StudentAchievementPeer::doSelect($cd);
     $ce = new Criteria();
     $ce->add(StudentTalentPeer::STUDENT_ID, $student->getId());
     $talents = StudentTalentPeer::doSelect($ce);
     $this->talents = $talents;
     $this->achieves = $achieves;
     $this->father = $father;
     $this->mother = $mother;
     $this->guardian = $guardian;
     $this->counseling = $counseling;
     $this->counseling_id = $counseling_id;
     $this->student = $student;
     $this->student_id = $student_id;
     $this->employee = $employee;
     $this->academic_calendar = $academic_calendar;
     $this->type = 'edit';
 }
Exemple #2
0
 public function executeEdit()
 {
     $student_id = $this->getContext()->getUser()->getAttribute('user_id', '', 'bo');
     $student = StudentPeer::retrieveByPk($student_id);
     $this->forward404Unless($student);
     $this->student_detail = $student->getStudentDetail();
     $actions = array(array('name' => 'save', 'type' => 'submit', 'options' => array('class' => 'save_button', 'onclick' => "action_type.value=this.value")));
     array_push($actions, array('name' => 'cancel', 'url' => 'user_profile/show', 'color' => 'black'));
     $this->subtitle = $student->toString() . ' - id:' . $student->getId();
     $this->type = 'edit';
     ## Data Ayah
     $ca = new Criteria();
     $ca->add(StudentParentsPeer::STUDENT_ID, $student->getId());
     $ca->add(StudentParentsPeer::RELATION, StudentParents::RELATION_FATHER);
     $father = StudentParentsPeer::doSelectOne($ca);
     ## Data Ibu
     $cb = new Criteria();
     $cb->add(StudentParentsPeer::STUDENT_ID, $student->getId());
     $cb->add(StudentParentsPeer::RELATION, StudentParents::RELATION_MOTHER);
     $mother = StudentParentsPeer::doSelectOne($cb);
     ## Data Wali
     $cc = new Criteria();
     $cc->add(StudentParentsPeer::STUDENT_ID, $student->getId());
     $cc->add(StudentParentsPeer::RELATION, StudentParents::RELATION_GUARDIAN);
     $guardian = StudentParentsPeer::doSelectOne($cc);
     ## Prestasi Murid
     $cd = new Criteria();
     $cd->add(StudentAchievementPeer::STUDENT_ID, $student->getId());
     $achieves = StudentAchievementPeer::doSelect($cd);
     $ce = new Criteria();
     $ce->add(StudentTalentPeer::STUDENT_ID, $student->getId());
     $talents = StudentTalentPeer::doSelect($ce);
     $this->talents = $talents;
     $this->achieves = $achieves;
     $this->father = $father;
     $this->mother = $mother;
     $this->guardian = $guardian;
     $this->student = $student;
     $this->actions = $actions;
 }
Exemple #3
0
 public function executeGetInfo()
 {
     $student_id = $this->getRequestParameter('student_id');
     $student = StudentPeer::retrieveByPK($student_id);
     $this->forward404Unless($student);
     $actions = array();
     $this->actions = $actions;
     ## Data Ayah
     $ca = new Criteria();
     $ca->add(StudentParentsPeer::STUDENT_ID, $student->getId());
     $ca->add(StudentParentsPeer::RELATION, StudentParents::RELATION_FATHER);
     $father = StudentParentsPeer::doSelectOne($ca);
     ## Data Ibu
     $cb = new Criteria();
     $cb->add(StudentParentsPeer::STUDENT_ID, $student->getId());
     $cb->add(StudentParentsPeer::RELATION, StudentParents::RELATION_MOTHER);
     $mother = StudentParentsPeer::doSelectOne($cb);
     ## Data Wali
     $cc = new Criteria();
     $cc->add(StudentParentsPeer::STUDENT_ID, $student->getId());
     $cc->add(StudentParentsPeer::RELATION, StudentParents::RELATION_GUARDIAN);
     $guardian = StudentParentsPeer::doSelectOne($cc);
     ## Prestasi Murid
     $cd = new Criteria();
     $cd->add(StudentAchievementPeer::STUDENT_ID, $student->getId());
     $achieves = StudentAchievementPeer::doSelect($cd);
     $ce = new Criteria();
     $ce->add(StudentTalentPeer::STUDENT_ID, $student->getId());
     $talents = StudentTalentPeer::doSelect($ce);
     $this->talents = $talents;
     $this->achieves = $achieves;
     $this->father = $father;
     $this->mother = $mother;
     $this->guardian = $guardian;
     $this->student_detail = $student->getStudentDetail();
     $this->counseling = $counseling;
     $this->student = $student;
 }
Exemple #4
0
 public function executeEditParent()
 {
     $employee_id = sfContext::getInstance()->getUser()->getAttribute('user_id', null, 'bo');
     $employee = EmployeePeer::retrieveByPK($employee_id);
     $this->forward404Unless($employee);
     $counseling_id = $this->getRequestParameter('counseling_id');
     $counseling = CounselingPeer::retrieveByPK($counseling_id);
     $this->forward404Unless($counseling);
     $accal_id = $this->getRequestParameter('accal_id');
     $academic_calendar = AcademicCalendarPeer::retrieveByPK($accal_id);
     $this->forward404Unless($academic_calendar);
     $student = StudentPeer::retrieveByPk($this->getRequestParameter('student_id'));
     $this->forward404Unless($student);
     $this->student_detail = $student->getStudentDetail();
     $actions2 = array(array('name' => '<span>' . $academic_calendar->toString() . '</span>', 'url' => 'counseling_sd/listStudent?accal_id=' . $academic_calendar->getId() . '&counseling_id=' . $counseling->getId(), 'color' => 'sky'));
     array_push($actions2, array('name' => '<span>1. Data Murid</span>', 'url' => 'counseling_sd/editStudent?student_id=' . $student->getId() . '&counseling_id=' . $counseling->getId() . '&accal_id=' . $academic_calendar->getId(), 'color' => 'sky'));
     array_push($actions2, array('name' => '<span>2. Data Orang Tua</span>', 'url' => 'counseling_sd/editParent?student_id=' . $student->getId() . '&counseling_id=' . $counseling->getId() . '&accal_id=' . $academic_calendar->getId(), 'color' => 'sun', 'type' => 'direct'));
     $this->actions2 = $actions2;
     $actions = array(array('name' => 'save', 'type' => 'submit', 'options' => array('class' => 'save_button', 'onclick' => "action_type.value=this.value")));
     ## Data Ayah
     $ca = new Criteria();
     $ca->add(StudentParentsPeer::STUDENT_ID, $student->getId());
     $ca->add(StudentParentsPeer::RELATION, StudentParents::RELATION_FATHER);
     $father = StudentParentsPeer::doSelectOne($ca);
     if ($father == null) {
         $father = new StudentParents();
     }
     ## Data Ibu
     $cb = new Criteria();
     $cb->add(StudentParentsPeer::STUDENT_ID, $student->getId());
     $cb->add(StudentParentsPeer::RELATION, StudentParents::RELATION_MOTHER);
     $mother = StudentParentsPeer::doSelectOne($cb);
     if ($mother == null) {
         $mother = new StudentParents();
     }
     ## Data Wali
     $cc = new Criteria();
     $cc->add(StudentParentsPeer::STUDENT_ID, $student->getId());
     $cc->add(StudentParentsPeer::RELATION, StudentParents::RELATION_GUARDIAN);
     $guardian = StudentParentsPeer::doSelectOne($cc);
     if ($guardian == null) {
         $guardian = new StudentParents();
     }
     $this->father = $father;
     $this->mother = $mother;
     $this->guardian = $guardian;
     $this->setTemplate('editStudent');
     $this->subtitle = $student->toString() . ' - id:' . $student->getId();
     $this->type = 'edit';
     $this->student = $student;
     $this->counseling = $counseling;
     $this->academic_calendar = $academic_calendar;
     $this->employee = $employee;
     $this->actions = $actions;
     $this->tipe = 'parent';
 }
Exemple #5
0
				<tr><td></td></tr>
				<tr><td><b><br><?php 
        if ($counseling->getEmployeeId() == 444) {
            echo 'Parents';
        } else {
            echo 'Orang Tua/Wali';
        }
        ?>
</b></td></tr>
    				<tr><td height="50"></td></tr>
				<tr><td><b>
    				<?php 
        $c = new Criteria();
        $c->add(StudentParentsPeer::STUDENT_ID, $student->getId());
        $c->add(StudentParentsPeer::RELATION, 1);
        $parent = StudentParentsPeer::doSelectOne($c);
        if ($parent) {
            echo $parent->getName() ? $parent->getName() : '___________________';
        } else {
            echo '_______________';
        }
        ?>
</b></td></tr>
    			</table>
			</td>
			<td width="35%" style="vertical-align: top; font-size: 11px;">
			<table>
				<tr>
					<td><b>Jakarta, 
         				<?php 
        if ($counseling->getEmployeeId() == 444) {
Exemple #6
0
</div></td></tr>
                <?php 
} else {
    ?>
                         <?php 
    $i = 0;
    foreach ($pager->getResults() as $student) {
        $ta_detail = $student->getStudentDetail();
        $cm = new Criteria();
        $cm->add(StudentParentsPeer::STUDENT_ID, $student->getId());
        $cm->add(StudentParentsPeer::RELATION, StudentParents::RELATION_FATHER);
        $father = StudentParentsPeer::doSelectOne($cm);
        $cl = new Criteria();
        $cl->add(StudentParentsPeer::STUDENT_ID, $student->getId());
        $cl->add(StudentParentsPeer::RELATION, StudentParents::RELATION_MOTHER);
        $mother = StudentParentsPeer::doSelectOne($cl);
        ?>
                            <tr class="list<?php 
        ++$i;
        if ($i % 2 == 0) {
            echo ' even';
        }
        ?>
">
                                    <td><?php 
        echo $i + ($pager->getPage() - 1) * $pager->getMaxPerPage();
        ?>
</td>
                                    <td><?php 
        echo $student->getCode() ? $student->getCode() : '-';
        ?>
Exemple #7
0
 public function getMother()
 {
     $c = new Criteria();
     $c->add(StudentParentsPeer::STUDENT_ID, $this->getId(), Criteria::EQUAL);
     $c->add(StudentParentsPeer::RELATION, 2, Criteria::EQUAL);
     return StudentParentsPeer::doSelectOne($c);
 }
    $student_applicant = $student->getTestApplicant();
    ## Data Ayah
    $ca = new Criteria();
    $ca->add(StudentParentsPeer::STUDENT_ID, $student->getId());
    $ca->add(StudentParentsPeer::RELATION, StudentParents::RELATION_FATHER);
    $father = StudentParentsPeer::doSelectOne($ca);
    ## Data Ibu
    $cb = new Criteria();
    $cb->add(StudentParentsPeer::STUDENT_ID, $student->getId());
    $cb->add(StudentParentsPeer::RELATION, StudentParents::RELATION_MOTHER);
    $mother = StudentParentsPeer::doSelectOne($cb);
    ## Data Wali
    $cc = new Criteria();
    $cc->add(StudentParentsPeer::STUDENT_ID, $student->getId());
    $cc->add(StudentParentsPeer::RELATION, StudentParents::RELATION_GUARDIAN);
    $guardian = StudentParentsPeer::doSelectOne($cc);
    echo include_partial('global/printCover');
    ?>

        <!-- Halaman 1 -->
        <table width="100%" border="0" style="page-break-after: always;">
            <tr><td height="10px"></td></tr>
            <tr>
                <td>
                    <center class="subtitle">YAYASAN PESANTREN ISLAM AL AZHAR<br>SEKOLAH MENENGAH PERTAMA ISLAM AL AZHAR <?php 
    echo $academic_calendar->getDepartment()->getNumCode();
    ?>
</center>
                    <center class="subtitle" style="font-weight: normal;">STATUS : TERAKREDITASI A<br><?php 
    echo $department_detail ? $department_detail->getNss() ? 'NSS : ' . $department_detail->getNss() : 'NSS : -' : 'NSS : -';
    ?>
Exemple #9
0
 public function executePrintRegister()
 {
     $counseling_id = $this->getRequestParameter('counseling_id');
     $counseling = CounselingPeer::retrieveByPK($counseling_id);
     $this->forward404Unless($counseling);
     $academic_calendar = AcademicCalendarPeer::retrieveByPK($this->getRequestParameter('accal_id'));
     $this->forward404Unless($academic_calendar);
     $time = $this->getRequestParameter('time');
     $time2 = $this->getRequestParameter('time2');
     $tgl = $this->getRequestParameter('tgl_cetak');
     $c = new Criteria();
     $c->add(TempTablePeer::COUNSELING_ID, $counseling->getId());
     $c->add(TempTablePeer::TIME, $time);
     $c->addJoin(VStudentActivePeer::ID, TempTablePeer::STUDENT_ID);
     $c->addAscendingOrderByColumn(VStudentActivePeer::CLASS_NAME);
     $students = VStudentActivePeer::doSelect($c);
     $this->forward404Unless($students);
     $cw = new Criteria();
     $cw->add(DepartmentDetailPeer::DEPARTMENT_ID, $academic_calendar->getDepartmentId());
     $this->department_detail = DepartmentDetailPeer::doSelectOne($cw);
     ## Orang Tua
     $ca = new Criteria();
     $stuparents = StudentParentsPeer::doSelectOne($ca);
     ## Menentukan Aturan Penilaian
     $cd = new Criteria();
     #$cd->add(ScoreRulePeer::ACADEMIC_CALENDAR_ID, $counseling->getAcademicCalendarId());
     $cd->add(ClassGroupPeer::DEPARTMENT_ID, $counseling->getAcademicCalendar()->getDepartmentId());
     $cd->addJoin(ScoreRulePeer::CLASS_GROUP_ID, ClassGroupPeer::ID);
     $cd->add(ScoreRulePeer::TYPE, 7);
     $score_rule = ScoreRulePeer::doSelectOne($cd);
     $this->score_rule = $score_rule;
     $this->stuparents = $stuparents;
     $this->students = $students;
     $this->subtitle = '';
     $this->counseling = $counseling;
     $this->tanggal = $time;
     $this->tgl_cetak = $tgl;
     $this->time2 = $time2;
     $this->academic_calendar = $academic_calendar;
     $this->papersize = 'a4';
     if ($academic_calendar->getDepartment()->getCourseModel() == Department::CM_TK) {
         $this->orientation = 'landscape';
     } else {
         $this->orientation = 'portrait';
     }
     $this->setViewClass('sfDomPDF');
 }
Exemple #10
0
 public function executeUpdateParent()
 {
     $i18n = new sfI18N();
     $i18n->initialize($this->getContext());
     $i18n->setCulture($this->getUser()->getCulture());
     $action_i18n = $i18n->globalMessageFormat->format('save as new');
     $action_type = $this->getRequestParameter('action_type');
     $student = StudentPeer::retrieveByPk($this->getRequestParameter('id'));
     $this->forward404Unless($student);
     $student_detail = StudentDetailPeer::retrieveByPk($this->getRequestParameter('student_detail_id'));
     $this->forward404Unless($student_detail);
     $c = new Criteria();
     $c->add(StudentParentsPeer::STUDENT_ID, $student->getId());
     $c->add(StudentParentsPeer::RELATION, StudentParents::RELATION_FATHER);
     $father = StudentParentsPeer::doSelectOne($c);
     if ($father == null) {
         $father = new StudentParents();
     }
     $father->setRelation(StudentParents::RELATION_FATHER);
     $father->setStudentId($student->getId());
     $father->setName($this->getRequestParameter('father_name'));
     $father->setPob($this->getRequestParameter('father_pob'));
     if ($this->getRequestParameter('father_dob')) {
         $father->setDob($this->getRequestParameter('father_dob'));
     }
     $father->setJob($this->getRequestParameter('father_job_note'));
     $father->setDegreeId($this->getRequestParameter('father_degree'));
     $father->setMonthlyRevenue($this->getRequestParameter('father_revenue'));
     $father->setAddress($this->getRequestParameter('father_address'));
     $father->setPostCode($this->getRequestParameter('father_postcode'));
     $father->setHomePhone($this->getRequestParameter('father_homephone'));
     $father->save();
     $ct = new Criteria();
     $ct->add(StudentParentsPeer::STUDENT_ID, $student->getId());
     $ct->add(StudentParentsPeer::RELATION, StudentParents::RELATION_MOTHER);
     $mother = StudentParentsPeer::doSelectOne($ct);
     if ($mother == null) {
         $mother = new StudentParents();
     }
     $mother->setRelation(StudentParents::RELATION_MOTHER);
     $mother->setStudentId($student->getId());
     $mother->setName($this->getRequestParameter('mother_name'));
     $mother->setPob($this->getRequestParameter('mother_pob'));
     if ($this->getRequestParameter('mother_dob')) {
         $mother->setDob($this->getRequestParameter('mother_dob'));
     }
     $mother->setJob($this->getRequestParameter('mother_job_note'));
     $mother->setDegreeId($this->getRequestParameter('mother_degree'));
     $mother->setMonthlyRevenue($this->getRequestParameter('mother_revenue'));
     $mother->setAddress($this->getRequestParameter('mother_address'));
     $mother->setPostCode($this->getRequestParameter('mother_postcode'));
     $mother->setHomePhone($this->getRequestParameter('mother_homephone'));
     $mother->save();
     $cr = new Criteria();
     $cr->add(StudentParentsPeer::STUDENT_ID, $student->getId());
     $cr->add(StudentParentsPeer::RELATION, StudentParents::RELATION_GUARDIAN);
     $guardian = StudentParentsPeer::doSelectOne($cr);
     if ($guardian == null) {
         $guardian = new StudentParents();
     }
     $guardian->setRelation(StudentParents::RELATION_GUARDIAN);
     $guardian->setStudentId($student->getId());
     $guardian->setName($this->getRequestParameter('guardian_name'));
     $guardian->setPob($this->getRequestParameter('guardian_pob'));
     if ($this->getRequestParameter('guardian_dob')) {
         $guardian->setDob($this->getRequestParameter('guardian_dob'));
     }
     $guardian->setJob($this->getRequestParameter('guardian_job_note'));
     $guardian->setDegreeId($this->getRequestParameter('guardian_degree'));
     $guardian->setMonthlyRevenue($this->getRequestParameter('guardian_revenue'));
     $guardian->setAddress($this->getRequestParameter('guardian_address'));
     $guardian->setPostCode($this->getRequestParameter('guardian_postcode'));
     $guardian->setHomePhone($this->getRequestParameter('guardian_homephone'));
     $guardian->save();
     $student_detail->setFather($father->getName());
     $student_detail->setMother($mother->getName());
     $student_detail->setFatherJob($this->getRequestParameter('father_job'));
     $student_detail->setMotherJob($this->getRequestParameter('mother_job'));
     $student_detail->setDetailFatherJob($this->getRequestParameter('detail_father_job'));
     $student_detail->setDetailMotherJob($this->getRequestParameter('detail_mother_job'));
     $student_detail->save();
     return $this->redirect('scholar/listPhysical?id=' . $student->getId());
 }
Exemple #11
0
 public function executeCreateMother()
 {
     $student_id = $this->getContext()->getUser()->getAttribute('user_id', '', 'bo');
     $this->forward404Unless($student_id);
     $student = StudentPeer::retrieveByPk($student_id);
     $this->forward404Unless($student);
     $mother = new StudentParents();
     $c = new Criteria();
     $c->add(StudentParentsPeer::STUDENT_ID, $student_id);
     $c->add(StudentParentsPeer::RELATION, 1);
     $father = StudentParentsPeer::doSelectOne($c);
     $this->setTemplate('edit');
     $this->actions = array(array('name' => 'save', 'type' => 'submit', 'options' => array('class' => 'save_button', 'onclick' => "action_type.value=this.value")), array('name' => 'cancel', 'url' => 'student_parents_s/index', 'color' => 'black'));
     $this->subtitle = $student->toString();
     $this->type = 'add';
     $this->father = $father;
     $this->mother = $mother;
     $this->student_id = $student_id;
 }
Exemple #12
0
 public function executeShowStudent()
 {
     $group_id = $this->getContext()->getUser()->getAttribute('group_id', null, 'bo');
     $c = new Criteria();
     $c->add(JobPeer::ID, 208);
     $job = JobPeer::doSelectOne($c);
     $acl = AclPeer::retrieveByPK($group_id, $job->getId());
     if (!$acl) {
         $this->forward('default', 'error404');
     }
     #$mem = VMemberStudentPeer::retrieveByPk($this->getRequestParameter('id'));
     #$this->forward404Unless($mem);
     #$member = MemberPeer::retrieveByPK($this->getRequestParameter('id'));
     #$this->forward404Unless($member);
     $id = ltrim($this->getRequestParameter('id'));
     $student = StudentPeer::retrieveByPk($id);
     $this->forward404Unless($student);
     $this->subtitle = $student->toString() . ' - id:' . $student->getId();
     #$this->subtitle = '';
     if ($this->hasRequestParameter('no_reg') && $this->getRequestParameter('no_reg') != '' && $this->getRequestParameter('no_reg') != null) {
         $actions = array(array('name' => 'back', 'url' => 'member/listStudent?filters[NO_REG]=' . $this->getRequestParameter('no_reg'), 'color' => 'black'));
     } elseif ($this->hasRequestParameter('code') && $this->getRequestParameter('code') != '' && $this->getRequestParameter('code') != null) {
         $actions = array(array('name' => 'back', 'url' => 'member/listStudent?filters[CODE]=' . $this->getRequestParameter('code'), 'color' => 'black'));
     } elseif ($this->hasRequestParameter('dept_id') && $this->getRequestParameter('dept_id') != '' && $this->getRequestParameter('dept_id') != null) {
         $actions = array(array('name' => 'back', 'url' => 'member/listStudent?filters[DEPARTMENT_ID]=' . $this->getRequestParameter('dept_id'), 'color' => 'black'));
     } elseif ($this->hasRequestParameter('status') && $this->getRequestParameter('status') != '' && $this->getRequestParameter('status') != null) {
         $actions = array(array('name' => 'back', 'url' => 'member/listStudent?filters[STATUS]=' . $this->getRequestParameter('status'), 'color' => 'black'));
     } elseif ($this->hasRequestParameter('name') && $this->getRequestParameter('name') != '' && $this->getRequestParameter('name') != null) {
         $actions = array(array('name' => 'back', 'url' => 'member/listStudent?filters[NAME]=' . $this->getRequestParameter('name'), 'color' => 'black'));
     } elseif ($this->hasRequestParameter('class_id') && $this->getRequestParameter('class_id') != '' && $this->getRequestParameter('class_id') != null) {
         $actions = array(array('name' => 'back', 'url' => 'member/listStudent?filters[CLASS_GROUP_ID]=' . $this->getRequestParameter('class_id'), 'color' => 'black'));
     } elseif ($this->hasRequestParameter('accal_id') && $this->getRequestParameter('accal_id') != '' && $this->getRequestParameter('accal_id') != null) {
         $actions = array(array('name' => 'back', 'url' => 'member/listStudent?filters[ACADEMIC_CALENDAR_ID]=' . $this->getRequestParameter('accal_id'), 'color' => 'black'));
     } elseif ($this->hasRequestParameter('year') && $this->getRequestParameter('year') != '' && $this->getRequestParameter('year') != null) {
         $actions = array(array('name' => 'back', 'url' => 'member/listStudent?filters[YEAR]=' . $this->getRequestParameter('year'), 'color' => 'black'));
     } else {
         $actions = array(array('name' => 'back', 'url' => 'member/listStudent', 'color' => 'black'));
     }
     ## Data Ayah
     $ca = new Criteria();
     $ca->add(StudentParentsPeer::STUDENT_ID, $student->getId());
     $ca->add(StudentParentsPeer::RELATION, StudentParents::RELATION_FATHER);
     $father = StudentParentsPeer::doSelectOne($ca);
     ## Data Ibu
     $cb = new Criteria();
     $cb->add(StudentParentsPeer::STUDENT_ID, $student->getId());
     $cb->add(StudentParentsPeer::RELATION, StudentParents::RELATION_MOTHER);
     $mother = StudentParentsPeer::doSelectOne($cb);
     ## Data Wali
     $cc = new Criteria();
     $cc->add(StudentParentsPeer::STUDENT_ID, $student->getId());
     $cc->add(StudentParentsPeer::RELATION, StudentParents::RELATION_GUARDIAN);
     $guardian = StudentParentsPeer::doSelectOne($cc);
     ## Prestasi Murid
     $cd = new Criteria();
     $cd->add(StudentAchievementPeer::STUDENT_ID, $student->getId());
     $achieves = StudentAchievementPeer::doSelect($cd);
     $ce = new Criteria();
     $ce->add(StudentTalentPeer::STUDENT_ID, $student->getId());
     $talents = StudentTalentPeer::doSelect($ce);
     $this->talents = $talents;
     $this->achieves = $achieves;
     $this->father = $father;
     $this->mother = $mother;
     $this->guardian = $guardian;
     $this->actions = $actions;
     $this->student = $student;
     $this->student_detail = $student->getStudentDetail();
 }