Exemplo n.º 1
0
 function print_add_form($cmclass)
 {
     $type = $this->optional_param('stype', '', PARAM_ALPHA);
     $sort = $this->optional_param('sort', 'name', PARAM_ALPHANUM);
     $dir = $this->optional_param('dir', 'ASC', PARAM_ALPHA);
     $page = $this->optional_param('page', 0, PARAM_INT);
     $perpage = $this->optional_param('perpage', 30, PARAM_INT);
     // how many per page
     $namesearch = trim($this->optional_param('search', '', PARAM_TEXT));
     $alpha = $this->optional_param('alpha', '', PARAM_ALPHA);
     $newstu = new student();
     $newstu->classid = $cmclass->id;
     echo $newstu->edit_form_html($cmclass->id, $type, $sort, $dir, $page, $perpage, $namesearch, $alpha);
 }