-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'pre-release' into gabriel
- Loading branch information
Showing
10 changed files
with
200 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,32 @@ | ||
<?php | ||
require("../../conexao.php"); | ||
if(!isset($_POST) or empty($_POST)){ | ||
if(!isset($_POST) or empty($_POST)){ | ||
$data = file_get_contents( "php://input" ); | ||
$data = json_decode( $data, true ); | ||
$data = json_decode( $data, true ); | ||
$_POST = $data; | ||
}else if(is_string($_POST)){ | ||
$_POST = json_decode($_POST, true); | ||
} | ||
// var_dump($_POST); | ||
$res = false; | ||
$api = $_POST['url']; | ||
$token = $_POST['token']; | ||
$val_min_boleto_uni = $_POST['val_min_boleto_uni']; | ||
$max_dias_pos_venc = $_POST['max_dias_pos_venc']; | ||
$val_min_parcela= $_POST['val_min_parcela']; | ||
$val_max_parcela = $_POST['val_max_parcela']; | ||
$juros = $_POST['juros']; | ||
$multa = $_POST['multa']; | ||
$agradecimento = $_POST['agradecimento']; | ||
if(mysqli_query($conexao, "UPDATE `infoboletofacil` SET `api`='$api',`token_api`='$token',`val_min_boleto_uni`=$val_min_boleto_uni,`max_dias_pos_venc`= $max_dias_pos_venc ,`juros(%)`=$juros,`multa(%)`=$multa,`val_max_parcela`=$val_max_parcela,`val_min_parcela`=$val_min_parcela,`agradecimento`='$agradecimento' WHERE 1")){ | ||
$res = true; | ||
try { | ||
// var_dump($_POST); | ||
$res = false; | ||
$api = (isset($_POST['url']) && $_POST['url'] != null) ? $_POST['url'] : ""; | ||
$token = (isset($_POST['token']) && $_POST['token'] != null) ? htmlspecialchars($_POST['token'], ENT_QUOTES, 'UTF-8') : ""; | ||
$val_min_boleto_uni = (isset($_POST['val_min_boleto_uni']) && $_POST['val_min_boleto_uni'] != null) ? floatval($_POST['val_min_boleto_uni']) : ""; | ||
$max_dias_pos_venc = (isset($_POST['max_dias_pos_venc']) && $_POST['max_dias_pos_venc'] != null) ? intval($_POST['max_dias_pos_venc']) : ""; | ||
$val_min_parcela= (isset($_POST['val_min_parcela']) && $_POST['val_min_parcela'] != null) ? floatval($_POST['val_min_parcela']) : ""; | ||
$val_max_parcela = (isset($_POST['val_max_parcela']) && $_POST['val_max_parcela'] != null) ? floatval($_POST['val_max_parcela']) : ""; | ||
$juros = (isset($_POST['juros']) && $_POST['juros'] != null) ? floatval($_POST['juros']) : ""; | ||
$multa = (isset($_POST['multa']) && $_POST['multa'] != null) ? floatval($_POST['multa']) : ""; | ||
$agradecimento = (isset($_POST['agradecimento']) && $_POST['agradecimento'] != null) ? htmlspecialchars($_POST['agradecimento'], ENT_QUOTES, 'UTF-8') : ""; | ||
if(mysqli_query($conexao, "UPDATE `infoboletofacil` SET `api`='$api',`token_api`='$token',`val_min_boleto_uni`=$val_min_boleto_uni,`max_dias_pos_venc`= $max_dias_pos_venc ,`juros(%)`=$juros,`multa(%)`=$multa,`val_max_parcela`=$val_max_parcela,`val_min_parcela`=$val_min_parcela,`agradecimento`='$agradecimento' WHERE 1")){ | ||
$res = true; | ||
} | ||
} catch (Exception $e) { | ||
|
||
error_log($e->getMessage()); | ||
$res = false; | ||
} | ||
|
||
echo json_encode($res); | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
104 changes: 52 additions & 52 deletions
104
html/socio/sistema/controller/import_conteudo_index.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,69 +1,69 @@ | ||
<!-- Content Wrapper. Contains page content --> | ||
<!-- Content Wrapper. Contains page content --> | ||
<div class="content-wrapper"> | ||
<!-- Content Header (Page header) --> | ||
<section class="content-header"> | ||
<h1> | ||
<small>Sistema SaGA</small> | ||
</h1> | ||
<ol class="breadcrumb"> | ||
<li><a href="#"><i class="fa fa-dashboard"></i> Ínicio</a></li> | ||
<li class="active">Painel</li> | ||
</ol> | ||
<h1> | ||
<small>Sistema SaGA</small> | ||
</h1> | ||
<ol class="breadcrumb"> | ||
<li><a href="#"><i class="fa fa-dashboard"></i> Ínicio</a></li> | ||
<li class="active">Painel</li> | ||
</ol> | ||
</section> | ||
|
||
<!-- Main content --> | ||
<section class="content"> | ||
|
||
<div data-toggle="modal" data-target="#configModal" href="#" class="col-md-3 col-sm-6 col-xs-12" style="cursor: pointer"> | ||
<div class="info-box"> | ||
<span class="info-box-icon bg-aqua"><i class="ion ion-ios-gear-outline"></i></span> | ||
|
||
<div class="info-box-content"> | ||
<span class="info-box-text"><b>Configurações</b></span> | ||
<small>Acesse as configurações de administrador</small> | ||
<div data-toggle="modal" data-target="#configModal" class="col-md-3 col-sm-6 col-xs-12 clickable-box"> | ||
<div class="info-box"> | ||
<span class="info-box-icon bg-aqua"><i class="ion ion-ios-gear-outline"></i></span> | ||
|
||
<div class="info-box-content"> | ||
<span class="info-box-text"><b>Configurações</b></span> | ||
<small>Acesse as configurações de administrador</small> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<a href="socios.php" style="text-decoration: none; color: black"><div data-toggle="modal" class="col-md-3 col-sm-6 col-xs-12" style="cursor: pointer"> | ||
<div class="info-box"> | ||
<span class="info-box-icon bg-yellow"><i class="fa fa-users"></i></span> | ||
<?php $num_socios = mysqli_num_rows(mysqli_query($conexao,"select * from socio")); ?> | ||
<div class="info-box-content"> | ||
<span class="info-box-text"><b>SÓCIOS</b></span> | ||
<small>Ir para a página de administração de sócios</small> | ||
<a href="socios.php" class="col-md-3 col-sm-6 col-xs-12 clickable-box"> | ||
<div data-toggle="modal" class="info-box bg-yellow"> | ||
<span class="info-box-icon"><i class="fa fa-users"></i></span> | ||
<?php $num_socios = htmlspecialchars($num_socios); ?> | ||
<div class="info-box-content"> | ||
<span class="info-box-text"><b>SÓCIOS</b></span> | ||
<small>Ir para a página de administração de sócios</small> | ||
</div> | ||
</div> | ||
</div> | ||
</div></a> | ||
</a> | ||
|
||
<a href="integracao.php" style="text-decoration: none; color: black"><div data-toggle="modal" class="col-md-3 col-sm-6 col-xs-12" style="cursor: pointer"> | ||
<div class="info-box"> | ||
<span class="info-box-icon bg-green"><i class="fa fa-money"></i></span> | ||
<div class="info-box-content"> | ||
<span class="info-box-text"><b>INTEGRAÇÃO</b></span> | ||
<small>Configure e integre sistemas de pagamento</small> | ||
</div> | ||
</div> | ||
</div></a> | ||
|
||
<div class="row"> | ||
<div class="col-xs-12"> | ||
<div class="box"> | ||
<div class="box-header"> | ||
<h3 class="box-title">Administração</h3> | ||
<a href="../integracao.php" class="col-md-3 col-sm-6 col-xs-12 clickable-box"> | ||
<div data-toggle="modal" class="info-box bg-green"> | ||
<span class="info-box-icon"><i class="fa fa-money"></i></span> | ||
<div class="info-box-content"> | ||
<span class="info-box-text"><b>INTEGRAÇÃO</b></span> | ||
<small>Configure e integre sistemas de pagamento</small> | ||
</div> | ||
</div> | ||
<div class="box-body"> | ||
<p>Opções de controle de associados.</p> | ||
<a id="btn_socios" class="btn btn-app"> | ||
<span class="badge bg-purple"><span id="qtd_socios"><?php echo($num_socios); ?></span></span> | ||
<i class="fa fa-users"></i> Associados | ||
</a> | ||
<a id="btn_bd" class="btn btn-app"> | ||
<i class="fa fa-database"></i> Banco de dados | ||
</a> | ||
</a> | ||
|
||
<div class="row"> | ||
<div class="col-xs-12"> | ||
<div class="box"> | ||
<div class="box-header"> | ||
<h3 class="box-title">Administração</h3> | ||
</div> | ||
<div class="box-body"> | ||
<p>Opções de controle de associados.</p> | ||
<a id="btn_socios" class="btn btn-app"> | ||
<span class="badge bg-purple"><span id="qtd_socios"><?php echo $num_socios; ?></span></span> | ||
<i class="fa fa-users"></i> Associados | ||
</a> | ||
<a id="btn_bd" class="btn btn-app"> | ||
<i class="fa fa-database"></i> Banco de dados | ||
</a> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</section> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.