Ir para conteúdo

POWERED BY:

Arquivado

Este tópico foi arquivado e está fechado para novas respostas.

RELUVIARI

relacionamento entre tabelas

Recommended Posts

caras tipo eu to na maior duvida......tipo eu tenho uma pagina onde mostra os dados do cliente ...essa pagina tem um botao chamado dependentes e qdo eu clicar nesse botao tem q aparecer os dependentes desse cliente ..como faço isso carassssssse esses dependentes sao de outra tabela e ajudem com essas instrucoes caras valeuuuuu

Compartilhar este post


Link para o post
Compartilhar em outros sites

<% Session.LCID = 1046 if Request.QueryString("proposta") <> "" then txt = "select datacadastro1=CONVERT(nvarchar(20), datacadastro, 103), vigencia1=CONVERT(nvarchar(20), vigencia, 103), * from propostas where proposta = " + Request.QueryString("proposta") set sql = Conn.Execute(txt) p_proposta = sql("proposta") p_nome = sql("nome") p_vigencia = sql("vigencia1") p_valor = sql("valor") p_datacadastro = sql("datacadastro1") p_tipopessoa = sql("tipopessoa") p_CNPJcpf = sql("CNPJcpf") p_inscrest = sql("inscrest") p_ddd = sql("ddd") p_telefone = sql("telefone") p_complemento = sql("complemento") p_comsid = sql("comsid") end if%><html><head><title>:::Proposta:::</title><script LANGUAGE="JavaScript">function FormataReais(fld, milSep, decSep, e) {var sep = 0;var key = '';var i = j = 0;var len = len2 = 0;var strCheck = '0123456789';var aux = aux2 = '';var whichCode = (window.Event) ? e.which : e.keyCode;if (whichCode == 13) return true;key = String.fromCharCode(whichCode); if (strCheck.indexOf(key) == -1) return false; len = fld.value.length;for(i = 0; i < len; i++)if ((fld.value.charAt(i) != '0') && (fld.value.charAt(i) != decSep)) break;aux = '';for(; i < len; i++)if (strCheck.indexOf(fld.value.charAt(i))!=-1) aux += fld.value.charAt(i);aux += key;len = aux.length;if (len == 0) fld.value = '';if (len == 1) fld.value = '0'+ decSep + '0' + aux;if (len == 2) fld.value = '0'+ decSep + aux;if (len > 2) {aux2 = '';for (j = 0, i = len - 3; i >= 0; i--) {if (j == 3) {aux2 += milSep;j = 0;}aux2 += aux.charAt(i);j++;}fld.value = '';len2 = aux2.length;for (i = len2 - 1; i >= 0; i--)fld.value += aux2.charAt(i);fld.value += decSep + aux.substr(len - 2, len);}return false;}function FormataData(Campo, teclapres){ var tecla = teclapres.keyCode; var vr = new String(Campo.value); vr = vr.replace("/", ""); vr = vr.replace("/", ""); tam = vr.length + 1; if (tecla != 9 && tecla != 8){ if (tam > 2 && tam < 5) Campo.value = vr.substr(0, 2) + '/' + vr.substr(2, tam); if (tam >= 5 && tam <=10) Campo.value = vr.substr(0,2) + '/' + vr.substr(2,2) + '/' + vr.substr(4,4); } } </SCRIPT></head><form action="F_proposta.asp?proposta="<%=Request.QueryString("proposta") %>"> <fieldset style="width: 901; height: 320; padding: 10"><legend> <b><font face="Arial" size="3" color="#000080"> DADOS DA CONTRATANTE</font><font face="Verdana, Arial, Helvetica, sans-serif" size="3" color="#000080"></b> </font></legend><body bgcolor="#FFFFFF"> <table cellspacing="1" bgcolor="#000000" width="100%"> <tr align="left" valign="middle" bgcolor="#ffffe1"> <td height= "100%"><font color="#000000"><b><font face="Verdana, Arial, Helvetica, sans-serif" size="1">PROPOSTA</font></b></font></td> <td height= "100%"><font color="#000000"><b><font face="Verdana, Arial, Helvetica, sans-serif" size="1">VIGÊNCIA</font></b></font></td> <td height= "100%"><font color="#000000"><b><font face="Verdana, Arial, Helvetica, sans-serif" size="1">VALOR DA PROPOSTA</font></b></font></td> <td height= "100%"><font color="#000000"><b><font face="Verdana, Arial, Helvetica, sans-serif" size="1">DATA DO CADASTRAMENTO</font></b></font></td> </tr><tbody> <tr align="left" valign="middle" bgcolor="#FFFFFF"> <td width="92" height="25" > <input type="hidden" name="proposta" value="<%=p_proposta%>"><%=p_proposta%> </td> <td width="165" height="25" > <input onKeydown="java script:FormataData(this,event)" name="vigencia" maxLength="10" class=formata size="18" value="<%=p_vigencia%>"> </td> <td width="173" height="25" > <input type=text name=valor length=15 onKeyPress="return(FormataReais(this,'.',',',event))"value="<%=p_valor%>" size="20"> </td> <td width="63" height="25"> <input onKeydown="java script:FormataData(this,event)" name="datacadastro" maxLength="10" class=formata size="18"value="<%=p_datacadastro%>"> </td> </tr></tbody> </table><br><table width="877" cellspacing="1" bgcolor="#000000"> <tr align="left" valign="middle" bgcolor="#ffffe1"> <td width="517"><font color="#000000"><b><font face="Verdana, Arial, Helvetica, sans-serif" size="1">NOME</font></b></font></td> <td width="92"><font color="#000000"><b><font face="Verdana, Arial, Helvetica, sans-serif" size="1">PESSOA FISÍCA</font></b></font></td> <td width="258"><font color="#000000"><b><font face="Verdana, Arial, Helvetica, sans-serif" size="1">CNPJ/CPF</font></b></font></td> </tr> <tbody> <tr align="left" valign="middle" bgcolor="#FFFFFF"> <td width="517"height="33%"> <input name="nome" type="text" size="56" value="<%=p_nome%>" onChange="this.value=toUpperCase(this)"> </td> <td width="92"height="33%">          <input name="tipopessoa" type="checkbox" value="on" checked <%=p_tipopessoa%>> </td> <td width="258"height="33%"> <input name="CNPJcpf" type="text" size="20" value="<%=p_CNPJcpf%>"> </td> </tr></tbody></table><br><table width="877" cellspacing="1" bgcolor="#000000"> <tr align="left" valign="middle" bgcolor="#ffffe1"> <td width="245"><font color="#000000"><b><font face="Verdana, Arial, Helvetica, sans-serif" size="1">RG/INSCRIÇÃO ESTADUAL</font></b></font></td> <td width="30"><font color="#000000"><b><font face="Verdana, Arial, Helvetica, sans-serif" size="1">DDD</font></b></font></td> <td width="277"><font color="#000000"><b><font face="Verdana, Arial, Helvetica, sans-serif" size="1">TELEFONE</font></b></font></td> <td width="257"><font color="#000000"><b><font face="Verdana, Arial, Helvetica, sans-serif" size="1">COMPLEMENTO</font></b></font></td> <td width="52"><font color="#000000"><b><font face="Verdana, Arial, Helvetica, sans-serif" size="1">COM SID</font></b></font></td> </tr> <tbody> <tr align="left" valign="middle" bgcolor="#FFFFFF"> <td width="245"> <input type="text" name="inscrest" size="20" value="<%=p_inscrest%>"> </td> <td width="30"> <input type="text" name="ddd" size="3" value="<%=p_ddd%>"> </td> <td width="277"> <input type="text" name="telefone" size="20" value="<%=p_telefone%>"> </td> <td width="257"> <input type="text" name="complemento" size="20" value="<%=p_complemento%>"> </td> <td width="52">     <input name="comsid" type="checkbox" value="ON" checked></td> </tr></tbody></table></fieldset><div id="Layer1" style="position:absolute; left:435px; top:227px; width:50px; height:20px; z-index:1"> <input type="SUBMIT" name="Enviar" value="Enviar"></div></form><div id="Layer2" style="position:absolute; left:502px; top:227px; width:42px; height:28px; z-index:2"> <input name="button" type="button"onClick="history.go(-1)" value="Voltar"></div><div id="Layer3" style="position:absolute; left:440px; top:264px; width:109px; height:47px; z-index:3"> <% if Request.QueryString("proposta") <> "" then Response.Write("<center>") Response.Write("<form action='titular.asp?proposta='" + proposta + ">") Response.Write("<input type='SUBMIT' name='TITULAR' value='TITULAR'>") Response.Write("</form>") Response.Write("</center>") end if %></div></body></html>QUANDO EU CLICR NO BOTAO TITULAR TEM Q APARECER OS DADOS DO TITULAR EM RELACAO A PROPOSTA<!--#include virtual="/sbov/include/samcilconexao.asp"--><% Session.LCID = 1046 if Request.QueryString("titular") <> "" then proposta= sql Request.Form("proposta") set sql = Conn.Execute("Select * FROM propostas INNER JOIN titulares ON propostas.proposta = titulares.proposta") else set RS = Conn.Execute("Select * FROM titulares")contrato = sql("contrato")categoria =sql ("categoria")p_nome = sql("nome")composicao =sql ("composicao")p_sexo =sql ("sexo")p_carteira =sql ("carteira")p_vigencia = sql("vigencia")p_datavenc = sql("datavenc")origem =sql ("origem")p_assinatura =sql ("assinatura")p_concessionaria =sql ("concessionaria")p_diavencto =sql ("diavencto")p_rg =sql("rg")p_ddd =sql("ddd")p_fone =sql("fone")p_ramal =sql("ramal")p_telefonecomercial =sql("telefonecomercial")p_titularcontratante =slq("titularcontratante")p_instrucao =sql("instrucao")p_procedencia =sql("procedencia")p_codpropaganda =sql("codpropanganda")p_preexistentes =sql("preexistentes")p_agravo =sql("agravo")p_preferencial =sql("preferencial")p_enviardoctos =sql("enviardoctos")concorentes =sql("concorrentes")udomiciliar = sql("udomiciliar")p_podontologico =sql("podontologico")p_agencia =sql("agencia")p_dv =sql("dv") p_cc =sql("cc") p_dv2 =sql("dv2") end if%><html><head><title>:::Titular:::</title><script LANGUAGE="JavaScript">function FormataData(Campo, teclapres){ var tecla = teclapres.keyCode; var vr = new String(Campo.value); vr = vr.replace("/", ""); vr = vr.replace("/", ""); tam = vr.length + 1; if (tecla != 9 && tecla != 8){ if (tam > 2 && tam < 5) Campo.value = vr.substr(0, 2) + '/' + vr.substr(2, tam); if (tam >= 5 && tam <=10) Campo.value = vr.substr(0,2) + '/' + vr.substr(2,2) + '/' + vr.substr(4,4); } } </SCRIPT></head><form action="F_titular.asp" method="post" ><fieldset style="width: 901; height: 320; padding: 10"> <legend> <b><font face="Arial" size="3" color="#000080">TITULAR</font><font face="Verdana, Arial, Helvetica, sans-serif" size="3" color="#000080"> </font></b> </legend><body bgcolor="#FFFFFF"> <br> <table cellspacing="1" bgcolor="#000000" width="100%"> <tr align="left" valign="middle" bgcolor="#ffffe1"> <td height= "100%"><font color="#000000"><b><font face="Verdana, Arial, Helvetica, sans-serif" size="1">CONTRATO</font></b></font></td> <td height= "100%"><font color="#000000"><b><font face="Verdana, Arial, Helvetica, sans-serif" size="1">COTEGORIA</font></b></font></td> </tr><tbody> <tr align="left" valign="middle" bgcolor="#FFFFFF"> <td width="" height="25" > <select size="1" name="contrato" > <%While not sql.EOF %> <option value="<%=rs("contrato")%>"><%=rs("contrato")%></option> <%sql.MoveNext Wend %> </select> </td> <td width="" height="25" > <select size="1" name="categoria" > <%While not rs.EOF %> <option value="<%=rs("categoria")%>"><%=rs("categoria")%></option> <%rs.MoveNext Wend %> </select> </td> </tr></tbody></table><br> <table width="100%" cellspacing="1" bgcolor="#000000"> <tr align="left" valign="middle" bgcolor="#ffffe1"> <td width=""><font color="#000000"><b><font face="Verdana, Arial, Helvetica, sans-serif" size="1">NOME</font></b></font></td> <tbody> <tr align="left" valign="middle" bgcolor="#FFFFFF"> <td width=""height="33%"> <input name="nome" type="text" size="60" value="<%=p_nome%>"> </td> </tr> </tbody> </table> <br> <table width="100%" cellspacing="1" bgcolor="#000000"> <tr align="left" valign="middle" bgcolor="#ffffe1"> <td height= "100%"><font color="#000000"><b><font face="Verdana, Arial, Helvetica, sans-serif" size="1">COMPOSIÇÃO</font></b></font></td> <td width=""><font color="#000000"><b><font face="Verdana, Arial, Helvetica, sans-serif" size="1">SEXO</font></b></font></td> <td height= "100%"><font color="#000000"><b><font face="Verdana, Arial, Helvetica, sans-serif" size="1">CARTEIRA</font></b></font></td> </tr> <tbody> <tr align="left" valign="middle" bgcolor="#FFFFFF"> <td width="" height="25" > <select size="1" name="composicao"> <%While not rs.EOF %> <option value="<%=rs("composicao")%>"><%=rs("composicao")%></option> <%rs.MoveNext Wend %> </select> </td> <td width=""> <select size="1" name="sexo"value="<%=p_sexo%>"> <option>MASCULINO</option> <option>FEMININO</option> </select> <td width="" height="25" > <input name="carteira" type="text " value="<%=p_carteira%>" size="20"> </td></tr></tbody></table><br><table width="100%" cellspacing="1" bgcolor="#000000"> <tr align="left" valign="middle" bgcolor="#ffffe1"> <td width=""><font color="#000000"><b><font face="Verdana, Arial, Helvetica, sans-serif" size="1">VIGENCIA</font></b></font></td> <td width=""><font color="#000000"><b><font face="Verdana, Arial, Helvetica, sans-serif" size="1">DATA DE NASCIMENTO</font></b></font></td> <td height= "100%"><font color="#000000"><b><font face="Verdana, Arial, Helvetica, sans-serif" size="1">ORIGEM</font></b></font></td> </tr> <tbody> <tr align="left" valign="middle" bgcolor="#FFFFFF"> <td width=""> <input onKeyDown="java script:FormataData(this,event)" name="vigencia" maxlength="10" class=formata size="18"value="<%=p_vigencia%>"> </td> <td width=""> <input onKeydown="java script:FormataData(this,event)" name="datanasc" maxLength="10" class=formata size="18"value="<%=p_datanasc%>"> </td> <td width="" height="25" > <select size="1" name="origem" value="<%=p_origem%>"> <option>**NOVO BEN</option> <option>CC 59 A-PERM.NA</option> <option>CC 59 B-PERM. N</option> <option>CC 60 A-PERM. N</option> <option>CC 60 B-PERM.NA</option> <option>CCC</option> <option>EX BENEF.> 59 A</option> <option>EX COLABORADOR</option> <option>EX.BENEF.ATÉ 59</option> <option>RCP - SEM LIMIT</option> <option>REDUÇÃO DE CARE</option> </select> </td></tr></tbody></table><br> <table width="100%" cellspacing="1" bgcolor="#000000"> <tr align="left" valign="middle" bgcolor="#ffffe1"> <td width=""><font color="#000000"><b><font face="Verdana, Arial, Helvetica, sans-serif" size="1">Dt. ASSINATURA </font></b></font></td> <td width=""><font color="#000000"><b><font face="Verdana, Arial, Helvetica, sans-serif" size="1">CONCESSIONARIA</font></b></font></td> <td width=""><font color="#000000"><b><font face="Verdana, Arial, Helvetica, sans-serif" size="1">DIA VENCTO</font></b></font></td> <td width=""><font color="#000000"><b><font face="Verdana, Arial, Helvetica, sans-serif" size="1">RG</font></b></font></td> </tr> <tbody> <tr align="left" valign="middle" bgcolor="#FFFFFF"> <td width=""> <input name="assinatura" type="text" size="30" value="<%=p_assinatura%>"> </td> <td width=""> <input name="concessionaria" type="text" size="30" value="<%=p_concessionaria%>"> </td> <td width=""> <input onKeydown="java script:FormataData(this,event)" name="datanasc" maxLength="10" class=formata size="18"value="<%=p_diavencto%>"> </td> <td width=""> <input name="rg" type="text" size="15" value="<%=p_rg%>"> </td> </tr> </tbody> </table> <br> <table width="877" cellspacing="1" bgcolor="#000000"> <tr align="left" valign="middle" bgcolor="#ffffe1"> <td width="30"><font color="#000000"><b><font face="Verdana, Arial, Helvetica, sans-serif" size="1">DDD</font></b></font></td> <td width="261"><font color="#000000"><b><font face="Verdana, Arial, Helvetica, sans-serif" size="1">FONE</font></b></font></td> <td width="109"><font color="#000000"><b><font face="Verdana, Arial, Helvetica, sans-serif" size="1">RAMAL</font></b></font></td> <td width="252"><font color="#000000"><b><font face="Verdana, Arial, Helvetica, sans-serif" size="1">TELEFONE COMERCIAL</font></b></font></td> <td width="209"><font color="#000000"><b><font face="Verdana, Arial, Helvetica, sans-serif" size="1">TITULAR É CONTRATANTE?</font></b></font></td> </tr> <tbody> <tr align="left" valign="middle" bgcolor="#FFFFFF"> <td width="30"> <input name="ddd" type="text" size="3" value="<%=p_ddd%>"> </td> <td width="261"> <input name="fone" type="text" size="25"value="<%=p_fone%>"> </td> <td width="109"> <input name="ramal" type="text" size="10" value="<%=p_ramal%>"> </td> <td width="252"> <input name="telefonecomercial" type="text" size="25" value="<%=p_telefonecomercial%>"> </td> <td width="209"> <select size="1" name="titularcontratante" value="<%=p_titularcontratante%>"> <option>SIM</option> <option>NÂO</option> </select> </td> </tr> </tbody> </table> <br> <table cellspacing="1" bgcolor="#000000" width="100%"> <tr align="left" valign="middle" bgcolor="#ffffe1"> <td height= "100%"><font color="#000000"><b><font face="Verdana, Arial, Helvetica, sans-serif" size="1">GRAU DE INSTRUÇÃO</font></b></font></td> <td height= "100%"><font color="#000000"><b><font face="Verdana, Arial, Helvetica, sans-serif" size="1">PROCEDENCIA</font></b></font></td> <td height= "100%"><font color="#000000"><b><font face="Verdana, Arial, Helvetica, sans-serif" size="1">CÓDIGO PROPAGANDA</font></b></font></td> </tr> <tbody> <tr align="left" valign="middle" bgcolor="#FFFFFF"> <td width="" height="25" > <select size="1" name="instrucao" value="<%=p_instrucao%>"> <option>Primeiro Grau</option> <option>Segundo Grau</option> <option>Superior</option> <option>Não Informado</option> </select> </td> <td width="" height="25" > <select size="1" name="procedencia" value="<%=p_procedencia%>"> <option>Ind. Associado</option> <option>Campanha</option> <option>Propaganda</option> <option>Não Informado</option> <option>Outros</option> </select> </td> <td width="" height="25" > <select size="1" name="codpropaganda" value="<%=p_codpropaganda%>"> <option>ABR. DE ONIBUS LESTE</option> <option>ABR. DE ONIBUS NORTE</option> <option>ABR. DE ONIBUS OESTE</option> <option>ABRIGO DE ANIBUS SUL</option> <option>BACK BUS LESTE</option> <option>BACK BUS NORTE</option> <option>BACK BUS OESTE</option> <option>BACK BUS SUL</option> <option>BANNER</option> <option>BUSDOOR CENTRO</option> <option>BUSDOOR LESTE</option> <option>BUSDOOR NORTE</option> <option>BUSDOOR OESTE</option> <option>BUSDOOR SUL</option> <option>FAIXAS</option> <option>FITA DE VIDEO</option> <option>FOLDER</option> <option>FOLHETO DIVICOM</option> <option>FOLHETO SBOV</option> <option>FRO.AV.BANDEIRANTES</option> <option>FRON.BRIG.FARIA LIMA</option> <option>FRON.WASHINGTON LUIZ</option> <option>FRONTS AV. TIRADENTES</option> <option>FRONTS ESPRAIADAS</option> <option>FRONTS MARG. TIETE</option> <option>FRONTS PEDRO. MORAIS</option> <option>FRONTS REBOUCAS</option> <option>FRONTS REBOUCAS</option> <option>FRONTS RUBEN BERTA</option> <option>GAZETA TATUAPE</option> <option>GAZETA ZONA LESTE</option> <option>JORNAL BUTANTA</option> <option>JORNAL DE PINHEIROS</option> <option>JORNAL DO ITAIM</option> <option>JORNAL ESTADO DE SP</option> <option>JORNAL METRO NEWS</option> <option>JORNAL STO AMARO</option> <option>JORNAL STO AMARO</option> <option>JORNAL VL. MADALENA</option> <option>METROCOM</option> <option>OUTDOOR CENTRO</option> <option>OUTDOOR GUARULHOS</option> <option>OUTDOOR LESTE</option> <option>OUTDOOR NORTE</option> <option>OUTDOOR OESTE</option> <option>OUTDOOR OSASCO</option> <option>REVISTA EXAME</option> <option>SERVENTUARIOS</option> </select> </tr> </tbody></table><br> <table cellspacing="1" bgcolor="#000000" width="877"> <tr align="left" valign="middle" bgcolor="#ffffe1"> <td height= "100%" width="247"><font color="#000000"><b><font face="Verdana, Arial, Helvetica, sans-serif" size="1">PREEXISTENTES</font></b></font></td> <td height= "100%" width="52"><font color="#000000"><b><font face="Verdana, Arial, Helvetica, sans-serif" size="1">AGRAVO</font></b></font></td> <td height= "100%" width="149"><font color="#000000"><b><font face="Verdana, Arial, Helvetica, sans-serif" size="1">PREFERENCIAL</font></b></font></td> <td height= "100%" width="100"><font color="#000000"><b><font face="Verdana, Arial, Helvetica, sans-serif" size="1">ENVIAR DOCTOS.</font></b></font></td> <td height= "100%" width="313"><font color="#000000"><b><font face="Verdana, Arial, Helvetica, sans-serif" size="1">CONCORRENTES</font></b></font></td> </tr><tbody> <tr align="left" valign="middle" bgcolor="#FFFFFF"> <td width="247" height="25" > <select size="1" name="preexistentes" value="<%=p_preexistentes%>"> <option>NENHUMA</option> <option>COBERTURA PARCIALl</option> <option>ARAVO</option> </select> </td> <td width="52" height="25" > <select size="1" name="agravo" value="<%=p_agravo%>"> <option>1</option> <option>2</option> <option>3</option> <option>4</option> <option>3</option> </select> <td width="149" height="15" > <input name="prefrencial " type="text"size = "10"valeu="<%=p_preferencial%>"></td> <td width="100">           <input name="enviardoctos" type="checkbox" value="<%if p_enviardoctos= "F" then Response.Write("ON") end if%>"></td></td><td width="313" height="25" > <select size="1" name="concorentes" value="<%=p_concorentes%>"> <option>AME</option> <option>COOPERHODIA</option> <option>FAMED FALGETANO</option> <option>FALGETANO</option> <option>GOLDEN CROSS</option> <option>HOSP. MONTREAL</option> <option>HOSP. N. SRA. PENHA</option> <option>HOSPITAL CRUZEIRO DO SUL</option> <option>INTERCLINICAS</option> <option>INTERMEDICI</option> <option>INTER SAUDE</option> <option>UNIMED</option> <option>UNIVERSAL SAUDE / SINDFAZ</option> <option>AMICO</option> <option>AMIL</option> <option>BAMERINDUS</option> <option>BLUELIFE</option> <option>BEN SAUDE</option> <option>CRUZEIRO DO SUL</option> <option>COOPERSAUDE</option> <option>COOPERHODIA</option> </select></tr></tbody></table><br> <table cellspacing="1" bgcolor="#000000" width="877"> <tr align="left" valign="middle" bgcolor="#ffffe1"> <td height= "100%" width="677"><font color="#000000"><b><font face="Verdana, Arial, Helvetica, sans-serif" size="1">UNIDADE DOMICILIAR</font></b></font></td> <td height= "100%" width="193"><font color="#000000"><b><font face="Verdana, Arial, Helvetica, sans-serif" size="1">POSSUI PLANO ODONTOLOGICO?</font></b></font></td> </tr><tbody> <tr align="left" valign="middle" bgcolor="#FFFFFF"> <td width="677" height="25" > <select size="1" name="udomiciliar" value="<%=p_udomiciliar%>"> <option>LAPA 1</option> <option>OSASCO</option> <option>SANTANA</option> <option>SANTO AMARO</option> <option>SAO MATEUS</option> <option>SAO MIGUEL</option> <option>TABOAO</option> <option>TAMANDARE</option> <option>TATUAPÉ</option> </select></td><td width="193">                       <input name="podontologico" type="checkbox" value="<%if p_podontologico= "F" then Response.Write("ON") end if%>"></td></td></tr></tbody></table><br> <fieldset> <legend> <b><font face="Arial" size="3" color="#000080"> DADOS PARA DEBITO EM CONTA CORRENTE</font><font face="Verdana, Arial, Helvetica, sans-serif" size="3" color="#000080"> </font></b> </legend> <table width="875" cellspacing="1" bgcolor="#000000"> <tr align="left" valign="middle" bgcolor="#ffffe1"> <td width="92"><font color="#000000"><b><font face="Verdana, Arial, Helvetica, sans-serif" size="1">AGÊNCIA</font></b></font></td> <td width="23"><font color="#000000"><b><font face="Verdana, Arial, Helvetica, sans-serif" size="1">DV</font></b></font></td> <td width="723"><font color="#000000"><b><font face="Verdana, Arial, Helvetica, sans-serif" size="1">CONTA CORRENTE</font></b></font></td> <td width="24"><font color="#000000"><b><font face="Verdana, Arial, Helvetica, sans-serif" size="1">DV</font></b></font></td> </tr> <tbody> <tr align="left" valign="middle" bgcolor="#FFFFFF"> <td width="92"> <input name="agencia" type="text" size="10" value="<%=p_agencia%>"> </td> <td width="23"> <input name="dv" type="text" size="2" value="<%=p_dv%>"> </td> <td width="723"> <input name="cc" type="text" size="85" value="<%=p_cc%>"> </td> <td width="24"> <input name="dv2" type="text" size="2" value="<%=p_dv2%>"> </td> </tr> </tbody></table></fieldset> <div id="Layer1" style="position:absolute; left:411px; top:740px; width:42px; height:33px; z-index:1"> <input type="SUBMIT" name="Enviar" value="Enviar"></div></form><div id="Layer2" style="position:absolute; left:471px; top:740px; width:37px; height:24px; z-index:2"> <input name="button" type="button"onClick="history.go(-1)" value="Voltar"></div><div id="Layer3" style="position:absolute; left:392px; top:773px; width:65px; height:29px; z-index:3"> <form action="D_produtos.asp" method="post"> <input type="SUBMIT" name="DEPENDETES" value="DEPENDENTES"> </form></div><br></body></html>ME AJUDEM AI CARASSSSSSSSSSSS VALEWWWWWWWWWWWWWWWW

