/** * Displays the count of users passed, failed, and not complete above the datatable. */ public function display_default() { $classid = $this->required_param('id', PARAM_INT); $class = new pmclass($classid); echo '<div style="display:inline-block;width:100%;margin-bottom:10px">'; $this->print_num_items($classid, $class->maxstudents); echo '</div>'; parent::display_default(); }
/** * Display the default action (assigned page) */ public function display_default() { global $OUTPUT; $id = $this->required_param('id', PARAM_INT); if ($this->can_do_autocreate() === true) { echo html_writer::start_tag('div', array('style' => 'text-align:center')); $tmppage = new trackassignmentpage(array('action' => 'autocreate', 'id' => $id)); $button = new single_button($tmppage->url, get_string('track_autocreate_button', 'local_elisprogram'), 'get'); echo $OUTPUT->render($button); echo html_writer::end_tag('div'); } parent::display_default(); }
/** * Display assigned table. */ public function display_default() { global $OUTPUT; if (false && has_capability('local/elisprogram:program_create', $this->_get_page_context())) { echo '<div align="center">'; $options = array_merge(array('s' => 'cfc', 'id' => $id, 'cfccourseid' => $id)); $button = new single_button(new moodle_url('index.php', $options), get_string('makecurcourse', 'local_elisprogram'), 'get', array('disabled' => false, 'title' => get_string('makecurcourse', 'local_elisprogram'), 'id' => '')); echo $OUTPUT->render($button); echo '</div>'; } parent::display_default(); }
/** * Display user subsets */ public function display_default() { $this->print_add_button(); parent::display_default(); }
/** * Displays the count of users passed, failed, and not complete above the datatable. */ public function display_default() { global $OUTPUT; $id = $this->required_param('id', PARAM_INT); $options = array('id' => $id, 's' => 'clstcur', 'action' => 'copycurredit'); $button = new single_button(new moodle_url('index.php', $options), get_string('userset_cpycurr', 'local_elisprogram'), 'get'); // Add a more specific CSS class. $button->class = str_replace('singlebutton', 'singlebutton clscpycurrbtn ', $button->class); echo '<div style="display:inline-block;text-align:center;width:100%;margin-bottom:25px">'; echo get_string('userset_cpycurr_instruction', 'local_elisprogram'); echo $OUTPUT->help_icon('program_copy', 'local_elisprogram'); echo $OUTPUT->render($button); echo '</div>'; parent::display_default(); }