set_pagelayout('standard'); $PAGE->set_url('/blocks/fale_conosco/index.php'); //$PAGE->requires->js('/blocks/fale_conosco/datatable.js', true); $PAGE->set_context($context); // Get data $strtitle = get_string('fale_conosco', 'block_fale_conosco'); $user = $USER; //$icon = $OUTPUT->pix_icon('print', get_string('print', 'block_fale_conosco'), 'block_fale_conosco'); global $DB, $CFG; /* $uri = 'https://escolamodelows.interlegis.leg.br/api/v1/fale_conosco'; $response = \Httpful\Request::get($uri) //->sendsJson() //->body('{"school_initial": "SSL"}') ->expectsJson() ->send(); $data=$response->body; html_writer::span("

Quantidade" . count($data) . '

'); // Print the header $PAGE->navbar->add($strtitle); $PAGE->set_title($strtitle); $PAGE->set_heading($strtitle); */ //$PAGE->requires->css('/blocks/fale_conosco/printstyle.css'); echo $OUTPUT->header(); // Print concluded courses echo $OUTPUT->box_start('generalbox boxaligncenter'); echo $OUTPUT->heading(get_string('fale_conosco', 'block_fale_conosco')); //Instantiate simplehtml_form $mform = new searchform(); //Form processing and displaying is done here if ($mform->is_cancelled()) { //Handle form cancel operation, if cancel button is present on form } else if ($fromform = $mform->get_data()) { //In this case you process validated data. $mform->get_data() returns data posted in form. } else { // this branch is executed if the form is submitted but the data doesn't validate and the form should be redisplayed // or on the first display of the form. //Set default data (if any) //$mform->set_data($toform); //displays the form $mform->display(); } /* $table = new html_table(); $table->align = array('left', 'left', 'left', 'center'); $table->width = '100%'; $table->head = array( get_string('id', 'block_fale_conosco'), get_string('name', 'block_fale_conosco'), get_string('email, block_fale_conosco'), get_string('cpf', 'block_fale_conosco') ); $table->data = $data; echo html_writer::table($table); */ ?> ...
ID Sender Received
10238 eduardo@pingpong.com 14.10.2013

Mensagem especĂ­fica

User ID Title Body
box_end(); echo $OUTPUT->footer();