Esempio n. 1
0
 public function executeSelectByDept()
 {
     $dept_id = $this->getRequestParameter('department_id');
     $this->forward404Unless($dept_id);
     $content = array();
     $disabled = array();
     $c = new Criteria();
     $c->add(VClassGroupPeer::DEPARTMENT_ID, $dept_id, Criteria::IN);
     $tmp_depts = VClassGroupPeer::doSelect($c);
     $depts = array();
     foreach ($tmp_depts as $key => $val) {
         $pi = $val->getParentalIndex();
         $prefix = '';
         for ($i = 0; $i < $val->level - 1; $i++) {
             $prefix .= ParamsPeer::retrieveByCode('tree_node_mark')->getValue();
         }
         $val->setName($prefix . $val->getName());
         $val->setCode($prefix . $val->getCode());
         $depts[$pi] = $val;
     }
     ksort($depts);
     $result = array();
     foreach ($depts as $r) {
         $result[$r->getId()] = $r->toString();
     }
     $this->content = $result;
     $this->disabled = $disabled;
 }
Esempio n. 2
0
 public function getParentName()
 {
     if ($this->getParent() != null && $this->getParent() != 0) {
         return VClassGroupPeer::retrieveByPk($this->getParent())->getName();
     }
     return '-';
 }
Esempio n. 3
0
 public function executeGetClassGroup()
 {
     $departmentId = $this->getRequestParameter('department');
     if (empty($departmentId)) {
         $this->jsonwrapper->show_json_error('missing param', 'Missing parameter department');
     }
     /* get class group */
     $c = new Criteria();
     $c->add(VClassGroupPeer::DEPARTMENT_ID, $departmentId, Criteria::EQUAL);
     $c->addAscendingOrderByColumn(VClassGroupPeer::PARENT);
     $classes = VClassGroupPeer::doSelect($c);
     /* mapping class group */
     $classesArray = array();
     foreach ($classes as $class) {
         $classesArray[$class->getParent()][] = $class->toArray();
     }
     $output = array('success' => true, 'data' => $classesArray);
     $this->jsonwrapper->print_json($output);
 }
Esempio n. 4
0
        ?>
								<?php 
        if ($can_remove) {
            echo link_to_remote(__('delete'), array('url' => 'absence/delete?id=' . $student_absence->getId(), 'confirm' => __('Are you sure?'), 'update' => 'content', 'script' => 'true', 'before' => "this.blur();showIndicator('content', 'snakebig_black');", 'complete' => "hideIndicator()"), array('class' => 'red', 'style' => 'font-size:10px;'));
        }
        ?>
							</p>
						</td>
                        <td><?php 
        echo $student_absence->getStudent() ? $student_absence->getStudent()->getName() : '-';
        ?>
</td>
                        <td>
                        <?php 
        if ($student_absence->getClassGroup() != null) {
            echo VClassGroupPeer::retrieveByPK($student_absence->getClassGroup()->getParent())->getParentName();
        } else {
            echo '-';
        }
        ?>
                        </td>
                        <td><?php 
        echo $student_absence->getClassGroup() ? $student_absence->getClassGroup()->toString() : '-';
        ?>
</td>
						<td><?php 
        echo $student_absence->getAcademicCalendar() ? $student_absence->getAcademicCalendar()->toString() : '-';
        ?>
