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 | |
function($value, $object, $row) | |
{ | |
if (object->feito == 1) | |
{ | |
$row->style = 'text-decoration:line-through;'; | |
} | |
return $value; |
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
DirectoryIndex index.html index.php |
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 | |
$pasta_pdf = 'app/output/pdf/'; | |
if (!is_dir($pasta_pdf )) | |
{ | |
mkdir($pasta_pdf , 0777, true); | |
} | |
/* GRUPOS DE PERMISSÃO | |
0777 - Leitura, escrita e execução para todos. Acesso total a todos os usuários. |
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
-- ESTRUTURA DA TABELA "pais" | |
DROP TABLE IF EXISTS `pais`; | |
CREATE TABLE `pais` ( | |
`id` int(11) NOT NULL, | |
`nome` varchar(60) DEFAULT NULL, | |
`nome_pt` varchar(60) DEFAULT NULL, | |
`sigla` varchar(2) DEFAULT NULL, | |
`bacen` int(5) DEFAULT NULL | |
) ENGINE=MyISAM DEFAULT CHARSET=utf8; |
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
-- ESTRUTURA DA TABELA "estado" | |
CREATE TABLE `estado` ( | |
`id` int(11) NOT NULL, | |
`nome` varchar(75) DEFAULT NULL, | |
`uf` varchar(2) DEFAULT NULL, | |
`ibge` int(2) DEFAULT NULL, | |
`pais` int(3) DEFAULT NULL, | |
`ddd` varchar(50) DEFAULT NULL | |
) ENGINE=MyISAM DEFAULT CHARSET=utf8; |
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
-- ESTRUTURA DA TABELA "cidade" | |
DROP TABLE IF EXISTS `cidade`; | |
CREATE TABLE `cidade` ( | |
`id` int(11) NOT NULL, | |
`nome` varchar(120) DEFAULT NULL, | |
`uf` int(2) DEFAULT NULL, | |
`ibge` int(7) DEFAULT NULL | |
) ENGINE=MyISAM DEFAULT CHARSET=utf8; |
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 | |
$systemUnit = SystemUnit::find(TSession::getValue('userunitid')); | |
if ($systemUnit) | |
{ | |
if ($systemUnit->logomarca) | |
{ | |
$this->img_logomarca->src = $systemUnit->logomarca; | |
} | |
} |
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 onAvancar($param = null) # MÉTODO 1º FORMULÁRIO | |
{ | |
try | |
{ | |
$this->form->validate(); | |
$data = $this->form->getData(); | |
$object = (array) $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
<?php | |
# EXEMPLO DE USO: Funcao::profissoes() | |
class Funcao | |
{ | |
public static function profissoes() | |
{ | |
$profissoes = array( | |
'Administrador' => 'Administrador', |
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[page-name="NomeClasse"] .card-header.panel-heading { | |
display: none !important; | |
} |
NewerOlder