VacationhomeworkController.php 993 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. class VacationHomeworkController extends Controller{
  3. public function actionClasses(){
  4. $classId = Req::get("classId");
  5. if($classId)
  6. $rs = $this->schoolManager->getClassVacationHomeworkList($classId);
  7. else
  8. $rs = $this->schoolManager->getClassesVacationHomeworkList();
  9. $classes = $this->schoolManager->getClasses();
  10. $this->render("classeshomework", array(
  11. "printType" => "vh",
  12. "rs" => $rs["rs"],
  13. "pager" => $rs["pager"],
  14. "classes" => $classes,
  15. "classId" => $classId,
  16. ));
  17. }
  18. public function actionStudents(){
  19. $classId = Req::get("classId");
  20. $studentName = Req::get("sname");
  21. if($classId)
  22. $rs = $this->schoolManager->getClassVhStudents($classId,$studentName);
  23. else
  24. $rs = $this->schoolManager->buildEmptyPagingStruct();
  25. $this->render("studentshomework", array(
  26. "class_id" => $classId,
  27. "sname" => $studentName,
  28. "printType" => "vh",
  29. "classId" => $classId,
  30. "rs" => $rs["rs"],
  31. "pager" => $rs["pager"],
  32. ));
  33. }
  34. }