</td>
                        <td><?php 
        if ($student_absence->getStatus() == StudentAbsence::STATUS_SICK) {
Esempio n. 5
0
 public function getVClassGroupsRelatedByParentJoinDepartment($criteria = null, $con = null)
 {
     include_once 'lib/model/om/BaseVClassGroupPeer.php';
     if ($criteria === null) {
         $criteria = new Criteria();
     } elseif ($criteria instanceof Criteria) {
         $criteria = clone $criteria;
     }
     if ($this->collVClassGroupsRelatedByParent === null) {
         if ($this->isNew()) {
             $this->collVClassGroupsRelatedByParent = array();
         } else {
             $criteria->add(VClassGroupPeer::PARENT, $this->getId());
             $this->collVClassGroupsRelatedByParent = VClassGroupPeer::doSelectJoinDepartment($criteria, $con);
         }
     } else {
         $criteria->add(VClassGroupPeer::PARENT, $this->getId());
         if (!isset($this->lastVClassGroupRelatedByParentCriteria) || !$this->lastVClassGroupRelatedByParentCriteria->equals($criteria)) {
             $this->collVClassGroupsRelatedByParent = VClassGroupPeer::doSelectJoinDepartment($criteria, $con);
         }
     }
     $this->lastVClassGroupRelatedByParentCriteria = $criteria;
     return $this->collVClassGroupsRelatedByParent;
 }
Esempio n. 6
0
        ?>
								<?php 
        if ($can_remove) {
            echo link_to_remote(__('delete'), array('url' => 'internship/delete?id=' . $student_job_history->getId(), 'confirm' => __('Are you sure?'), 'update' => 'content', 'script' => 'true', 'before' => "this.blur();showIndicator('content', 'snakebig_black');", 'complete' => "hideIndicator()"), array('class' => 'red'));
        }
        ?>
							</p>
						</td>
                        <td><?php 
        echo $student_job_history->getStudent() ? $student_job_history->getStudent()->getName() : '-';
        ?>
</td>
                        <td>
                        <?php 
        if ($student_job_history->getStudent()->getClassGroup() != null) {
            echo VClassGroupPeer::retrieveByPK($student_job_history->getStudent()->getClassGroup()->getParent())->getParentName();
        } else {
            echo '-';
        }
        ?>
                        </td>
                        <td><?php 
        echo $student_job_history->getStudent()->getClassGroup() ? $student_job_history->getStudent()->getClassGroup()->toString() : '-';
        ?>
</td>
						<td><?php 
        echo $student_job_history->getAcademicCalendar() ? $student_job_history->getAcademicCalendar()->toString() : '-';
        ?>
</td>
						<td><?php 
        echo $student_job_history->getInstance() ? link_to_remote($student_job_history->getInstance()->toString(), array('url' => 'instance/show?id=' . $student_job_history->getInstanceId(), 'update' => 'content', 'script' => 'true', 'before' => "this.blur();showIndicator('content', 'snakebig_black');", 'complete' => "hideIndicator()"), array('class' => 'white')) : '-';
Esempio n. 7
0
 public function executeEdit()
 {
     $group_id = $this->getContext()->getUser()->getAttribute('group_id', null, 'bo');
     $c = new Criteria();
     $c->add(JobPeer::CODE, $this->getModuleName());
     $job = JobPeer::doSelectOne($c);
     $acl = AclPeer::retrieveByPK($group_id, $job->getId());
     if (!$acl) {
         $this->forward('default', 'error404');
     }
     $this->ng_test_applicant = NgTestApplicantPeer::retrieveByPk($this->getRequestParameter('id'));
     $this->forward404Unless($this->ng_test_applicant);
     $actions = array(array('name' => 'save', 'type' => 'submit', 'options' => array('class' => 'save_button', 'onclick' => "action_type.value=this.value")));
     if ($acl->getRemovePriv()) {
         array_push($actions, array('name' => 'delete', 'url' => 'ng_test_applicant/delete?id=' . $this->ng_test_applicant->getId(), 'color' => 'red'));
     }
     array_push($actions, array('name' => 'cancel', 'url' => 'ng_test_applicant/list', 'color' => 'black'));
     $cw = new Criteria();
     $cw->add(VClassGroupPeer::DEPARTMENT_ID, $this->ng_test_applicant->getDepartmentId());
     $objs = VClassGroupPeer::doSelect($cw);
     ksort($objs);
     $class_groups = array();
     foreach ($objs as $r) {
         $class_groups[$r->getId()] = $r->toString();
     }
     $this->class_groups = $class_groups;
     $this->selected_class_group = $this->ng_test_applicant->getId();
     $cwt = new Criteria();
     $cwt->add(AcademicCalendarPeer::DEPARTMENT_ID, $this->ng_test_applicant->getDepartmentId());
     $cwt->addJoin(NgRegPeriodPeer::ACADEMIC_CALENDAR_ID, AcademicCalendarPeer::ID);
     $cwt->add(NgRegPeriodPeer::STATUS, NgRegPeriod::OPEN);
     $nrps = NgRegPeriodPeer::doSelect($cwt);
     $periods = array();
     foreach ($nrps as $s) {
         $periods[$s->getId()] = $s->toString();
     }
     $this->ng_reg_periods = $periods;
     $this->selected_reg_periods = $this->ng_test_applicant->getNgRegTestPeriod()->getNgRegPeriod();
     $this->subtitle = $this->ng_test_applicant->getName() . ' - id:' . $this->ng_test_applicant->getId();
     $this->type = 'edit';
     $this->actions = $actions;
     $this->tab_attr_tmpl = $this->getContext()->getModuleDirectory() . "/templates/tmplTabSuccess.php";
     if ($this->ng_test_applicant->getNgStatusApplicant()->getTypeStatus() != NgStatusApplicant::ONLINE) {
         $this->tipe = 'applicant';
         $actions2 = array(array('name' => 'TestApplicant', 'url' => 'ng_test_applicant/list', 'color' => 'sky'));
         array_push($actions2, array('name' => 'Identity Detail', 'url' => 'ng_test_applicant/edit?id=' . $this->ng_test_applicant->getId(), 'color' => 'sun', 'type' => 'direct'));
         array_push($actions2, array('name' => 'Education Detail', 'url' => 'ng_test_applicant/education?id=' . $this->ng_test_applicant->getId(), 'color' => 'sky'));
         array_push($actions2, array('name' => 'Parents Detail', 'url' => 'ng_test_applicant/parent?id=' . $this->ng_test_applicant->getId(), 'color' => 'sky'));
         array_push($actions2, array('name' => 'Home Detail', 'url' => 'ng_test_applicant/home?id=' . $this->ng_test_applicant->getId(), 'color' => 'sky'));
         array_push($actions2, array('name' => 'Medical Detail', 'url' => 'ng_test_applicant/medical?id=' . $this->ng_test_applicant->getId(), 'color' => 'sky'));
         array_push($actions2, array('name' => 'Talent Detail', 'url' => 'ng_test_applicant/talent?id=' . $this->ng_test_applicant->getId(), 'color' => 'sky'));
         array_push($actions2, array('name' => 'Achievement Detail', 'url' => 'ng_test_applicant/achievement?id=' . $this->ng_test_applicant->getId(), 'color' => 'sky'));
         $this->actions2 = $actions2;
     } else {
         $this->tipe = 'animo';
         $actions2 = array(array('name' => 'TestApplicant', 'url' => 'ng_test_applicant/list', 'color' => 'sky'));
         array_push($actions2, array('name' => 'Identity Detail', 'url' => 'ng_test_applicant/edit?id=' . $this->ng_test_applicant->getId(), 'color' => 'sun', 'type' => 'direct'));
         $this->actions2 = $actions2;
     }
 }
Esempio n. 8
0
?>
</label><br/>
					<p class="detail"><?php 
echo $class_course->getAcademicCalendarId() ? $class_course->getAcademicCalendar()->getName() : '-';
?>
</p>
				</td></tr>
				<tr><td >
					<label><?php 
echo __('ClassGroup');
?>
</label><br/>
					<p class="detail">
					<?php 
if ($class_course->getClassGroup() != null) {
    echo VClassGroupPeer::retrieveByPK($class_course->getClassGroup()->getParent())->getParentName();
} else {
    echo '-';
}
?>
                    
                    </p>
				</td></tr>
                <tr><td>
					<label><?php 
echo __('Class group');
?>
</label><br/>
					<p class="detail"><?php 
echo $class_course->getClassGroup() ? $class_course->getClassGroup->toString() : '-';
?>
Esempio n. 9
0
 public function executeGetListForCounseling2()
 {
     $group_id = $this->getContext()->getUser()->getAttribute('group_id', null, 'bo');
     $c = new Criteria();
     $c->add(JobPeer::CODE, $this->getModuleName());
     $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;
     $c = new Criteria();
     $dept = $this->getContext()->getUser()->getAttribute('department', null, 'bo');
     $c->add(AcademicCalendarPeer::DEPARTMENT_ID, $dept->getChildRecurs(), Criteria::IN);
     $c->addJoin(VStudentClassPeer::ACADEMIC_CALENDAR_ID, AcademicCalendarPeer::ID);
     $class_id = $this->getRequestParameter('class_id');
     $class = ClassGroupPeer::retrieveByPk($class_id);
     $class_group = VClassGroupPeer::retrieveByPk($class_id);
     if ($class) {
         $cton1 = $c->getNewCriterion(VStudentClassPeer::CLASS_GROUP_ID, $class, Criteria::IN);
         $cton2 = $c->getNewCriterion(VStudentClassPeer::CLASS_PARENT, $class, Criteria::IN);
         $cton1->addOr($cton2);
         $c->add($cton1);
         #$c->add(VStudentClassPeer::CLASS_GROUP_ID, $class, Criteria::IN);
         #$c->add(StudentPeer::CLASS_GROUP_ID, $class->getId(), Criteria::IN);
     } elseif ($class_group) {
         #$cton1 = $c->getNewCriterion(VStudentClassPeer::CLASS_GROUP_ID, $class_group, Criteria::IN);
         #$cton2 = $c->getNewCriterion(VStudentClassPeer::CLASS_PARENT, $class_group, Criteria::IN);
         #$cton1->addOr($cton2);
         #$c->add($cton1);
         $c->add(VStudentClassPeer::CLASS_PARENT, $class_group, Criteria::IN);
     } else {
         #$c->add(StudentPeer::ACADEMIC_CALENDAR_ID, -1);
         $c->add(VStudentClassPeer::ACADEMIC_CALENDAR_ID, -1);
     }
     // filter out graduated student
     $c->add(VStudentClassPeer::STATUS, Student::STATUS_GRADUATE, Criteria::NOT_EQUAL);
     $this->sortStudent($c);
     if ($this->getRequest()->hasParameter('filters')) {
         $filters = $this->getRequestParameter('filters');
         if ($filters == 'clear') {
             $this->filters = null;
         } else {
             $defined_filter = false;
             foreach ($filters as $f) {
                 if (is_array($f)) {
                     if (strlen($f['from']) > 0 || strlen($f['to']) > 0) {
                         $defined_filter = true;
                         break;
                     }
                 } else {
                     if ($f != null && $f != '') {
                         $defined_filter = true;
                         break;
                     }
                 }
             }
             if ($defined_filter) {
                 $this->filters = $filters;
                 $this->filter($c, $this->getRequestParameter('filters'));
             }
         }
     }
     $rpp = $this->getRequestParameter('max_per_page', $this->getUser()->getAttribute('max_per_page', ParamsPeer::retrieveByCode('row_per_page')->getValue(), 'v_student_class'));
     $this->getUser()->setAttribute('max_per_page', $rpp, 'v_student_class');
     $pager = new sfPropelPager('VStudentClass', $rpp);
     $pager->setCriteria($c);
     $page = $this->getRequestParameter('page', $this->getUser()->getAttribute('page', 1, 'v_student_class'));
     $this->getUser()->setAttribute('page', $page, 'v_student_class');
     $pager->setPage($page);
     $pager->init();
     $this->pager = $pager;
     #$actions = array(array('name'=>'filter','color'=>'white'),);
     #if ($acl->getAddPriv()) array_unshift($actions, array('name'=>'add','url'=>'student/create', 'color'=>'green'));
     $actions = array(array('name' => 'filter', 'color' => 'white'));
     $filter_string = "";
     if ($this->filters) {
         foreach ($this->filters as $key => $val) {
             $filter_string .= "&filters[{$key}]={$val}";
         }
         $filter_string = preg_replace('/^&/', '', $filter_string);
     }
     $this->actions = $actions;
     $this->class_id = $class_id;
 }
Esempio n. 10
0
        echo link_to_remote(__('detail'), array('url' => 'history_spp/show?id=' . $payment_history->getId(), 'update' => 'content', 'script' => 'true', 'before' => "this.blur();showIndicator('content', 'snakebig_black');", 'complete' => "hideIndicator()"), array('class' => 'green', 'style' => 'font-size:10px;'));
        ?>
						<?php 
        if ($can_remove) {
            echo link_to_remote(__('delete'), array('url' => 'history_spp/delete?id=' . $payment_history->getId(), 'confirm' => __('Are you sure?'), 'update' => 'content', 'script' => 'true', 'before' => "this.blur();showIndicator('content', 'snakebig_black');", 'complete' => "hideIndicator()"), array('class' => 'red', 'style' => 'font-size:10px;'));
        }
        ?>
						</p>
						</td>
						<td><?php 
        echo $payment_history->getStudent() ? $payment_history->getStudent()->getName() : '-';
        ?>
</td>
                        <td><?php 
        if (VClassGroupPeer::retrieveByPK($payment_history->getStudent()->getClassGroup()->getParent())->getParent() != 34) {
            echo '<b>' . $payment_history->getStudent()->getClassGroup()->toString() . '</b> (' . VClassGroupPeer::retrieveByPK($payment_history->getStudent()->getClassGroup()->getParent())->getParentName() . ') ';
        } else {
            echo '<b>' . $payment_history->getStudent()->getClassGroup()->toString() . '</b> (' . $payment_history->getStudent()->getClassGroup()->getParentName() . ') ';
        }
        ?>
</td>
						<td><?php 
        echo $payment_history->getAcademicCalendar() ? $payment_history->getAcademicCalendar()->getName() : '-';
        ?>
</td>
                        <td><?php 
        echo $payment_history->getAcademicCalendar() ? $payment_history->getAcademicCalendar()->getDepartment()->toString() : '-';
        ?>
</td>
						<td><?php 
        echo $payment_history->getUser() ? $payment_history->getUser()->getLogin() : '-';
Esempio n. 11
0
							<p id="row_<?php 
        echo $course_schedule->getId();
        ?>
" style="display:none;">.
								<?php 
        echo link_to_remote(__('detail'), array('url' => 'subject_plan/showSubject?id=' . $course_schedule->getId() . '&class_id=' . $course_schedule->getClassGroupId() . '&accal_id=' . $course_schedule->getSubjectAccal()->getAcademicCalendarId(), 'update' => 'content', 'script' => 'true', 'before' => "this.blur();showIndicator('content', 'snakebig_black');", 'complete' => "hideIndicator()"), array('class' => 'green', 'style' => 'font-size:10px;'));
        ?>
							</p>
						</td>
                        <td><?php 
        echo $course_schedule->getSubjectAccal() ? $course_schedule->getSubjectAccal()->getAcademicCalendar()->getCurriculum()->toString() : '-';
        ?>
</td>
						<td><?php 
        if ($course_schedule->getClassGroup() != null) {
            echo VClassGroupPeer::retrieveByPK($course_schedule->getClassGroup()->getParent())->getParentName();
        } else {
            echo '-';
        }
        ?>
						</td>
                        <td><?php 
        echo $course_schedule->getClassGroup() ? $course_schedule->getClassGroup()->toString() : '-';
        ?>
</td>
						<td><?php 
        echo $course_schedule->getSubjectAccal() ? $course_schedule->getSubjectAccal()->getSubject()->toName() : '-';
        ?>
</td>
						<td><?php 
        echo $course_schedule->getEmployee() ? $course_schedule->getEmployee()->getName() : '-';
Esempio n. 12
0
            echo __('Agustus');
        } elseif ($payment_status->getMonth() == '9') {
            echo __('September');
        } elseif ($payment_status->getMonth() == '10') {
            echo __('Oktober');
        } elseif ($payment_status->getMonth() == '11') {
            echo __('November');
        } elseif ($payment_status->getMonth() == '12') {
            echo __('Desember');
        }
        ?>
