Skip to content

Commit

Permalink
🔨 APP #275 melhorias
Browse files Browse the repository at this point in the history
  • Loading branch information
bjverde committed Sep 23, 2022
1 parent 60a8550 commit bb152d7
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
17 changes: 12 additions & 5 deletions appexemplo_v1.0/modulos/tree/exe_tree_view_6_check.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,18 +79,25 @@
?>
<script>
function treeCheck(id, checked){
alert( state );
var postForm = {
'id' : id
,'checked': checked
};
jQuery.ajax({
type: "POST"
,url: "treeview_salvar_check.php"
,data: "id="+id+'&checked='+checked
,success: function(msg){
msg = jQuery.trim(msg);
,data: postForm
,success: function(response, textStatus, jqXHR){
console.log(response);
console.log(textStatus);
msg = jQuery.trim(response);
if( msg ){
alert( msg );
}
}
,error: function(msg){
,error: function(response, textStatus, jqXHR){
console.log(response);
console.log(textStatus);
alert( 'erro:' + msg );
}
});
Expand Down
5 changes: 5 additions & 0 deletions appexemplo_v1.0/treeview_salvar_check.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
require_once 'includes/config_conexao.php';
require_once '../base/classes/webform/TApplication.class.php'; //FormDin 5

// AQUI SERÁ O CONTROLE DE ACESSO
// AQUI SERÁ O CONTROLE DE ACESSO
// AQUI SERÁ O CONTROLE DE ACESSO
// AQUI SERÁ O CONTROLE DE ACESSO

try{
//var_dump($_REQUEST);
$id = $_REQUEST['id'];
Expand Down

0 comments on commit bb152d7

Please sign in to comment.