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 | |
| TScript::create("$(document).ready( () => $('form input, form select').on('keypress', (evt) => { if( evt.keyCode === 13 ) { return false; }}) );"); |
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 | |
| header("Access-Control-Allow-Origin: *"); | |
| header("Access-Control-Allow-Headers: *"); |
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 | |
| #COMPONENTE TBarChart.php (lib\adianti\widget\chart\TBarChart.php) | |
| namespace Adianti\Widget\Chart; | |
| use Adianti\Widget\Base\TElement; | |
| use Adianti\Widget\Base\TScript; | |
| use Exception; |
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
| <div class="tbarchart" style="padding:10px"> | |
| <canvas style="height:{height}px;max-height:{height}px;" id="{chart_id}"></canvas> | |
| </div> | |
| <script> | |
| var data = { | |
| labels: {xlabels}, | |
| datasets: {datasets} | |
| }; | |
| var config = { |
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 static function onExcluirItens($param = null) | |
| { | |
| try | |
| { | |
| if(!empty($param['venda_item_venda_list___row__data'])) | |
| { | |
| foreach($param['venda_item_venda_list___row__data'] as $rowDataCoded) | |
| { |
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 | |
| $element_preview = new BElement('div'); | |
| public function onShow($param = null) | |
| { | |
| $iframe = new TElement('iframe'); | |
| $iframe->src = 'https://pdfobject.com/pdf/sample.pdf'; | |
| $iframe->type = 'application/pdf'; |
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 | |
| # ADICIONAR NO FINAL DO ARQUIVO init.php | |
| # EXEMPLO USO: debug($param); | |
| function debug($data) | |
| { | |
| $backtrace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS); | |
| $caller = null; | |
| foreach ($backtrace as $frame) { |
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 | |
| # SIMPLIFICADO (SEM BUFFER) | |
| $conteudo = print_r($param, true); | |
| file_put_contents("app/output/log.txt", $conteudo); | |
| # COMPLETO (COM BUFFER) | |
| ob_start(); | |
| var_dump($conteudo); | |
| $retorno = ob_get_clean(); |
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
| <a generator="adianti" href="index.php?class=TelaPrincipal"> </a> | |
| <button onclick="window.location.href='index.php?class=TelaPrincipal'"> </button> |
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 | |
| new TQuestion("DESEJA CRIAR NOVO REGISTRO?", new TAction([__CLASS__, 'onYesNovoRegistro']),new TAction([__CLASS__, 'onNoNovoRegistro']), 'ATENÇÃO!','SIM','NÃO'); | |
| public static function onYesNovoRegistro($param = null) | |
| { | |
| try | |
| { | |
| $object = new Produto; | |
| $object->nome = 'COCA COLA 2 LITROS'; |
NewerOlder