set_context(context_system::instance()); $PAGE->set_url(new moodle_url("/local/uber/question.php",array('id'=>$id))); $PAGE->set_title(get_string('report','local_nightrun')); $PAGE->set_heading(get_string('report','local_nightrun')); $PAGE->set_pagelayout('standard'); require_once($CFG->dirroot.'/local/nightrun/lib.php'); //$PAGE->requires->js_call_amd('local_nightrun/delete', 'init'); echo $OUTPUT->header(); $reporttype = array(); $reporttype[] = 'unassignedcourseenrollments'; $reporttype[] = 'userswithoutmanager'; $reporttype[] = 'userswithoutcompany'; $reporttype[] = 'userssuspendedoncompany'; $reporttype[] = 'userssuspendedonsite'; //$count=unassignedcourseenrollments_count(); $count=userswithoutmanager_count(); //$count=userswithoutcompany_count(); //$count=userssuspendedoncompany_count(); //$count=userssuspendedonsite_count(); nightrun_email_report('userswithoutmanager',$count); echo $OUTPUT->footer(); ?>