?> </td> <td><?php echo strlen($student->getStudentId()) > 0 ? $student->getStudent()->getCode() : 'n/a'; ?> </td> <td><?php echo $student->getStudent() ? $student->getStudent()->getName() : '-'; ?> </td> <td><?php $cm = new Criteria(); $cm->add(VStudentRaportPeer::STUDENT_ACCAL_ID, $student->getId()); $cm->add(VStudentRaportPeer::SUBJECT_CURR_ID, $course_schedule->getSubjectCurrId()); $cm->add(VStudentRaportPeer::GRADE_SPEC_ID, $grade_spec->getId()); $sr1 = VStudentRaportPeer::doSelectOne($cm); echo $sr1 != null ? $sr1->getGrade() : '-'; ?> </td> </tr> <?php } ?> <?php } ?> </tbody> </table> <?php if ($pager->getNbResults() > 1) { echo include_partial('global/pager', array('position' => 'bottom', 'pager' => $pager, 'module' => 'student'));
?> <tr> <td style="vertical-align:middle;" width="35%"><label style="font-weight: normal;"> <?php echo $g2->getCode() ? $g2->getDescription() : $g2->getCode(); ?> </label></td> <td style="text-align:center; vertical-align:middle;" width="2%">:</td> <td style="vertical-align:middle;"> <p class="detail" style="font-weight: bold;"> <?php $cr = new Criteria(); $cr->add(VStudentRaportPeer::STUDENT_ACCAL_ID, $student_accal->getId()); $cr->add(VStudentRaportPeer::SUBJECT_CURR_ID, $course_schedule->getSubjectCurrId()); $cr->add(VStudentRaportPeer::GRADE_SPEC_ID, $g2->getId()); $sr2 = VStudentRaportPeer::doSelectOne($cr); echo $sr2 != null ? $sr2->getGrade() : ''; ?> </p> </td> </tr> <?php } ?> <tr> <td style="vertical-align:middle;"><label><?php echo __('Rata2 Tugas / PR'); ?> </label></td> <td style="text-align:center; vertical-align:middle;">:</td>