let obj; let masc; function fMasc(objeto, mascara) { obj = objeto; masc = mascara; setTimeout(fMascEx, 1); } function fMascEx() { obj.value = masc(obj.value); } // TELEFONE (fixo e celular com DDD) function mTel(tel) { tel = tel.replace(/\D/g, ""); if (tel.length <= 10) { // FIXO: (99) 9999-9999 tel = tel.replace(/^(\d{2})(\d{4})(\d{0,4})$/, "($1) $2-$3"); } else { // CELULAR: (99) 9XXXX-XXXX tel = tel.replace(/^(\d{2})(\d{5})(\d{0,4})$/, "($1) $2-$3"); } return tel; } // CNPJ function mCNPJ(cnpj) { cnpj = cnpj.replace(/\D/g, ""); cnpj = cnpj.replace(/^(\d{2})(\d)/, "$1.$2"); cnpj = cnpj.replace(/^(\d{2})\.(\d{3})(\d)/, "$1.$2.$3"); cnpj = cnpj.replace(/\.(\d{3})(\d)/, ".$1/$2"); cnpj = cnpj.replace(/(\d{4})(\d)/, "$1-$2"); return cnpj; } // CPF function mCPF(cpf) { cpf = cpf.replace(/\D/g, ""); cpf = cpf.replace(/(\d{3})(\d)/, "$1.$2"); cpf = cpf.replace(/(\d{3})(\d)/, "$1.$2"); cpf = cpf.replace(/(\d{3})(\d{1,2})$/, "$1-$2"); return cpf; } // DATA (dd/mm/yyyy) function mData(birth) { birth = birth.replace(/\D/g, ""); birth = birth.replace(/(\d{2})(\d)/, "$1/$2"); birth = birth.replace(/(\d{2})(\d)/, "$1/$2"); return birth; } // HORA (hh:mm) function mHora(hora) { hora = hora.replace(/\D/g, ""); hora = hora.replace(/(\d{2})(\d)/, "$1:$2"); return hora; } // CEP (99999-999) function mCEP(cep) { cep = cep.replace(/\D/g, ""); cep = cep.replace(/^(\d{5})(\d)/, "$1-$2"); return cep; } // SOMENTE NÚMEROS function mNum(num) { return num.replace(/\D/g, ""); }
|
Olá, Faça seu Login. Ou Cadastre-se. |
| Session loja_id | |
| Session loja_classe | |
| Session loja_buybox | |
| Session loja_shopper_id | |
| path : /home/guiasos/www/ | loja/header.php |
| não logado | lojas/estalogado.php |
| Abriu | lojas/cartolacompleta.php |
| Query | lojas/menu_superior_categorias.php |
| nome: | lojas/index.php |
| Query: select * from ecom_produtos WHERE disponivel='True' AND cat LIKE 'ARTIGOS DE CHIMARRÃO' AND loja_id='' order by nome asc | lojas/index.php |
| Incluindo bottomdebug.php | lojas/bottom.php |