</td>    
                                   
                        			<td style="font-weight: bold;"><?php 
        if (VClassGroupPeer::retrieveByPK($payment_status->getClassGroup()->getParent())->getParent() != 34) {
            echo $payment_status->getClassGroup() ? $payment_status->getClassGroup()->toString() . ' - ' . VClassGroupPeer::retrieveByPK($payment_status->getClassGroup()->getParent())->getParentName() : '-';
        } else {
            echo $payment_status->getClassGroup() ? $payment_status->getClassGroup()->toString() . ' - ' . $payment_status->getClassGroup()->getParentName() : '-';
        }
        ?>
						</td>
                        
                        			<td style="text-align: center;"><?php 
        $cw = new Criteria();
        $cw->add(AcademicCalendarPeer::COURSE_MODEL, 'A');
        $cw->add(AcademicCalendarPeer::PARENT, $payment_status->getAcademicCalendarId());
        $cw->addJoin(StudentAccalPeer::ACADEMIC_CALENDAR_ID, AcademicCalendarPeer::ID);
        $cw->add(StudentAccalPeer::CLASS_GROUP_ID, $payment_status->getClassGroupId());
        $total_student = StudentAccalPeer::doCount($cw);
        echo $total_student ? link_to_remote($total_student, array('url' => 'history_spp/listStudent?class_group_id=' . $payment_status->getClassGroupId() . '&accal_id=' . $payment_status->getAcademicCalendarId() . '&user_id=' . $payment_status->getUserId() . '&month=' . $payment_status->getMonth(), 'update' => 'content', 'script' => 'true', 'before' => "this.blur();showIndicator('content', 'snakebig_black');", 'complete' => "hideIndicator()"), array('class' => 'white')) : '-';
        ?>
