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 | |
$nome = TSession::getValue('nome'); |
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 | |
$nome = 'FABRICIO'; | |
TSession::setValue('nome', $nome); # CRIA O VALOR | |
$nome = TSession::getValue('nome'); # PEGA O VALOR |
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 | |
$object->system_user_id = TSession::getValue('userid'); |
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 onSave($param = null) | |
{ | |
try | |
{ | |
TTransaction::open(self::$database); | |
$this->form->validate(); |
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 | |
$login_usuario = TSession::getValue('login'); |
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 | |
$nome_usuario = TSession::getValue('username'); |
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 | |
TToast::show('warning', "MENSAGEM DE ALERTA!", 'center', 'fa-exclamation-triangle'); | |
TToast::show("error", "MENSAGEM DE ERRO!", "topRight", "fa-exclamation-triangle"); | |
TToast::show("success", "MENSAGEM DE SUCESSO", "center", "fa-check"); | |
TToast::show("info", "MENSAGEM DE INFORMAÇÃO", "center", "fa-info"); | |
new TMessage('info', "MENSAGEM DE INFORMAÇÃO"); | |
new TMessage('error', "MENSAGEM DE ERRO!"); |
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 | |
TApplication::loadPage('ClienteList', 'onShow'); |
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 | |
$pdf = 'app/output/relatorio_clientes.pdf'; | |
$window = TWindow::create('PDF', 0.8, 0.8); | |
$iframe = new TElement('iframe'); | |
$iframe->src = $pdf; | |
$iframe->type = 'application/pdf'; | |
$iframe->style = "width: 100%; height:calc(100% - 10px)"; | |
$window->add($iframe); |
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 | |
ini_set('display_errors',0); | |
class PessoaForm extends TPage | |
{ | |
public static function onCEP($param = null) | |
{ | |
try |