- Fazer checkout na branch development.
- Criar uma branch com a feature seguindo o padrão de nomenclatura abaixo(Ex: feature/100-nfe-relatorio-saida)
- Commitar na branch de feature
- Fazer um push na branch da feature
- Fazer checkout na branch development
- Fazer um pull origin development
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
$('#login').click(function() { | |
if($('#nome').val() == ""){ | |
alert('Voce deve informar o nome!'); | |
$('#nome').focus(); | |
}else if($('#email').val() == ""){ | |
alert('Voce deve informar um email!'); | |
$('#email').focus(); | |
}else if($('#cpf').val() == ""){ | |
alert('Voce deve informar o cpf!'); | |
$('#cpf').focus(); |
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 | |
# calcula as quintas feiras entre duas datas e mostra na tela | |
$raw = '01. 01. 2017'; | |
$start = DateTime::createFromFormat('d. m. Y', $raw); | |
$end = clone $start; | |
$end->add(new DateInterval('P1M')); | |
// mostra todas as quintas-feiras entre $start e $end | |
$periodInterval = DateInterval::createFromDateString('first thursday'); |
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
if(isset($_FILES['imagem01']['name']) && $_FILES["imagem01"]["error"] == 0) { | |
$resultado01 = upload::imagem($_FILES['imagem01'], "imagem01", "ImagensEmpresa","png|jpg|gif|jpeg|pjpeg",array()); | |
$sqlUp = "UPDATE empresa SET imagem01 = '".$resultado01."' WHERE codempresa = ".$_POST["codempresa"]; | |
db_query($conexao, $sqlUp); | |
} | |
if(isset($_FILES['imagem02']['name']) && $_FILES["imagem02"]["error"] == 0) { | |
$resultado02 = upload::imagem($_FILES['imagem02'], "imagem02", "ImagensEmpresa","png|jpg|gif|jpeg|pjpeg",array()); | |
$sqlUp = "UPDATE empresa SET imagem02 = '".$resultado02."' WHERE codempresa = ".$_POST["codempresa"]; | |
db_query($conexao, $sqlUp); |
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
function gerarGridAcesso() { | |
$('#hdn_metodo_search').val('searchACE'); | |
gerarGridJSON('formUsuario', 'transactionAcesso.php', 'div_manutencao_acesso'); | |
$('#hdn_metodo_search').val(''); | |
} | |
function gerarGridDocumentosPendentes() { | |
$('#hdn_metodo_search').val('searchUXD'); | |
gerarGridJSON('formUsuario', 'transactionUsuariosxDocumentoPendente.php', 'div_manutencao_pendente'); | |
$('#hdn_metodo_search').val(''); |
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
function validaCamposForm() { | |
var vSAlerta = "Erros ocorreram durante o envio de seu formul\xe1rio.\n\nPor favor, fa\xe7a as seguintes corre\xe7\xf5es:\n"; | |
var vSErro = 'N'; | |
var elements = document.getElementsByClassName('obrigatorio'); | |
for(var i = 0; i < elements.length; i++) { | |
if ((elements[i].tagName == "INPUT") || (elements[i].tagName == "TEXTAREA")) { | |
if(elements[i].title != "") { | |
if(!elements[i].value || elements[i].value == "0") { | |
var vSErro = 'S'; |
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
function validaCamposForm() { | |
/* Versão ES6 */ | |
var elements2 = document.querySelectorAll('.obrigatorio'); | |
var mapeados = Array.prototype.map.call(elements2, | |
element => ({ type: element.tagName, value: element.value, title: element.title }) | |
); | |
var filtrados = mapeados.filter(mapeado => mapeado.type == "INPUT")[0]; | |
let retorno = []; |
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
function validInputByDiv(div_name) | |
{ | |
const fields = document.querySelectorAll(`${div_name} .divObrigatorio`); | |
const vazios = [...fields].map(field => { if (!field.value) `* O campo ${field.title} deve ser preenchido!`;}); | |
} | |
const itens = [...document.querySelectorAll('input[name="ckSolicitaCompra[]"]:checked')]; | |
let valores = itens.reduce(function(filtrados, item) { | |
if (item.checked) { | |
filtrados.push(item.value); | |
} |
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
<!DOCTYPE html> | |
<html lang="pt-BR"> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /> | |
<title> | |
qualquer coisa de titulo | |
</title> | |
<meta name="description" content="" /> |
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
/* ============================================= | |
5.0 - Home | |
============================================= */ | |
.full-home {min-height: 100vh;} | |
.half-home {min-height: 50vh;padding-top: 150px;padding-bottom: 150px;} | |
.home-subscribe .form-control {height: 60px;} | |
.particles-home, | |
.particles-home canvas, | |
.particles-home .particles-js-canvas-el {position: absolute !important; left: 0 !important; right: 0 !important; top: 0 !important; bottom: 0 !important; height: 100% !important; width: 100% !important; } |
OlderNewer