$PAGE->set_heading(format_string(get_string('wiziq_content', 'wiziq'))); $PAGE->set_context($coursecontext); $PAGE->set_pagelayout('incourse'); #---------------------- table setup here-------------------------- $refresh_txt = get_string('refresh_page', 'wiziq'); $table = new flexible_table('wixiq_content'); $table->define_columns(array('name', 'status', 'delete')); $statusicon = '<img src="'.$CFG->wwwroot.'/mod/wiziq/pix/refresh.png" alt='.$refresh_txt.'/>'; $stausimage_first = '<a href="javascript:location.reload(true)"'; $stausimage_second = ' title="'.$refresh_txt.'">'.$statusicon.'</a>'; $stausimage = $stausimage_first.$stausimage_second; $status = 'Status'." ".$stausimage; $nameheding = get_string('nameheading', 'wiziq'); $deleteheading = get_string('deleteheading', 'wiziq'); $table->define_headers(array($nameheding, $status, $deleteheading)); $table->column_style_all('text-align', 'left'); $table->column_style('name', 'width', 'auto'); $table->column_style('status', 'text-align', 'center'); $table->column_style('delete', 'text-align', 'center'); $table->column_style('status', 'width', '180px'); $table->column_style('delete', 'width', '180px'); $table->define_baseurl($PAGE->url); $table->is_downloadable(false); $table->sortable(false); $table->pageable(true); echo $OUTPUT->header(); #--------------------------tabs for navigation----------- $schedulenewwiziqclass = new moodle_url("$CFG->wwwroot/course/modedit.php", array('add' => 'wiziq', 'type' => '', 'course' => $course->id, 'section' => '0', 'return' => '0')); $navigationtabsmanage = new moodle_url("$CFG->wwwroot/mod/wiziq/index.php",
} // Form for messaging selected participants. $formattributes = array('action' => $CFG->wwwroot . '/user/action_redir.php', 'method' => 'post', 'id' => 'participantsform'); echo html_writer::start_tag('form', $formattributes); echo html_writer::empty_tag('input', array('type' => 'hidden', 'name' => 'sesskey', 'value' => sesskey())); echo html_writer::empty_tag('input', array('type' => 'hidden', 'name' => 'returnto', 'value' => s($PAGE->url->out(false)))); // Setup submissions table. $table = new flexible_table('mod-block-progress-overview'); $table->pagesize($perpage, $numberofusers); $tablecolumns = array('select', 'picture', 'fullname', 'lastonline', 'progressbar', 'progress'); $table->define_columns($tablecolumns); $tableheaders = array('', '', get_string('fullname'), get_string('lastonline', 'block_progress'), get_string('progressbar', 'block_progress'), get_string('progress', 'block_progress')); $table->define_headers($tableheaders); $table->sortable(true); $table->set_attribute('class', 'overviewTable'); $table->column_style_all('padding', '5px'); $table->column_style_all('text-align', 'left'); $table->column_style_all('vertical-align', 'middle'); $table->column_style('select', 'text-align', 'right'); $table->column_style('select', 'padding', '5px 0 5px 5px'); $table->column_style('progressbar', 'width', '200px'); $table->column_style('progress', 'text-align', 'center'); $table->no_sorting('select'); $select = ''; $table->no_sorting('picture'); $table->no_sorting('progressbar'); if ($paged) { $table->no_sorting('progress'); } $table->define_baseurl($PAGE->url); $table->setup();
} if (!empty($cpd_years[$cpdyearid])) { echo $OUTPUT->heading(get_string('cpdyeara', 'report_cpd', $cpd_years[$cpdyearid]), 4, 'printonly'); } echo $OUTPUT->heading(fullname($USER), 3, 'printonly'); $table = new flexible_table('cpd'); $table->define_columns(array_keys($columns)); $table->define_headers(array_values($columns)); $table->column_style('edit', 'text-align', 'center'); $table->column_style('delete', 'text-align', 'center'); $table->column_class('edit', 'no_print_col'); $table->column_class('delete', 'no_print_col'); $table->define_baseurl($PAGE->url->out()); $table->sortable(false); $table->collapsible(false); $table->column_style_all('white-space', 'normal'); $table->set_attribute('cellspacing', '0'); $table->set_attribute('id', 'attempts'); $table->set_attribute('class', 'generaltable boxalignleft cpd'); $table->setup(); foreach ($cpd_records as $cpd_record) { $table->add_data($cpd_record); } $table->finish_output(); if ($table->started_output) { if (!empty($print)) { // Disclaimer echo $output->disclaimer(); } echo $output->export_controls($PAGE, $filter_data); }