예제 #1
0
 public function getParentalIndex()
 {
     $parentalIndex = "#" . str_pad($this->getId(), 3, '0', STR_PAD_LEFT);
     $this->level = 1;
     if ($this->getParent() !== null && $this->getParent() != 0) {
         $p = VClassGroupPeer::retrieveByPK($this->getParent());
         $parentalIndex = str_pad($p->getParentalIndex(), 3, '0', STR_PAD_LEFT) . "_" . $parentalIndex;
         $this->level += $p->level;
     }
     $this->parentalIndex = $parentalIndex;
     return $parentalIndex;
 }
예제 #2
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() : '-';
예제 #3
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>
예제 #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) {
예제 #5
0
 public function getVClassGroupRelatedByParent($con = null)
 {
     include_once 'lib/model/om/BaseVClassGroupPeer.php';
     if ($this->aVClassGroupRelatedByParent === null && $this->parent !== null) {
         $this->aVClassGroupRelatedByParent = VClassGroupPeer::retrieveByPK($this->parent, $con);
     }
     return $this->aVClassGroupRelatedByParent;
 }
예제 #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')) : '-';
예제 #7
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() : '-';
?>
예제 #8
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() : '-';
예제 #9
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() : '-';
예제 #10
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')) : '-';
        ?>
예제 #11
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() : '-';
        ?>