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
public function listarContasReceber( $dados = null ){ | |
if(!empty($dados['classTipoDespesa'])){ | |
$query[] = "cn.class_ctd_id = {$dados['classTipoDespesa']}"; | |
} | |
/* | |
if(isset($dados['centroDeCusto'])){ | |
if(is_array($dados['centroDeCusto'])){ |
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
success: (retorno) => { | |
let tr = ` | |
<table class='table'> | |
<thead> | |
<th></th> | |
<th>Descrição</th> | |
<th>Tamanho</th> | |
<th>Modelo</th> | |
<th>Tecido</th> | |
<th>Madeira</th> |
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
let nome = "Leandro"; | |
let sobrenome = "Lima"; | |
//concatenação de string sem template string. | |
console.log("O " + nome + " " + sobrenome + " é um programador."); | |
//resultado: O Leandro Lima é um programador. | |
//com template string ficaria assim: | |
console.log(`O ${nome} ${sobrenome} é um programador`); | |
//resultado: O Leandro Lima é um programador. |
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
//1ª maneira | |
listaDeNomes.forEach((item) => { | |
console.log(item); | |
}) | |
//2ª maneira | |
listaDeNomes.forEach(item => console.log(item)); |
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
let listaDeNomes = ['Flávio', 'Rogers', 'Júlia']; | |
listaDeNomes.forEach(function(item){ | |
console.log(item); | |
}); |
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 id="meuform" method="post" action="algumarquivo.php"> | |
<input type="text" name="nome" /> | |
</form> | |
<input type="submit" form="meuform" /> |
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 | |
GROUP_CONCAT(IFNULL(nome_frutas, 'NULL')) | |
FROM | |
frutas |
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
CREATE TABLE `frutas` ( | |
`nome_frutas` varchar(50) DEFAULT NULL, | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
PRIMARY KEY (`id`) | |
) | |
INSERT INTO `frutas` (`nome_frutas`) VALUES ('maçã'); | |
INSERT INTO `frutas` (`nome_frutas`) VALUES (NULL); | |
INSERT INTO `frutas` (`nome_frutas`) VALUES ('banana'); | |
INSERT INTO `frutas` (`nome_frutas`) VALUES (NULL); |
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> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Teste</title> | |
<script src="jquery-3.2.1.js"></script> | |
</head> | |
<body> | |
<form id='form' action="teste.php" method="POST"> | |
<input type="text" name="nome[]" value='nome1'> |
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> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Teste</title> | |
<script src="jquery-3.2.1.js"></script> | |
</head> | |
<body> | |
<form id='form' action="teste.php" method="POST"> | |
<input type="text" name="nome" value='nome1'> |
NewerOlder