Пример #1
0
 public function executeShowCounseling()
 {
     $course_schedule = CourseSchedulePeer::retrieveByPk($this->getRequestParameter('course_id'));
     $this->forward404Unless($course_schedule);
     $course_schedule_id = $course_schedule->getId();
     $class_counseling = ClassCounselingPeer::retrieveByPk($this->getRequestParameter('id'));
     $this->forward404Unless($class_counseling);
     $this->subtitle = $class_counseling->toString() . ' - id:' . $class_counseling->getId();
     $actions = array(array('name' => 'back', 'url' => 'course_counseling/list?course_id=' . $course_schedule->getId(), 'color' => 'black'));
     $this->actions = $actions;
     $actions2 = array(array('name' => '<span>Riwayat Agenda Kelas</span>', 'url' => 'rpt_course/listAgenda?course_id=' . $course_schedule->getId(), 'color' => 'sun'));
     array_unshift($actions2, array('name' => '<span>Riwayat Akademik</span>', 'url' => 'rpt_course/list', 'color' => 'sun'));
     array_push($actions2, array('name' => '<span>Riwayat Absensi Kelas</span>', 'url' => 'rpt_course/listAbsence?course_id=' . $course_schedule->getId(), 'color' => 'sun'));
     array_push($actions2, array('name' => '<span>Riwayat Jadwal Tugas/Ulangan/PR</span>', 'url' => 'rpt_course/listSched?course_id=' . $course_schedule->getId(), 'color' => 'sun'));
     array_push($actions2, array('name' => '<span>Riwayat Bimbingan Konseling</span>', 'url' => 'rpt_course/listCounseling?course_id=' . $course_schedule->getId(), 'color' => 'sun', 'type' => 'direct'));
     array_push($actions2, array('name' => '<span>Riwayat Penilaian</span>', 'url' => 'rpt_course/listScore?course_id=' . $course_schedule->getId(), 'color' => 'sun'));
     $this->actions2 = $actions2;
     $this->class_counseling = $class_counseling;
     $this->course_schedule = $course_schedule;
 }
Пример #2
0
 public function executeShowCounseling()
 {
     $group_id = $this->getContext()->getUser()->getAttribute('group_id', null, 'bo');
     $c = new Criteria();
     $c->add(JobPeer::CODE, 'sm_content/listCounseling');
     $job = JobPeer::doSelectOne($c);
     $acl = AclPeer::retrieveByPK($group_id, $job->getId());
     if (!$acl) {
         $this->forward('default', 'error404');
     }
     $this->can_edit = $acl->getEditPriv() == 1;
     $this->can_remove = $acl->getRemovePriv() == 1;
     $class_counseling = ClassCounselingPeer::retrieveByPk($this->getRequestParameter('id'));
     $this->forward404Unless($class_counseling);
     $this->subtitle = $class_counseling->toString() . ' - id:' . $class_counseling->getId();
     $actions = array(array('name' => 'back', 'url' => 'sm_content/listCounseling', 'color' => 'black'));
     $this->actions = $actions;
     $actions2 = array(array('name' => '<span>Konseling Dalam Kelas</span>', 'url' => 'sm_content/listCounseling', 'color' => 'sun', 'type' => 'direct'));
     array_push($actions2, array('name' => '<span>Konseling Luar Kelas</span>', 'url' => 'sm_content/listOutclassCounseling', 'color' => 'sky'));
     $this->actions2 = $actions2;
     $this->class_counseling = $class_counseling;
 }
Пример #3
0
 public function executeReply()
 {
     $employee_id = sfContext::getInstance()->getUser()->getAttribute('user_id', null, 'bo');
     $employee = EmployeePeer::retrieveByPK($employee_id);
     $this->forward404Unless($employee);
     $class_counseling = ClassCounselingPeer::retrieveByPk($this->getRequestParameter('id'));
     $this->forward404Unless($class_counseling);
     $this->outbox_emp = new OutboxEmp();
     $this->outbox_emp = new OutboxEmp();
     $this->actions = array(array('name' => 'kirim', 'type' => 'submit', 'options' => array('class' => 'save_button', 'onclick' => "action_type.value=this.value")), array('name' => 'cancel', 'url' => 'employee_counsel/list', 'color' => 'black'));
     $this->subtitle = $employee->toString();
     $this->type = 'add';
     $this->employee_id = $employee_id;
     $this->class_counseling = $class_counseling;
     $this->student_id = $class_counseling->getStudentId();
 }
Пример #4
0
 public function executeShowCounseling()
 {
     $employee_id = sfContext::getInstance()->getUser()->getAttribute('user_id', null, 'bo');
     $employee = EmployeePeer::retrieveByPK($employee_id);
     $this->forward404Unless($employee);
     $course_schedule = CourseSchedulePeer::retrieveByPk($this->getRequestParameter('course_id'));
     $this->forward404Unless($course_schedule);
     $course_schedule_id = $course_schedule->getId();
     $class_counseling = ClassCounselingPeer::retrieveByPk($this->getRequestParameter('id'));
     $this->forward404Unless($class_counseling);
     $this->subtitle = $class_counseling->toString() . ' - id:' . $class_counseling->getId();
     $actions = array(array('name' => 'back', 'url' => 'course_counseling/list?course_id=' . $course_schedule->getId(), 'color' => 'black'));
     $this->actions = $actions;
     $actions2 = array(array('name' => '<span>Riwayat Agenda Kelas</span>', 'url' => 'course_history/listAgenda?course_id=' . $course_schedule->getId(), 'color' => 'sun'));
     array_unshift($actions2, array('name' => '<span>Riwayat Akademik</span>', 'url' => 'course_history/list', 'color' => 'sun'));
     array_push($actions2, array('name' => '<span>Riwayat Absensi Kelas</span>', 'url' => 'course_history/listAbsence?course_id=' . $course_schedule->getId(), 'color' => 'sun'));
     array_push($actions2, array('name' => '<span>Riwayat Jadwal Tugas/Ulangan/PR</span>', 'url' => 'course_history/listSched?course_id=' . $course_schedule->getId(), 'color' => 'sun'));
     array_push($actions2, array('name' => '<span>Riwayat Bimbingan Konseling</span>', 'url' => 'course_history/listCounseling?course_id=' . $course_schedule->getId(), 'color' => 'sun', 'type' => 'direct'));
     $this->actions2 = $actions2;
     $this->class_counseling = $class_counseling;
     $this->course_schedule = $course_schedule;
 }