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
<table width="789" height="369" border="0" cellspacing="0" style="float:left;margin-left:0px;margin-bottom:5px;width:789px;height:369px;border-right-width:1px;border-right-style:solid;border-right-color:black;border-left-width:1px;border-left-style:solid;border-left-color:black;border-top-width:1px;border-top-style:solid;border-top-color:black;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:black;"> | |
<tr> | |
<td width="31" rowspan="12" valign="bottom" style="font-family:arial;font-size:7px;border-right-width:1px;border-right-style:dotted;text-align:center;vertical-align:middle;"> | |
<div align="center"><img src="IMAGEM LATERAL PARA ÁREA DE COLAGEM.jpg"></div> | |
</td> | |
<td width="7" height="30" style="font-family:arial;font-size:7px;vertical-align:top;"> </td> | |
<td width="124" style="font-family:arial;font-size:7px;vertical-align:top;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:black;"> | |
<img src="LOGO CORREIOS.jpg" width="119" height="25" a |
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
# Useful aliases | |
alias ws='cd /var/www' | |
PATH=${PATH}:~/android-sdks/tools | |
PATH=${PATH}:~/android-sdks/platform-tools | |
PATH=${PATH}:~/.config/composer/vendor/bin | |
# history search arrow keys | |
bind '"\e[A": history-search-backward' | |
bind '"\e[B": history-search-forward' | |
bind '"\e[C": forward-char' |
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
$lista_sms = []; | |
foreach($algo as $a) { | |
$sms = [ | |
"id"=>id_unico_na_zenvia, | |
"from"=>nome_empresa, | |
"to"=>numero_com_ddi_ddd, | |
"msg"=>msg, | |
"schedule"=>se_quiser_agendar, | |
"callbackOption"=>"FINAL", |
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
## nginx 1.8.0 | |
server { | |
listen 80; | |
server_name FQND; | |
root /var/www/novosga/public; | |
index index.php; | |
## Enable CORS | |
#add_header Access-Control-Allow-Origin *; |
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 | |
class ErrorController extends Zend_Controller_Action { | |
public function init() { | |
parent::init(); | |
} | |
public function errorAction() { | |
$errors = $this->_getParam('error_handler'); | |
$boot = $this->getInvokeArg('bootstrap'); |
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
var checkboxes = function() { | |
var items = new Array(); | |
return { | |
"add": function(val) { | |
items.push(val); | |
}, | |
"addUnique": function(val) { | |
Array.prototype.inArray = function(comparer) { | |
for(var i = 0; i < this.length; i++) { | |
if(comparer(this[i])) return 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
<?php | |
$fooTable = new Application_Model_Useroptions; | |
$options = $fooTable->getUserOptions(); | |
$checkboxes = new Zend_Form_Element_MultiCheckbox('checkboxes'); | |
$checkboxes->setLabel('Options'); | |
$checkboxes->setRegisterInArrayValidator(false); | |
foreach ($options as $opt) | |
$checkboxes->addMultiOption($opt->id_option, $opt->title); |
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 | |
class Application_Form_Logindropdown extends Zend_Form { | |
public function init(){ | |
$this->setMethod('post') | |
->setAction('/login') | |
->setEnctype('UTF-8'); | |
$email = new Zend_Form_Element_Email('email'); | |
$email->setAttrib('placeholder', 'Digite seu e-mail') |
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
$email = new Zend_Form_Element_Text('email'); | |
$email->setLabel('E-mail') | |
->addFilter('stringTrim') | |
->setAttribs(array('onDrag' => 'return false', 'onDrop' => 'return false', 'onPaste' => 'return false', 'autocomplete' => 'off', 'class'=>'input-xlarge')) | |
->setRequired(true) | |
->addValidators(array(array('EmailAddress'),array('Db_RecordExists', false, array('table' => 'usuarios','field' => 'email')))) | |
->addErrorMessages(array(Zend_Validate_Db_RecordExists::ERROR_RECORD_FOUND => 'O e-mail informado não está cadastrado.')); | |
$cpf = new Zend_Form_Element_Text('cpf'); | |
$cpf->setValidators(array(array('StringLength', false, array(14, 14)))) |
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 | |
class Application_Model_MPDF { | |
public function createPDF($HTML, $filename) { | |
define('_MPDF_PATH', APPLICATION_PATH.'/../library/MPDF/'); | |
include(_MPDF_PATH.'mpdf.php'); | |
$mpdf = new mPDF('utf-8', 'A4'); | |
$mpdf->SetWatermarkImage('../public/images/logo.png'); | |
$mpdf->showWatermarkImage = true; | |
$mpdf->WriteHTML($HTML); |
NewerOlder