JuniorOsho
(usa Debian)
Enviado em 11/05/2007 - 21:42h
<?php // FAZEMOS O INCLUDE DO ARQUIVO PARA VER SE A SESS?O EST? ATIVA
require_once("config.php");
// FAZEMOS O INCLUDE DO ARQUIVO CONFIG
require_once("verifica.php");
// MONTAMOS NOSSA SQL
?>
<title>..:: SIFAC - Sistema::..</title><style>
<body>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" >
<!-- REFERÊNCIA AO ARQUIVO DAS FUNÇÕES-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="t="text/h; charset=UTF-8" 1>
<style type="text/css"> <!-- não sei pra que serve ainda-->
<script type="text/javascript" src="global.js"> <!-- chama o java global funções -->
<script type="text/javascript" src="popcalendar.js"></script>
<script src='prototype.js' language='JavaScript'></script>
<script src='partialupdater.js' language='JavaScript'></script>
<script language="javascript" src="local_verificar.js"></script>
<script language="javascript" src="mensagens.js"></script>
<!-- New popup calendar -->
<!--link rel="stylesheet" type="text/css" media="all" href="calendar/calendar-win2k-1.css" title="win2k-1" /-->
<!--script type="text/javascript" src="calendar/calendar.js"></script-->
<!--script type="text/javascript" src="calendar/calendar-en.js"></script-->
<!--script type="text/javascript" src="calendar/calendar-setup.js"></script-->
<script language="JavaScript" type="text/javascript">
function check_cpf()
{
if( "cnpj" == 'cnpj')
{
if(!verificaValorCampo (document.frmclientesf.txtcpf, "", true, msgCGCObr))
return false;
// if(!verificaValorCampo (document.frmclientesf.txtcpf, "isCGC", true, msgCGCInv))
// return false;
}
else
{
if(!verificaValorCampo (document.frmclientesf.txtcpf, "", true, msgCPFObr))
return false;
if(!verificaValorCampo (document.frmclientesf.txtcpf, "isCPF", true, msgCPFInv))
return false;
}
return true;
}
</script>
<script language="JavaScript" type="text/javascript">
function envia()
{
document.forms[0].submit();
}
var tecla;
function capturaTecla(e)
{
if(document.all)
tecla=event.keyCode;
else
{
tecla=e.which;
}
if(tecla==13)
{
document.forms[0].submit();
}
}
document.onkeydown = capturaTecla;
<script language="javascript">
// Rollover dos menus
function mOvr(src,clrOver) {
if (!src.contains(event.fromElement)) {
src.style.cursor = 'hand';
src.bgColor = clrOver;
}
}
function mOut(src,clrIn) {
if (!src.contains(event.toElement)) {
src.style.cursor = 'default';
src.bgColor = clrIn;
}
}
function mClk(src) { if(event.srcElement.tagName=='TD'){
src.children.tags('A')[0].click();
}
}
</script>
<!-- função çocal-->
</head>
<body leftmargin="0" topmargin="0" style="background: rgb(192, 192, 192) url(none) repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; color: rgb(0, 0, 0);" alink="#000099" link="#000099" marginheight="0" marginwidth="0" vlink="#990099">
<table cellpadding="0" cellspacing="1">
<tbody>
<tr>
<td width="777">
<script type="text/javascript" src="ew.js"> </script>
<script type="text/javascript" src="popcalendar.js"></script>
<form name="frmclientesf" id="frmclientesf" action="post_clientesf.php" method="post" onSubmit=" return validaForm();">
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" id="listmenu-o" href="listmenu_o.css" title="Vertical 'Office'">
<link rel="alternate stylesheet" type="text/css" id="listmenu-v" href="listmenu_v.css" title="Vertical 'Earth'">
<link rel="alternate stylesheet" type="text/css" id="listmenu-h" href="listmenu_h.css" title="Horizontal 'Earth'">
<link rel="stylesheet" type="text/css" id="fsmenu-fallback" href="listmenu_fallback.css">
<link rel="stylesheet" type="text/css" href="divmenu.css">
<script language="javascript" src="local_verificar.js"></script>
<script language="javascript" src="mensagens.js"></script>
<script type="text/javascript" src="fsmenu.js">
</script>
</head>
<body>
- SIFAC - C A D A S T R O -- P E S S O A -- F I S I C A !
</table>
</td>
</tr>
<tr>
<td style="background-color: rgb(204, 204, 204);" colspan="2">
<table>
<tbody>
<tr>
<td>
<table style="background-color: rgb(192, 192, 192);" class="texto" border="1" cellpadding="1" cellspacing="2">
<tbody>
<tr>
<td style="background-color: rgb(192, 192, 192);"> NOME.: </td>
<td style="background-color: rgb(204, 204, 204);" bgcolor="#f5f5f5">
<input class="texto" type="text" name="txtnome" size="35" maxlength="100" onKeyUp="somente_txt(this);"></td>
</tr>
<tr>
<td style="background-color: rgb(192, 192, 192);">NASCIMENTO</td>
<td style="background-color: rgb(204, 204, 204);" bgcolor="#f5f5f5">
<input onfocus='bgcolor="red";' name="txtdata" size="10" onkeypress="return valida(this)">
<input type="image" style="width: 24px; height: 27px;" alt="DATA" onClick="popUpCalendar(this, this.form.txtdata,'dd/mm/yyyy');return false;" src="img/calendario.jpg" >(dd/mm/aaaa) </td>
</tr>
<tr>
<td style="background-color: rgb(192, 192, 192);"> CPF .:</td>
<td style="background-color: rgb(204, 204, 204);" bgcolor="#f5f5f5">
<input name="txtcpf" size="15" maxlength="15" onkeypress="mascara(this,cpf)" >
<input type="image" style="width: 45px; height: 27px;" onclick="return check_cpf()" src="img/cpf.jpg" ></td>
</tr>
<tr>
<td style="background-color: rgb(192, 192, 192);"> RG.: </td>
<td style="background-color: rgb(204, 204, 204);" bgcolor="#f5f5f5">
<input name="txtrg" size="30" maxlength="30"> </td>
</tr>
<tr>
<td style="background-color: rgb(192, 192, 192);">SSP.:</td>
<td style="background-color: rgb(204, 204, 204);" bgcolor="#f5f5f5">
<select name="txtssp" id="txtssp" value="">
<option value="AC">AC</option>
<option value="AL">AL</option>
<option value="AM">AM</option>
<option value="AP">AP</option>
<option value="BA">BA</option>
<option value="CE" selected="selected">CE</option>
<option value="DF">DF</option>
<option value="ES">ES</option>
<option value="GO">GO</option>
<option value="MA">MA</option>
<option value="MG">MG</option>
<option value="MS">MS</option>
<option value="MT">MT</option>
<option value="PA">PA</option>
<option value="PB">PB</option>
<option value="PE">PE</option>
<option value="PI">PI</option>
<option value="PR">PR</option>
<option value="RJ">RJ</option>
<option value="RN">RN</option>
<option value="RO">RO</option>
<option value="RR">RR</option>
<option value="RS">RS</option>
<option value="SC">SC</option>
<option value="SE">SE</option>
<option value="SP">SP</option>
<option value="TO">TO</option>
</select>
</td>
<tr>
<td style="background-color: rgb(192, 192, 192);">SEXO.:</td>
<td style="background-color: rgb(204, 204, 204);" bgcolor="#f5f5f5">
<select name="txtsexo" id="txtsexo" value="">
<option value="M">F</option>
<option value="F" selected="selected">M</option>
</select>
</td>
<tr>
<td style="background-color: rgb(192, 192, 192);"> ESTADO CIVIL.:</td>
<td style="background-color: rgb(204, 204, 204);" bgcolor="#f5f5f5">
<select name="txtestadocivil">
<option value="Solteiro">Solteiro</option>
<option value="Casado" selected="selected">Casado</option>
<option value="Divorciado">Divorciado</option>
<option value="Desquitado">Desquitado</option>
<option value="Viúvo">Viúvo</option>
</select>
</td>
</tr>
<tr>
<td style="background-color: rgb(192, 192, 192);">MÃE.:</td>
<td style="background-color: rgb(204, 204, 204);" bgcolor="#f5f5f5">
<input name="txtmae" size="35" maxlength="50" onKeyUp="somente_txt(this);"> </td>
</tr>
<tr>
<td style="background-color: rgb(192, 192, 192);">PAI.:</td>
<td style="background-color: rgb(204, 204, 204);" bgcolor="#f5f5f5">
<input name="txtpai" size="35" maxlength="100" onKeyUp="somente_txt(this);"></td>
</tr>
<tr>
<td style="background-color: rgb(192, 192, 192);">ENDEREÇO.:</td>
<td style="background-color: rgb(204, 204, 204);" bgcolor="#f5f5f5">
<input name="txtendereco" size="35" maxlength="100" onKeyUp="somente_txt(this);"> </td>
</tr>
<tr>
<td style="background-color: rgb(192, 192, 192);">N.:</td>
<td style="background-color: rgb(204, 204, 204);" bgcolor="#f5f5f5">
<input name="txtn" size="30" maxlength="20"> </td>
</tr>
<tr>
<td style="background-color: rgb(192, 192, 192);">COMPLEMENTO.:</td>
<td style="background-color: rgb(204, 204, 204);" bgcolor="#f5f5f5">
<input name="txtcomplemento" size="35" maxlength="50"></td>
</tr>
<tr>
<td style="background-color: rgb(192, 192, 192);">BAIRRO.:</td>
<td style="background-color: rgb(204, 204, 204);" bgcolor="#f5f5f5">
<input name="txtbairro" size="35" maxlength="50" > </td>
</tr>
<tr>
<td style="background-color: rgb(192, 192, 192);">FONE.:</td>
<td style="text-align: left; background-color: rgb(204, 204, 204);" bgcolor="#f5f5f5">
<input name="txtfone" id="txtfone" size="15" maxlength="14" onkeypress="mascara(this,telefone)">(DD)0000-0000
</tr>
<tr>
<td style="background-color: rgb(192, 192, 192);">CELULAR.:
<td style="background-color: rgb(204, 204, 204);" bgcolor="#f5f5f5">
<input name="txtcelular" id="txtcelular" size="15" maxlength="50" onkeypress="mascara(this,telefone)">(DD)0000-0000</td>
</tr>
<td style="background-color: rgb(192, 192, 192);">E-MAIL- @.:</td>
<td style="background-color: rgb(204, 204, 204);" bgcolor="#f5f5f5">
<input name="txtemail" size="35" maxlength="50" value="nome@sevidor.com"></td>
</tr>
<tr>
<td style="background-color: rgb(192, 192, 192);">CIDADE</td>
<td style="background-color: rgb(204, 204, 204);" bgcolor="#f5f5f5">
<input name="txtcidade" size="30" maxlength="50" onKeyUp="somente_txt(this);"></td>
</tr>
<tr>
<tr>
</tbody>
</table>
</td>
<td>
<table style="background-color: rgb(192, 192, 192);" class="texto" border="1" cellpadding="1" cellspacing="2">
<tbody>
<td style="background-color: rgb(192, 192, 192);">ESTADO - UF.:</td>
<td style="background-color: rgb(204, 204, 204);" bgcolor="#f5f5f5">
<select name="txtuf" id="txtuf" >
<option value=""></option>
<option value="AC">AC</option>
<option value="AL">AL</option>
<option value="AM">AM</option>
<option value="AP">AP</option>
<option value="BA">BA</option>
<option value="CE" selected="selected">CE</option>
<option value="DF">DF</option>
<option value="ES">ES</option>
<option value="GO">GO</option>
<option value="MA">MA</option>
<option value="MG">MG</option>
<option value="MS">MS</option>
<option value="MT">MT</option>
<option value="PA">PA</option>
<option value="PB">PB</option>
<option value="PE">PE</option>
<option value="PI">PI</option>
<option value="PR">PR</option>
<option value="RJ">RJ</option>
<option value="RN">RN</option>
<option value="RO">RO</option>
<option value="RR">RR</option>
<option value="RS">RS</option>
<option value="SC">SC</option>
<option value="SE">SE</option>
<option value="SP">SP</option>
<option value="TO">TO</option>
</select>
</td>
</tr>
<tr>
<td style="background-color: rgb(192, 192, 192);">CEP.:</td>
<td style="background-color: rgb(204, 204, 204);" bgcolor="#f5f5f5">
<input name="txtcep" size="16" maxlength="9" onkeypress="mascara(this,cep)">
<a href="http://www.correios.com.br/servicos/cep/cep_default.cfm"></a>
<img style="width: 80px; height: 20px;" src="img/correios.jpeg">(00000-000)</td>
</td>
</tr>
<tr>
<td style="background-color: rgb(192, 192, 192);">PROFISSÃO.:</td>
<td style="background-color: rgb(204, 204, 204);" bgcolor="#f5f5f5">
<input name="txtprofissao" size="30" maxlength="50" onKeyUp="somente_txt(this);"></td>
</tr>
<tr>
<td style="background-color: rgb(192, 192, 192);">EMPRESA.:</td>
<td style="background-color: rgb(204, 204, 204);" bgcolor="#f5f5f5">
<input name="txtempresa" size="30" maxlength="50" onKeyUp="somente_txt(this);"> </td>
</tr>
<tr>
<td style="background-color: rgb(192, 192, 192);">FONE-EMPRESA.:</td>
<td style="background-color: rgb(204, 204, 204);" bgcolor="#f5f5f5">
<input name="txtfoneempresa" size="16" id=" txtfoneempresa" size="20" maxlength="20" onkeypress="mascara(this,telefone)">(DD)0000-0000 </td>
</tr>
<tr>
<td style="background-color: rgb(192, 192, 192);">REFERENCIA - 1.:</td>
<td style="background-color: rgb(204, 204, 204);" bgcolor="#f5f5f5">
<input name="txtreferencia1" size="30" maxlength="50" onKeyUp="somente_txt(this);"> </td>
</tr>
<tr>
<td style="background-color: rgb(192, 192, 192);">FONE- 1.:</td>
<td style="background-color: rgb(204, 204, 204);" bgcolor="#f5f5f5">
<input name="txtfone1" id="txtfone1" size="16" maxlength="20" onkeypress="mascara(this,telefone)">(DD)0000-0000</td>
</tr>
<tr>
<td style="background-color: rgb(192, 192, 192);">REFERENCIA- 2.:</td>
<td style="background-color: rgb(204, 204, 204);" bgcolor="#f5f5f5">
<input name="txtreferencia2" size="30" maxlength="50" onKeyUp="somente_txt(this);"> </td>
</tr>
<tr>
<td style="background-color: rgb(192, 192, 192);">FONE- 2</td>
<td style="background-color: rgb(204, 204, 204);" bgcolor="#f5f5f5">
<input name="txtfone2" id="txtfone2" size="16" maxlength="20" onkeypress="mascara(this,telefone)">(DD)0000-0000
</td>
</tr>
<tbody>
<tr>
<td style="background-color: rgb(192, 192, 192);">REFERENCIA-3.:</td>
<td style="background-color: rgb(204, 204, 204);" bgcolor="#f5f5f5">
<input name="txtreferencia3" id="txtreferencia3" size="30" maxlength="50" onKeyUp="somente_txt(this);"> </td>
</tr>
<tr>
<td style="background-color: rgb(192, 192, 192);">FONE- 3.:</td>
<td style="background-color: rgb(204, 204, 204);" bgcolor="#f5f5f5">
<input name="txtfone3" id="txtfone3" size="16" maxlength="20" onkeypress="mascara(this,telefone)">(DD)0000-0000</td>
</tr>
<tr>
<td style="background-color: rgb(192, 192, 192);">REFERENCIA- 4.:</td>
<td style="background-color: rgb(204, 204, 204);" bgcolor="#f5f5f5">
<input name="txtreferencia4" id="txtreferencia4" size="30" maxlength="50" onKeyUp="somente_txt(this);"> </td>
</tr>
<tr>
<td style="background-color: rgb(192, 192, 192);">FONE- 4.:</td>
<td style="background-color: rgb(204, 204, 204);" bgcolor="#f5f5f5">
<input name="txtfone4" id="txtfone4" size="16" maxlength="20" onkeypress="mascara(this,telefone)">(DD)0000-0000</td>
</tr>
<tr>
<td style="background-color: rgb(192, 192, 192);">OBS.: </td>
<td style="background-color: rgb(204, 204, 204);" bgcolor="#f5f5f5">
<textarea name="txtobs" id="txtobs" cols="50" rows="4" ></textarea>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
<button onSubmit="bug();" type="submit" name="pbotao4" value="Button Enviar" onClick="MM_showHideLayers('Layer1','','show');" target="escondido">
<img src="img/salvar.jpg" height="60" type="image" id="vaiporra" width="60" style="vertical-align: middle;" />Salvar</button>
<button onclick="doPrint(this.form);" type="reset" name="pbotao4" value="Button Enviar" >
<img src="img/imprimir.jpg" height="60" type="image" width="60" style="vertical-align: middle;" />Imprimir</button>
<button type="reset" name="pbotao4" value="Button Enviar" onclick=" pesquisax();" >
<img href="mostratab.php" target="destino" src="img/lupa.jpeg" height="60" type="image" width="60" style="vertical-align: middle;" />Procurar</button
<button type="reset" name="pbotao4" value="Button Enviar">
<img src="img/lixo.jpg" height="60" type="image" width="60" style="vertical-align: middle;" />Excluir</button>
<button onclick="fsair();" type="reset" name="pbotao4" value="Button Enviar">
<img src="img/sair.gif" height="60" type="image" width="60" style="vertical-align: middle;" /> Sair do Sistema</button>
<p>
<span id='error' style='color:red;'></span>
</p>
</p>
</form>
</td>
</tr>
</tbody>
</table>
<table align="center" border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody>
<tr>
<td bgcolor="#f1f2ee" height="40">
<table>
<tbody>
<tr>
<td>
<table align="right" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td class="rodape" bgcolor="#f1f2ee">
<table>
<tbody>
<tr>
<td class="texto" width="500">
Copyright
© <span style="font-weight: bold;">SIFAC CADASTRO PESSOA FISICA !</span>
<br>
Suporte kafkapvh@hotmail.com<br>
Fone: 85 9125-4360 [Developer by ]<span style="text-decoration: underline;"><span style="font-weight: bold;">SIFAC</span></span> </td>
<span style="text-decoration: underline;"><span style="font-weight: bold;">SIFAC</span></span> </td>
<div id="Layer1" style="position:absolute; left:186px; top:171px; width:362px; height:53px; z-index:1; visibility: hidden;">
<div align="center"><font color="#0066FF" size="7"><strong>Aguarde..........</strong></font></div>
<div id="Layer2" style="position:absolute; left:186px; top:171px; width:362px; height:53px; z-index:1; visibility: hidden;">
<div align="center"><font color="#0066FF" size="7"><strong>Salvo com Sucesso..........</strong></font></div>
</div>
</tbody>
</table>
</tbody>
</table>
</tbody>
</table>
</tbody>
</table>
</body>
</html>