From 127154db8e8c33a7de74d1a49b98b144dcdd387e Mon Sep 17 00:00:00 2001 From: Matheus Garcia Date: Tue, 25 Jun 2019 16:35:04 -0300 Subject: [PATCH] =?UTF-8?q?Parametriza=C3=A7=C3=A3o=20a=20partir=20de=20va?= =?UTF-8?q?ri=C3=A1veis=20do=20block=20escola=5Fmodelo=20e=20outros=20ajus?= =?UTF-8?q?tes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- amd/src/config.js | 5 +- block_fale_conosco.php | 4 +- datatable.js | 4 - httpful.phar | Bin 64034 -> 0 bytes index.php | 3 - indexyui.php | 281 ----------------------------------------- proxy.php | 18 ++- version.php | 4 + 8 files changed, 15 insertions(+), 304 deletions(-) delete mode 100644 datatable.js delete mode 100644 httpful.phar delete mode 100644 indexyui.php diff --git a/amd/src/config.js b/amd/src/config.js index 222dc3b..01429d0 100644 --- a/amd/src/config.js +++ b/amd/src/config.js @@ -2,20 +2,19 @@ define(['jquery', 'js/jquery.dataTables.min.js', 'js/jquery-ui.min.js'] , functi var exports = {}; var answered = 1; - var school = 'SSL'; var init = exports.init = function() { // Altera entre mensagens respondidas e não respondidas $( "#id_situacao" ).change(function() { answered = $(this).val(); $("#id_situacao").val(answered); - tabelaContatos.ajax.url('proxy.php?schoolInitials=' + school +' + &answered=' + answered) + tabelaContatos.ajax.url('proxy.php?answered=' + answered) tabelaContatos.ajax.reload(); }); // Obtém dados de todas as conversas var tabelaContatos = $('#tabela_contatos').DataTable({ ajax: { - url: "proxy.php?schoolInitials=" + school + "&answered=" + 0, + url: "proxy.php?answered=" + 0, dataSrc:"" }, columns: [ diff --git a/block_fale_conosco.php b/block_fale_conosco.php index 5a2d1c9..af53692 100644 --- a/block_fale_conosco.php +++ b/block_fale_conosco.php @@ -10,9 +10,7 @@ class block_fale_conosco extends block_base { return $this->content; } - $this->content = new stdClass; - $this->content->text = 'The content of our SimpleHTML block!'; - $this->content->footer = 'Footer here...'; + $this->content = new stdClass; return $this->content; } diff --git a/datatable.js b/datatable.js deleted file mode 100644 index 399e31b..0000000 --- a/datatable.js +++ /dev/null @@ -1,4 +0,0 @@ -YUI().use("datatable", "datasource-get", "datasource-jsonschema", "datatable-datasource", function(Y) { - - -}); \ No newline at end of file diff --git a/httpful.phar b/httpful.phar deleted file mode 100644 index 87fb39283751c0478ba5e99c70c45fe4a5c94ce5..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 64034 zcmdsgO>AUWcAoqTyYuHD&JPj?dEyW%vc;e7mNcWGrdv(1*=o)-n>5KDNz)vcidBzf zjfz!t{WP0y$%vCpc18dLUIt!d>jVgpAd3W9*g$|Ft0V}JjaOL&StLjhBw5(W_nn`6 z?|bzgf7BYqaS3Wxy?1}kJ@?#m&OP^>bHDTc>GA1}44>uYZ2P!1%y!3xc=s;Ym{Wji1!I{QEOM_ecNn!n)rb4f;vle+|45Wd7~l z`TPIE>o%(T-Rz#^R(G}2IvwXjg8nZJbpHK^-}qO5$(#7ARZZ-yuRhpZUpndhgP+lk z`S-8=&q)~Y>s7Trel$MmB~ZVQDI(PT`=|c;Z~VS@S&8V63spY?g|I6B{@s87n?K=I zNjyH={L7L3!p~`0{{8S5pZ|uJ{R^eCx&%)DwjqLlKmN}@`#WAdZJH=#)4%((+BE-m z{@}NM+RLU*@8rKa$wy-r|D)g3;`}@MuMa=*;=hzYvXhTa2mMjL{3vgAKw+%+pR61H z9sZL)_dmSeFILoJ`TzA-v>*O`GWvV}+skuVId-;(gBRy4{FiMO`1i^0{qs9s_&dTx zZuDCxfT-2ZGpmUeynOTKjqGL?7I@a~wML_CeB2smhpl$E*B!UU`6z2m#)ICV)#>(+ zma=R$>$kek!GUgO+q*l9x58@>ARhAhebhJ}46`Swo_#nNbh7W9c$hmW7GXLtE^eQj@R=ac5{`u6J1D!wXv(~?hiyP7ujy!QI&5>T;jnc+*O+F# zjfJe?#T)a++u7$R?;WnJcmuX5N950Z`-S2&8RA|tvh1XF1k}vwER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ZdE$KGOtHh(ncr0n-6requires->css(new moodle_url('https://maxcdn.bootstrapcdn.com/bootstrap/3 $PAGE->requires->css(new moodle_url('https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css')); $PAGE->requires->css(new moodle_url('https://cdn.datatables.net/1.10.19/css/jquery.dataTables.min.css')); - - $PAGE->set_context($context); // Get data @@ -28,7 +26,6 @@ $user = $USER; global $DB, $CFG, $USER; - echo $OUTPUT->header(); // Print concluded courses diff --git a/indexyui.php b/indexyui.php deleted file mode 100644 index 9a61e09..0000000 --- a/indexyui.php +++ /dev/null @@ -1,281 +0,0 @@ -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); -*/ -?> - - - - - - - - - - - - - - - - - - ... - -
IDSenderReceived
10238eduardo@pingpong.com14.10.2013
- - - -
- -
-
-
-
-

Mensagem específica

-
-
-
- - - - - - - - - - - - - - - - - - -
User IDTitleBody
- -box_end(); -echo $OUTPUT->footer(); diff --git a/proxy.php b/proxy.php index 1b5fb4f..55a9f10 100644 --- a/proxy.php +++ b/proxy.php @@ -1,12 +1,12 @@ dirroot . "/blocks/escola_modelo/lib/httpful.phar"); require_once("../../config.php"); +require_once($CFG->dirroot . "/blocks/escola_modelo/classes/util.php"); header("Content-Type: application/json"); if(isset($_GET["conversationID"])) { $id = intval($_GET['conversationID']); - $uri = 'https://escolamodelows.interlegis.leg.br/api/v1/fale_conosco/mensagens'; - // $uri = 'http://localhost:3000/api/v1/fale_conosco/mensagens'; + $uri = evlURLWebServices() + '/api/v1/fale_conosco/mensagens'; $response = \Httpful\Request::post($uri) ->sendsJson() ->body('{"conversation_id": "' . $id . '"}') @@ -16,8 +16,7 @@ if(isset($_GET["conversationID"])) { $cpf = $USER->username; $description = $_GET['description']; - $uri = 'https://escolamodelows.interlegis.leg.br/api/v1/fale_conosco/adicionar'; - // $uri = 'http://localhost:3000/api/v1/fale_conosco/adicionar'; + $uri = evlURLWebServices() + '/api/v1/fale_conosco/adicionar'; $response = \Httpful\Request::post($uri) ->sendsJson() ->body('{ @@ -29,21 +28,20 @@ if(isset($_GET["conversationID"])) { "conversation_id": "' . $id . '" }') ->send(); -} elseif(isset($_REQUEST["schoolInitials"])) { +} else { $was_answered = intval($_GET['answered'])== 0 ? 'false':'true'; $was_answered = trim($was_answered, '"'); - $uri = 'https://escolamodelows.interlegis.leg.br/api/v1/fale_conosco/conversa'; - // $uri = 'http://localhost:3000/api/v1/fale_conosco/conversa'; + $uri = evlURLWebServices() . '/api/v1/fale_conosco/conversa'; $response = \Httpful\Request::post($uri) ->sendsJson() ->body( '{ - "school_initials": "SSL", + "school_initials": "' . evlSiglaEscola() . '", "page" : "1", "limit": "2000", "was_answered": '. $was_answered .' }') - ->send(); + ->send(); } $data=$response->body; diff --git a/version.php b/version.php index 76df030..bc81c06 100644 --- a/version.php +++ b/version.php @@ -2,4 +2,8 @@ $plugin->component = 'block_fale_conosco'; // Recommended since 2.0.2 (MDL-26035). Required since 3.0 (MDL-48494) $plugin->version = 2018092400; // YYYYMMDDHH (year, month, day, 24-hr time) $plugin->requires = 2010112400; // YYYYMMDDHH (This is the release version for Moodle 2.0) +$plugin->dependencies = array( + 'block_escola_modelo' => ANY_VERSION +); +