This file contains 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
$descricao_cliente_element = new Zend_Form_Element_Textarea('descricao_cliente'); | |
$descricao_cliente_element->setAttribs(['ROWS' => '10', 'class' => 'form-control']); | |
$descricao_cliente_element->removeDecorator('label'); | |
$form_pastas->addElement($descricao_cliente_element); |
This file contains 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
->columns(array( | |
'descricao' => new Zend_Db_Expr(sprintf("(CASE | |
WHEN %d IN(13,21,23,25) | |
THEN `pt`.`descricao_cliente` | |
ELSE `pt`.`descricao` | |
END)", $id_role)) | |
)) |
This file contains 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 | |
// $db = Zend_Db::factory() | |
$select = $db->select() | |
->from('log', []) | |
->columns([ | |
'id', | |
'message', | |
'url', | |
'date', |
This file contains 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 | |
$params = array( | |
'host' => $data->host, | |
'username' => $data->login, | |
'password' => $data->password, | |
'dbname' => $data->database, | |
'driver_options' => [PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES 'utf8'"] | |
); |
This file contains 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 | |
// Disable layout and view Renderer | |
$this->_helper->layout->disableLayout(); | |
$this->_helper->viewRenderer->setNoRender(true); |
This file contains 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
SELECT | |
count(*) as qtd_products, | |
DATE_FORMAT(created, '%m/%Y') as month | |
FROM | |
products | |
WHERE | |
created > DATE_SUB(DATE_FORMAT(NOW(), '%Y/%m/01'), INTERVAL 12 MONTH) | |
GROUP BY MONTH(created) | |
ORDER BY created DESC; |
This file contains 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
<form action="" method="get" id="form-pag-quit-gar" name="form-pag"> | |
<div class="row row-fields"> | |
<div class="col-md-4"> | |
<label class="control-label" for="pagador">Pagador</label> | |
<select class="form-control" name="pagador" id="pagador" data-actual-label="<?php echo $this->pagador_user->nome; ?>" data-actual-value="<?php echo $this->pagador; ?>"> | |
<option value="0">Selecione</option> | |
</select> | |
</div> | |
<div class="col-md-4"> | |
<label class="control-label" for="favorecido">Favorecido</label> |
This file contains 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
$('body').tooltip({ | |
selector: '[data-toggle=tooltip]' | |
}); |
This file contains 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
// Set a custom Layout | |
$this->_helper->layout->setLayout('default'); | |
// Set a custom Template | |
$this->_helper->viewRenderer->setRender('list2'); |
This file contains 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
.idea/ | |
cache/* | |
# Ignorar os arquivos do diretório | |
application/tmp/templates_c/* | |
# Porém, manter o diretório versionado | |
!application/tmp/templates_c/.gitkeep |
OlderNewer