12345678910111213141516171819202122232425262728293031323334353637383940 |
- <?php
- class VacationHomeworkController extends Controller{
- public function actionClasses(){
- $classId = Req::get("classId");
- if($classId)
- $rs = $this->schoolManager->getClassVacationHomeworkList($classId);
- else
- $rs = $this->schoolManager->getClassesVacationHomeworkList();
-
- $classes = $this->schoolManager->getClasses();
-
- $this->render("classeshomework", array(
- "printType" => "vh",
- "rs" => $rs["rs"],
- "pager" => $rs["pager"],
- "classes" => $classes,
- "classId" => $classId,
- ));
- }
-
- public function actionStudents(){
- $classId = Req::get("classId");
- $studentName = Req::get("sname");
- if($classId)
- $rs = $this->schoolManager->getClassVhStudents($classId,$studentName);
- else
- $rs = $this->schoolManager->buildEmptyPagingStruct();
-
- $this->render("studentshomework", array(
- "class_id" => $classId,
- "sname" => $studentName,
- "printType" => "vh",
- "classId" => $classId,
- "rs" => $rs["rs"],
- "pager" => $rs["pager"],
- ));
- }
- }
|