Esempio n. 13
0
 public static function doSelectByDept($dept)
 {
     $criteria->add(VClassGroupPeer::DEPARTMENT_ID, $dept, Criteria::IN);
     $tmp_depts = VClassGroupPeer::doSelect($criteria);
     $depts = array();
     foreach ($tmp_depts as $key => $val) {
         $pi = $val->getParentalIndex();
         $prefix = '';
         for ($i = 0; $i < $val->level - 1; $i++) {
             $prefix .= ParamsPeer::retrieveByCode('tree_node_mark')->getValue();
         }
         $val->setName($prefix . $val->getName());
         $val->setCode($prefix . $val->getCode());
         $depts[$pi] = $val;
     }
     ksort($depts);
     $result = array();
     foreach ($depts as $r) {
         $result[] = $r;
     }
     return $result;
 }
Esempio n. 14
0
 public function executeSelectClassByAccal()
 {
     $accal_id = $this->getRequestParameter('accal_id');
     $accal = AcademicCalendarPeer::retrieveByPK($accal_id);
     $content = array();
     $c = new Criteria();
     $c->add(VClassGroupPeer::DEPARTMENT_ID, $accal->getDepartmentId());
     $objs = VClassGroupPeer::doSelect($c);
     foreach ($objs as $key => $val) {
         $pi = $val->getParentalIndex();
         $prefix = '';
         for ($i = 0; $i < $val->level - 1; $i++) {
             $prefix .= ParamsPeer::retrieveByCode('tree_node_mark')->getValue();
         }
         $val->setName($prefix . $val->getName());
         $val->setCode($prefix . $val->getCode());
         $objs[$pi] = $val;
     }
     ksort($objs);
     $content = array();
     foreach ($objs as $r) {
         $content[$r->getId()] = $r->toString();
     }
     $this->content = $content;
     $this->disabled = $disabled;
 }