Compartilhar este post


Link para o post
Compartilhar em outros sites

cara poe ai só os campos das tabelastipoTABELA 1CAMPO1,CAMPO2...TABELA 2CAMPO1,CAMPO2...

Compartilhar este post


Link para o post
Compartilhar em outros sites

cara você pode fazer assimna pagina do cliente você faz com que este botão link para uma pagina dependentes passando por querystring o id do cliente ai nesta outra pagina você faz uma consulta para pegar os dependentes se existirem

Compartilhar este post


Link para o post
Compartilhar em outros sites

o então carrega as informações dos dependentes tudo jundo e usa a tag span para deixa invisivel as informações dos dependentes e so mostrar quando clicar no botãosei lá...você pode ter uma outra ideia melhor

Compartilhar este post


Link para o post
Compartilhar em outros sites

Viajando...vamos supor que esteja assim: tb_cliente, tb_depend.tb_cliente >>> id_cli, nome, email, endereco...tb_depend >>> id_depe, id_clie, nome...sendo id_cli relacionado com id_clie..............................................'recuperando o id do cliente pela url "dependentes"mostra = request.querystring("id_cli")'aqui você seleciona todos os dependentes referentes à esse idSQL = "Select * From tb_depend Where id_clie = "&mostrausando relacionamentos em tabelas só chega a complicar em casos de insert e update. quando você vai fazer um select apenas, essa é uma forma simples de se fazer...Se é isso o que está precisando. Qq coisa, manda pra nóis...

Compartilhar este post


Link para o post
Compartilhar em outros sites

e ai caras blzzzzzzzzzentao cara até beleza obrigado pela forcamais cara e para mim colocar uns botoes proximo anterior primeiro e ultimo(tipo o cliente vai ter um montão de dependentes e tenho q paginarisso)o exemplo q você me passsou e para mostrar apenas um e se for varios como faço??????/valewww caras

Compartilhar este post


Link para o post
Compartilhar em outros sites

×

Informação importante

Ao usar o fórum, você concorda com nossos Termos e condições.