?> </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'));
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(VStudentRaportPeer::ID, $pks, Criteria::IN); $objs = VStudentRaportPeer::doSelect($criteria, $con); } return $objs; }
?> <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>
public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME) { $keys = VStudentRaportPeer::getFieldNames($keyType); if (array_key_exists($keys[0], $arr)) { $this->setId($arr[$keys[0]]); } if (array_key_exists($keys[1], $arr)) { $this->setStudentId($arr[$keys[1]]); } if (array_key_exists($keys[2], $arr)) { $this->setStudentAccalId($arr[$keys[2]]); } if (array_key_exists($keys[3], $arr)) { $this->setStudentCourseId($arr[$keys[3]]); } if (array_key_exists($keys[4], $arr)) { $this->setGradeComponentId($arr[$keys[4]]); } if (array_key_exists($keys[5], $arr)) { $this->setGradeSpecId($arr[$keys[5]]); } if (array_key_exists($keys[6], $arr)) { $this->setGrade($arr[$keys[6]]); } if (array_key_exists($keys[7], $arr)) { $this->setKkm($arr[$keys[7]]); } if (array_key_exists($keys[8], $arr)) { $this->setCitationId($arr[$keys[8]]); } if (array_key_exists($keys[9], $arr)) { $this->setRemark($arr[$keys[9]]); } if (array_key_exists($keys[10], $arr)) { $this->setSubjectCurrId($arr[$keys[10]]); } if (array_key_exists($keys[11], $arr)) { $this->setClassGroupId($arr[$keys[11]]); } if (array_key_exists($keys[12], $arr)) { $this->setAcademicCalendarId($arr[$keys[12]]); } if (array_key_exists($keys[13], $arr)) { $this->setScheduleId($arr[$keys[13]]); } if (array_key_exists($keys[14], $arr)) { $this->setScheduleDetailId($arr[$keys[14]]); } }
public function getVStudentRaportsJoinScheduleDetail($criteria = null, $con = null) { include_once 'lib/model/om/BaseVStudentRaportPeer.php'; if ($criteria === null) { $criteria = new Criteria(); } elseif ($criteria instanceof Criteria) { $criteria = clone $criteria; } if ($this->collVStudentRaports === null) { if ($this->isNew()) { $this->collVStudentRaports = array(); } else { $criteria->add(VStudentRaportPeer::STUDENT_ACCAL_ID, $this->getId()); $this->collVStudentRaports = VStudentRaportPeer::doSelectJoinScheduleDetail($criteria, $con); } } else { $criteria->add(VStudentRaportPeer::STUDENT_ACCAL_ID, $this->getId()); if (!isset($this->lastVStudentRaportCriteria) || !$this->lastVStudentRaportCriteria->equals($criteria)) { $this->collVStudentRaports = VStudentRaportPeer::doSelectJoinScheduleDetail($criteria, $con); } } $this->lastVStudentRaportCriteria = $criteria; return $this->collVStudentRaports; }