Esempio n. 15
0
        }
        ?>
">
					<td><?php 
        echo $i + ($pager->getPage() - 1) * $pager->getMaxPerPage();
        ?>
</td>
					<td class='first'>
					<?php 
        echo $counseling->getAcademicCalendar() ? link_to_remote($counseling->getAcademicCalendar()->getName(), array('url' => 'counseling_menu/showByEmployee?id=' . $counseling->getId() . '&employee_id=' . $employee_id, 'update' => 'content', 'script' => 'true', 'before' => "this.blur();showIndicator('content', 'snakebig_black');", 'complete' => "hideIndicator()"), array('class' => 'white')) : '-';
        ?>
					</td>
                                  
                    			<td>
					<?php 
        echo $counseling->getClassGroup() ? '<b>' . $counseling->getClassGroup()->toString() . ' (' . VClassGroupPeer::retrieveByPK($counseling->getClassGroup()->getParent())->getParentName() . ')</b>' : '-';
        ?>
</td>

                    			<td class="first"><b>
                    			<?php 
        $counselings = CounselingPeer::retrieveByPK($counseling->getId());
        $tutors = array();
        foreach ($counselings->getCounselingTutors() as $cr) {
            $tutors[] = $cr->getEmployee() ? '&middot; ' . $cr->getEmployee()->getName() : '-';
        }
        echo join("<br>", $tutors);
        ?>
