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
//NA SUA PÁGINA minha.php | |
$(function(){ | |
$('.scroll').click(function(e){ | |
e.preventDefault(); | |
}); | |
$('#nav ul li a').smoothScroll(); | |
}); | |
//NO ARQUIVO smoothScroll.js | |
jQuery.fn.smoothScroll = function(){ |
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
INSERT INTO `bancos` (`cod`, `banco`) VALUES (001,'001 - BANCO DO BRASIL S/A'); | |
INSERT INTO `bancos` (`cod`, `banco`) VALUES (002,'002 - BANCO CENTRAL DO BRASIL'); | |
INSERT INTO `bancos` (`cod`, `banco`) VALUES (003,'003 - BANCO DA AMAZONIA S.A'); | |
INSERT INTO `bancos` (`cod`, `banco`) VALUES (004,'004 - BANCO DO NORDESTE DO BRASIL S.A'); | |
INSERT INTO `bancos` (`cod`, `banco`) VALUES (007,'007 - BANCO NAC DESENV. ECO. SOCIAL S.A'); | |
INSERT INTO `bancos` (`cod`, `banco`) VALUES (008,'008 - BANCO MERIDIONAL DO BRASIL'); | |
INSERT INTO `bancos` (`cod`, `banco`) VALUES (020,'020 - BANCO DO ESTADO DE ALAGOAS S.A'); | |
INSERT INTO `bancos` (`cod`, `banco`) VALUES (021,'021 - BANCO DO ESTADO DO ESPIRITO SANTO S.A'); | |
INSERT INTO `bancos` (`cod`, `banco`) VALUES (022,'022 - BANCO DE CREDITO REAL DE MINAS GERAIS SA'); | |
INSERT INTO `bancos` (`cod`, `banco`) VALUES (024,'024 - BANCO DO ESTADO DE PERNAMBUCO'); |
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 slug($string,$tabela,$coluna){ | |
if(is_string($string)) { | |
$string = strtolower(trim(utf8_decode($string))); | |
$string = str_replace('?','',$string); | |
$string = str_replace(':','',$string); | |
$string = str_replace('!','',$string); | |
$string = str_replace('.','',$string); |
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 gerar_codigos($tabela,$coluna){ | |
$sel = $this->seleciona("SELECT * FROM ".$tabela." ORDER BY ".$coluna." DESC LIMIT 1"); | |
$contar = mysql_num_rows($sel); | |
if($contar == '0'){ | |
$codigo = '00001'; | |
}else{ |
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
$arquivo = 'profissoes_lista.txt'; | |
$ponteiro = fopen ($arquivo,"r"); | |
while (!feof ($ponteiro)) { | |
//LÊ UMA LINHA DO ARQUIVO | |
$linha = fgets($ponteiro,4096); | |
$linha = utf8_encode($linha); | |
$linha = str_replace('ÿþ','',$linha); | |
$linha = explode(',',$linha); |
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
<script> | |
$(function() { | |
$("#demo1").maskMoney(); | |
$("#demo2").maskMoney({thousands:'', decimal:'.'}); | |
$("#demo3").maskMoney({allowZero:false, allowNegative:true, defaultZero:false}); | |
$("#demo4").maskMoney({symbol:'R$ ', thousands:'.', decimal:',', symbolStay: true}); | |
$("#demo5").maskMoney('mask'); | |
$("#demo6").maskMoney('destroy'); | |
}); | |
</script> |
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 | |
function registraVisita($afiliado_id){ | |
$sql = $this->seleciona("SELECT COUNT(*) FROM visitas WHERE data = CURDATE()"); | |
$resultado = mysql_fetch_row($sql); | |
// Verifica se é uma visita (do visitante) | |
$nova = (!isset($_SESSION['ContadorVisitas'])) ? true : false; |
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 name="escolaridade" id="escolaridade"> | |
<option value="Ensino Fundamental">Ensino Fundamental</option> | |
<option value="Ensino Medio">Ensino Medio</option> | |
<option value="Ensino Superior">Ensino Superior</option> | |
<option value="Ensino Fundamental Incompleto">Ensino Fundamental Incompleto</option> | |
<option value="Ensino Medio Incompleto">Ensino Medio Incompleto</option> | |
<option value="Ensino Superior Incompleto">Ensino Superior Incompleto</option> | |
</select> |
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
$meses = array('Jan', 'Fev', 'Mar', 'Abr', 'Mai', 'Jun', 'Jul', 'Ago', 'Set', 'Out', 'Nov', 'Dez'); | |
$meses = array('01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12'); |
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 | |
$url = 'https://graph.facebook.com/v2.6/me/messenger_profile?access_token=<seu_access_token>'; | |
$ch = curl_init( $url ); | |
$payload = '{"whitelisted_domains":["https://xml_set_unparsed_entity_decl_handler(parser, handler).com.br"]}'; | |
curl_setopt( $ch, CURLOPT_POSTFIELDS, $payload ); | |
curl_setopt( $ch, CURLOPT_HTTPHEADER, array('Content-Type:application/json')); |
OlderNewer