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'; |
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 | |
| # BASTA USAR O PARÂMETRO static COM O VALOR 1 | |
| TApplication::loadPage('VendaForm','onShow',['static'=>1]); | |
| TApplication::loadPage('VendaForm','onEdit',['key'=>$id,'static'=>1]); |
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 | |
| //<onAfterColumnsCreation> | |
| $column_descricao->setDataProperty('style', 'word-break:break-all;'); |
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 | |
| $fontes = implode(', ', $dados['fontes']); |
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 onShow($param = null) | |
| { | |
| TScript::create(" | |
| $(document).ready(function() { | |
| $('textarea[name=\"conteudo\"]').on('summernote.blur', function() { | |
| alert('Você saiu do campo THtmlEditor'); | |
| }); | |
| }); |
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
| ALTER TABLE system_unit MODIFY name TEXT NULL; | |
| ALTER TABLE system_users MODIFY name TEXT NULL; |
NewerOlder