</b></td>
                    
                    			<td>
Esempio n. 16
0
 public static function retrieveByPKs($pks, $con = null)
 {
     if ($con === null) {
         $con = Propel::getConnection(self::DATABASE_NAME);
     }
     $objs = null;
     if (empty($pks)) {
         $objs = array();
     } else {
         $criteria = new Criteria();
         $criteria->add(VClassGroupPeer::ID, $pks, Criteria::IN);
         $objs = VClassGroupPeer::doSelect($criteria, $con);
     }
     return $objs;
 }
Esempio n. 17
0
?>
"
<?php 
$i = 0;
foreach ($pager->getResults() as $counseling) {
    ++$i;
    ?>
"<?php 
    echo $i + ($pager->getPage() - 1) * $pager->getMaxPerPage();
    ?>
","<?php 
    echo $counseling->getAcademicCalendarId() ? $counseling->getAcademicCalendar()->getDepartment()->toString() : '-';
    ?>
","<?php 
    if ($counseling->getClassGroup() != null) {
        echo VClassGroupPeer::retrieveByPK($counseling->getClassGroup()->getParent())->getParentName();
    } else {
        echo '-';
    }
    ?>
","<?php 
    echo $counseling->getClassGroup() ? $counseling->getClassGroup()->toString() : '-';
    ?>
","<?php 
    echo $counseling->getAcademicCalendarId() ? $counseling->getAcademicCalendar()->toString() : '-';
    ?>
","<?php 
    $counselings = CounselingPeer::retrieveByPK($counseling->getId());
    $tutors = array();
    foreach ($counselings->getCounselingTutors() as $cr) {
        $tutors[] = $cr->getEmployee() ? '&middot; ' . $cr->getEmployee()->getName() : '-';
Esempio n. 18
0
        }
        ?>
">
						<td><?php 
        echo $i + ($pager->getPage() - 1) * $pager->getMaxPerPage();
        ?>
</td>
						<td class='first'>
                        <?php 
        echo $payment_history->getAcademicCalendar() ? link_to_remote($payment_history->getAcademicCalendar()->getName(), array('url' => 'history_spp/listDetail?class_group_id=' . $payment_history->getClassGroupId() . '&user_id=' . $payment_history->getUserId() . '&paid_at=' . $payment_history->getPaidAt() . '&paid=' . $payment_history->getPaid() . '&accal_id=' . $payment_history->getAcademicCalendarId(), 'update' => 'content', 'script' => 'true', 'before' => "this.blur();showIndicator('content', 'snakebig_black');", 'complete' => "hideIndicator()"), array('class' => 'white')) : '-';
        ?>
</td>
                                   
                        <td><?php 
        if (VClassGroupPeer::retrieveByPK($payment_history->getClassGroup()->getParent())->getParent() != 34) {
            echo $payment_history->getClassGroup() ? link_to_remote($payment_history->getClassGroup()->toString() . ' - ' . VClassGroupPeer::retrieveByPK($payment_history->getClassGroup()->getParent())->getParentName(), array('url' => 'history_spp/listDetail?class_group_id=' . $payment_history->getClassGroupId() . '&user_id=' . $payment_history->getUserId() . '&paid_at=' . $payment_history->getPaidAt() . '&paid=' . $payment_history->getPaid() . '&accal_id=' . $payment_history->getAcademicCalendarId(), 'update' => 'content', 'script' => 'true', 'before' => "this.blur();showIndicator('content', 'snakebig_black');", 'complete' => "hideIndicator()"), array('class' => 'white')) : '-';
        } else {
            echo $payment_history->getClassGroup() ? link_to_remote($payment_history->getClassGroup()->toString() . ' - ' . $payment_history->getClassGroup()->getParentName(), array('url' => 'history_spp/listDetail?class_group_id=' . $payment_history->getClassGroupId() . '&user_id=' . $payment_history->getUserId() . '&paid_at=' . $payment_history->getPaidAt() . '&paid=' . $payment_history->getPaid() . '&accal_id=' . $payment_history->getAcademicCalendarId(), 'update' => 'content', 'script' => 'true', 'before' => "this.blur();showIndicator('content', 'snakebig_black');", 'complete' => "hideIndicator()"), array('class' => 'white')) : '-';
        }
        ?>
			</td>
                                   
			<td>
			<?php 
        echo $payment_history->getStudentCount() ? link_to_remote($payment_history->getStudentCount(), array('url' => 'history_spp/listDetail?class_group_id=' . $payment_history->getClassGroupId() . '&user_id=' . $payment_history->getUserId() . '&paid_at=' . $payment_history->getPaidAt() . '&paid=' . $payment_history->getPaid() . '&accal_id=' . $payment_history->getAcademicCalendarId(), 'update' => 'content', 'script' => 'true', 'before' => "this.blur();showIndicator('content', 'snakebig_black');", 'complete' => "hideIndicator()"), array('class' => 'white')) : '-';
        ?>
</td>
                                   
                        <td><?php 
        echo $payment_history->getAcademicCalendar() ? $payment_history->getAcademicCalendar()->getDepartment()->toString() : '-';
        ?>