This file contains hidden or 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
<?php | |
# AGRADECIMENTO: WELLIGTON PIVATTO | |
# INSTALE O PACOTE COMPOSER NO PROJETO: google/apiclient | |
# CONTEÚDO ARQUIVO google.ini (app/config/google.ini) | |
/* | |
[google_oauth2] | |
client_id = "303046463171-cisqtpsaqbvd6xpg547rfbhi7ea1un69.apps.googleusercontent.com" | |
client_secret = "YHMKPX-wqMQF1Dc06GI5Prd2IYVivJ3df6V" |
This file contains hidden or 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
version: '3' | |
services: | |
uptime-kuma: | |
image: louislam/uptime-kuma:1 | |
container_name: uptime-kuma | |
restart: always | |
ports: | |
- "7200:3001" | |
volumes: | |
- /data/uptime-kuma/data:/app/data |
This file contains hidden or 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
# CRIE UM ARQUIVO JS NO PROJETO | |
function __adianti_block_ui(mensagem) | |
{ | |
if (typeof $.blockUI == 'function') | |
{ | |
if (typeof Adianti.blockUIConter == 'undefined') | |
{ | |
Adianti.blockUIConter = 0; | |
} |
This file contains hidden or 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
<?php | |
# SEM O CLASS | |
TScript::create("$('table th:contains(\"TITULO DA COLUNA\")').hide();"); | |
# COM O CLASS | |
TScript::create("$('table th.tdatagrid_col:contains(\"TITULO DA COLUNA\")').hide();"); | |
# "tdatagrid_col" É O NOME DO class | |
# "TITULO DA COLUNA" É O NOME DO TÍTULO DA COLUNA |
This file contains hidden or 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
/* | |
Crie uma app blank: RESTService | |
- no onExecute insira os códigos abaixo | |
- Crie os metodos, no meu exemplo eu criei um metodo chamado checkLicense() quere recebe a variavel $body | |
- a variavel $boby recebe o input (os dados que vai enviar em formato json) | |
*/ | |
header("Access-Control-Allow-Origin: *"); |
This file contains hidden or 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
<?php | |
public function onReload($param = NULL) | |
{ | |
if (empty($param['order'])) | |
{ | |
$param['order'] = 'cidade->nome'; | |
$criteria->setProperties($param); | |
} |
This file contains hidden or 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
/* | |
- Cria a coluna "Saldo" no DetailForm | |
- Nas prorpiedades do DetailForm criar envento onUpdateList | |
*/ | |
public static function onUpdateList($param = null) | |
{ | |
try |
This file contains hidden or 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
<?php | |
# 1 - CRIE O ARQUIVO PHP "PHP File" NA PASTA RAIZ DO PROJETO E COLE ESSE CÓDIGO: | |
class OFX | |
{ | |
private $arquivo; | |
public function __construct($arquivo) | |
{ |
This file contains hidden or 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
<?php | |
# 1 - Adicione nas propriedades do projeto do Adianti Builder em Header Tags(script, style, meta) | |
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/sweetalert2.all.min.js"></script> | |
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/sweetalert2.min.css"> | |
# 2 - Depois crie uma classe service com o nome de Mensagem e cole esse código abaixo.. exemplo: | |
class Mensagem | |
{ |
This file contains hidden or 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
<?php | |
$texto = ''; | |
$classe = ''; | |
switch ($value) | |
{ | |
case 'ABERTA': | |
$texto = 'ABERTA'; | |
$classe = 'primary'; |
NewerOlder