Ir para conteúdo
Fórum Script Brasil

jucacabala

Membros
  • Total de itens

    172
  • Registro em

  • Última visita

Posts postados por jucacabala

  1. então fica assim (valeu JCMP)

    <%

    str = "select * from curso order by curso asc"

    str2 = "select * from curso_aluno where cod_aluno = '"&cod_aluno&"'"

    set rs = server.createobject("adodb.recordset")

    set rs2 = server.createobject("adodb.recordset")

    rs.Open str, conexaodb, 3, 3

    rs2.Open str2, conexaodb, 3, 3

    if rs.Eof then

    %>

    N&atilde;o possui cursos cadastrados

    <%

    else

    Do While Not rs.Eof

    rs2.MoveFirst

    matriculado = false

    id_curso = rs.Fields("id_curso")

    Do While Not rs2.Eof

    id2 = rs2.Fields("id_curso")

    if id_curso = id2 then matriculado = true

    rs2.MoveNext

    Loop

    %>

    <input name="id_curso" type="checkbox" id="id_curso" value="<% = rs.Fields("id_curso") %>" <% if matriculado then %>checked="checked" <% end if %> /><% = rs.Fields("curso")%>

    <%

    rs.movenext

    loop

    End if

    set rs = nothing

    %>

  2. olás, tentei a tarde inteira mas não rolou... É o seguinte

    como faço para exibir os dados de uma tabela e verificar se os registro contem em outra tabela

    e se conter dar um checked no meu checkbox.

    tem como? :ph34r:

    str = "select * from curso order by curso asc"

    str2 = "select * from curso_aluno where cod_aluno = '"&cod_aluno&"'"

    Set rs = conexaodb.Execute(str)

    Set rs2 = conexaodb.Execute(str2)

    <%

    if rs.Eof then

    %>

    N&atilde;o possui cursos cadastrados

    <%

    else

    Do While Not rs.Eof

    id_curso = rs.Fields("id_curso")

    id2 = rs2.Fields("id_curso")

    response.write id2

    %>

    <input name="id_curso" type="checkbox" id="id_curso" value="<% = rs.Fields("id_curso") %>" <% if id_curso = id2 then %>checked="checked" <% end if %> />

    <% = rs.Fields("curso")%>&nbsp;&nbsp;

    <%

    rs.movenext

    loop

    End if

    set rs = nothing

    %>

    desta forma esta dando Checked somente no ultimo id2 da tabela...

  3. funcionou:

    <!--#include file="../conexao.inc" -->

    <%

    DIM conexaodb, str, rs, ativo_site

    ativo_site = Request.QueryString("ativo_site")

    linkpag = "listar-aluno.asp?ativo_site="&ativo_site

    TamanhoPagina = 20 '-- qtde de registros por página

    qtdecol = 1 '-- qtde de colunas da tabela de listagem

    str = "SELECT * FROM aluno where ativo_site= "&ativo_site

    str = str & " order by nome asc "

    set rs = Server.CreateObject("ADODB.Recordset")

    rs.PageSize = TamanhoPagina

    rs.CacheSize = TamanhoPagina

    rs.CursorType = 3

    Response.CacheControl="no-cache"

    rs.open str, conexaodb

    If Request.Form("acao") = "enviar" Then

    for i = 1 to Request.Form("totlinhas")

    debito = Request.Form("debito"&i)

    galeria = Request.Form("galeria"&i)

    ativo_site = Request.Form("ativo_site"&i)

    id_aluno =Request.Form("id_aluno"&i)

    str = "UPDATE aluno SET "

    str = str & "debito="& debito &","

    str = str & "galeria="& galeria &","

    str = str & "ativo_site="& ativo_site &" "

    str = str & "WHERE id_aluno=" & id_aluno

    conexaodb.execute(str)

    next

    Response.Redirect("restrito.asp")

    End If

    %>

    <!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="text/html; charset=iso-8859-1" />

    <title>Tempo e Arte - escola de artes</title>

    <link href="../estilos.css" rel="stylesheet" type="text/css">

    <script language="JavaScript">

    <!--

    function validaForm(){

    //validar nome

    d = document.cadastro;

    if (d.nome.value == ""){

    alert("O campo nome deve ser preenchido!");

    d.nome.focus();

    return false;

    }

    return true;

    }

    //-->

    </script>

    <style type="text/css">

    <!--

    body {

    margin-left: 3px;

    margin-top: 3px;

    margin-right: 0px;

    margin-bottom: 0px;

    }

    -->

    </style>

    </head>

    <body>

    <table width="752" border="0" cellpadding="0" cellspacing="0" bgcolor="#F3F3F3">

    <tr>

    <tudo><!--#include file="menu.asp" --></tudo>

    </tr><form action="busca.asp" method="post" name="cadastro" id="cadastro" onsubmit="return validaForm()">

    <tr>

    <tudo align="center" valign="top" class="verdana12"><table width="98%" border="0" cellpadding="0" cellspacing="10" bgcolor="#FFFFFF">

    <tr>

    <tudo align="left">Se preferir realize uma busca por aluno: </tudo>

    </tr>

    <tr>

    <tudo align="left">nome aluno:

    <input name="nome" type="text" class="box3" id="nome" size="50" /> <span class="verdana11bold">

    <input type="submit" class="botao" value="Buscar" />

    </span></tudo>

    </tr>

    <tr>

    <tudo height="20" align="left">&nbsp;</tudo>

    </tr>

    </table></tudo>

    </tr></form>

    <tr>

    <tudo height="200" align="center" valign="top" class="verdana12">

    <form name="frm" method="post" action="listar-aluno.asp?ativo_site=<%=ativo_site%>">

    <input type="hidden" name="acao" value="enviar"><table width="98%" border="0" cellpadding="0" cellspacing="10" bgcolor="#FFFFFF">

    <%

    if rs.Eof then

    %>

    <tr>

    <tudo height="170" align="center" valign="middle" class="verdana12"><font color="#000066">N&atilde;o possui alunos cadastrados.</font></tudo>

    </tr>

    <%

    else

    i=1

    %>

    <tr>

    <tudo colspan="3">

    <table width="100%" border="0" cellspacing="1" cellpadding="0">

    <tr>

    <tudo class="menu">Nome</tudo>

    <tudo align="center" class="menu">Cursos</tudo>

    <tudo align="center" class="menu">D&eacute;bito</tudo>

    <tudo align="center" class="menu">Galeria</tudo>

    <tudo align="center" class="menu">Ativo</tudo>

    <tudo align="center" class="menu">Acessar</tudo>

    </tr>

    <tr>

    <tudo colspan="6"><img src="imagens/spacer.gif" width="10" height="5" /></tudo>

    </tr>

    <!--#include file="../include/geral_pag01.asp" -->

    <%

    cod_aluno = rs.Fields("cod_aluno")

    str1 = "select curso from curso_aluno where cod_aluno = '"&cod_aluno&"'"

    Set rs1 = conexaodb.Execute(str1)

    If bgColor = "#FDF5F2" Then

    bgColor = "#F9F9F9"

    Else

    bgColor = "#FDF5F2"

    End If

    %>

    <tr bgcolor="<%=bgColor%>">

    <tudo height="25" class="arial12"><% = rs.Fields("nome") %>&nbsp;<% = rs.Fields("sobrenome") %></tudo>

    <tudo align="center" class="arial12">

    <%

    if rs.Eof then

    %>

    -

    <% else

    Do While Not rs1.Eof

    %>

    <% = rs1.Fields("curso") %><br>

    <%

    rs1.movenext

    loop

    end if

    set rs1 = nothing

    %> </tudo>

    <tudo align="center">

    <input name="id_aluno<%=i%>" type="hidden" id="id_aluno<%=i%>" value="<% = rs.Fields("id_aluno")%>">

    <select name="debito<%=i%>" class="box3" id="debito<%=i%>">

    <option <%if rs("debito") = "1" then %> selected <%end if%> value="1">sim</option>

    <option <%if rs("debito") = "0" then %> selected <%end if%> value="0">n&atilde;o</option>

    </select> </tudo>

    <tudo align="center">

    <select name="galeria<%=i%>" class="box3" id="galeria<%=i%>">

    <option <%if rs("galeria") = "1" then %> selected="selected" <%end if%> value="1">sim</option>

    <option <%if rs("galeria") = "0" then %> selected="selected" <%end if%> value="0">n&atilde;o</option>

    </select> </tudo>

    <tudo align="center">

    <select name="ativo_site<%=i%>" id="ativo_site<%=i%>">

    <option <%if rs("ativo_site") = "1" then %> selected="selected" <%end if%> value="1">sim</option>

    <option <%if rs("ativo_site") = "0" then %> selected="selected" <%end if%> value="0">n&atilde;o</option>

    </select> </tudo>

    <tudo align="center" class="arial12"><a href="altera-dados.asp?id_aluno=<% = rs.Fields("id_aluno")%>"><img src="imagens/icon-pencil.gif" width="22" height="22" border="0" /></a></tudo>

    </tr>

    <%

    i = i + 1

    rs.movenext

    loop

    %>

    <tr>

    <tudo colspan="6">&nbsp;</tudo>

    </tr>

    <tr>

    <tudo colspan="6" align="center">P&aacute;ginas:&nbsp;

    <!--#include file="../include/geral_pag02.asp" --></tudo>

    </tr>

    </table> </tudo>

    </tr>

    <tr>

    <tudo colspan="3" align="center"><span class="verdana11bold">

    <input type="submit" class="botao" value=" Enviar " />

    </span></tudo>

    </tr>

    <% end if %>

    </table><input name="totlinhas" type="hidden" value="<% = i - 1 %>">

    </form></tudo>

    </tr>

    <tr>

    <tudo bgcolor="#FFFFFF"><img src="imagens/spacer.gif" width="10" height="3" /></tudo>

    </tr>

    <tr>

    <tudo><!--#include file="rodape.asp" --></tudo>

    </tr>

    </table>

    </form>

    </body>

    </html>

  4. já fiz assim e deu certo,

    da uma olhada neste link que la também tem alguma coisa

    http://www.visualbasic.mat.br/vb/artigos_b...rch=excel&B3=OK

    <!--#include file="../conexao.inc" -->

    <%

    Dim conexaodb, email, arquivo_excel

    if session("id")="" then

    response.redirect "index.asp"

    end if

    str = "select email from cadastro order by email asc"

    str2 = "select email from cadastro order by email asc"

    call abreconexao

    Set rs = conexaodb.Execute(str)

    Set rs2 = conexaodb.Execute(str2)

    rs.MoveFirst

    arquivo_excel= "emails.xls"

    set fso = createobject("scripting.filesystemobject")

    Set act = fso.CreateTextFile(server.mappath(arquivo_excel), true)

    act.WriteLine("<html><body>")

    act.WriteLine("<table border=""1"">")

    act.WriteLine("<tr>")

    act.WriteLine("<th nowrap>Email</th>")

    act.WriteLine("</tr>")

    Do While Not rs.Eof

    Act.WriteLine("<tr>")

    act.WriteLine("<tudo align=""right"">" & rs("email") & "</tudo>" )

    act.WriteLine("</tr>")

    rs.movenext

    loop

    act.WriteLine("</table></body></html>")

    act.close

    rs2.MoveFirst

    arquivo_doc= "emails.doc"

    set fso = createobject("scripting.filesystemobject")

    Set act2 = fso.CreateTextFile(server.mappath(arquivo_doc), true)

    act2.WriteLine("<html><body>")

    act2.WriteLine("<b>Emails</b>")

    act2.WriteLine("<br>")

    Do While Not rs2.Eof

    act2.WriteLine("<br>" & rs2("email"))

    rs2.movenext

    loop

    act2.close

    %>

    <html>

    <head>

    <title>...::: S&oacute; Vit&oacute;ria</title>

    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

    <link href="../estilos.css" rel="stylesheet" type="text/css">

    </head>

    <body leftmargin="0" topmargin="5" marginwidth="0" marginheight="0">

    <table width="760" border="0" cellspacing="0" cellpadding="0">

    <tr>

    <tudo width="740" colspan="2"> <!--#include file="menu.asp" --> </tudo>

    </tr>

    <tr>

    <tudo colspan="2">&nbsp;</tudo>

    </tr>

    <tr>

    <tudo colspan="2">

    <table width="100%" border="0" cellpadding="5" cellspacing="5" class="arial_textosObs">

    <tr>

    <tudo width="25" rowspan="6">&nbsp;</tudo>

    <tudo class="arial9a"><a href="emails.xls" target="_blank" id="link01">&raquo;gerar listagem de emails em .xls (planilha excel</a>) </tudo>

    </tr>

    <tr>

    <tudo class="arial9a"><a href="emails.doc" target="_blank" class="arial9a" id="link01">&raquo;gerar listagem de emails em .doc (arquivo texto) </a></tudo>

    </tr>

    </table>

    </tudo>

    </tr>

    <tr>

    <tudo colspan="2">&nbsp;</tudo>

    </tr>

    <tr>

    <tudo colspan="2" align="right"> <!--#include file="../rodape.asp" --></tudo>

    </tr>

    </table>

    </body>

    </html>

  5. vamos lá

    o valor ativo_site = Request.QueryString("ativo_site") vem do link que uso para entrar na pagina. Ele traz apenas os registros que estao ativo no banco onde o ativo_site = 1.

    Fiz um "SELECT * FROM aluno where ativo_site= "&ativo_site - que me retorna apenas os registros ativos.

    Fiz um loop e imprime este resultado na tela, isto tambem esta OK. No meu banco de dados na tabela que estou usando eu tenho tres campos que me retornam 0 ou 1, que são: debito, galeria, ativo_site. Na pagina eu coloquei estes campos em um select box que permite o usuario selecionar sim ou não para cada opção.

    o que preciso fazer é pegar os valores dos select box dos registros alterados e alterar no banco de dados. Da forma que fiz ele altera somente o valor debito. E não sei como faço para alterar os tres valores dos registros alterados... :(

  6. ola galera! bom tenho a seguinte situ:

    o arquivo include realiza o loop nos registros.

    o que preciso é recuperar o valor dos selects box galeria e debito que foram alterados pelo usuario na pagina para tambem alterar no banco de dados. como faço isso?

    <!--#include file="../include/geral_pag01.asp" -->

    <%

    cod_aluno = rs.Fields("cod_aluno")

    str1 = "select curso from curso_aluno where cod_aluno = '"&cod_aluno&"'"

    Set rs1 = conexaodb.Execute(str1)

    If bgColor = "#FDF5F2" Then

    bgColor = "#F9F9F9"

    Else

    bgColor = "#FDF5F2"

    End If

    %>

    <tr bgcolor="<%=bgColor%>">

    <tudo height="25" class="arial12"><% = rs.Fields("nome") %>&nbsp;<% = rs.Fields("sobrenome") %></tudo>

    <tudo align="center" class="arial12">

    <%

    if rs1.Eof then

    %>

    -

    <% else

    Do While Not rs1.Eof

    %>

    <% = rs1.Fields("curso") %><br>

    <%

    rs1.movenext

    loop

    end if

    set rs1 = nothing

    %> </tudo>

    <tudo align="center">

    <select name="debito" class="box3" id="debito">

    <option <%if rs("debito") = "1" then %> selected <%end if%> value="1">sim</option>

    <option <%if rs("debito") = "0" then %> selected <%end if%> value="0">n&atilde;o</option>

    </select> </tudo>

    <tudo align="center">

    <select name="galeria" class="box3" id="galeria">

    <option <%if rs("galeria") = "1" then %> selected="selected" <%end if%> value="0">sim</option>

    <option <%if rs("galeria") = "0" then %> selected="selected" <%end if%> value="1">n&atilde;o</option>

    </select> </tudo>

    <tudo align="center">

    <tudo align="center" class="arial12"><a href="altera-dados.asp?id_aluno=<% = rs.Fields("id_aluno")%>"><img src="imagens/icon-pencil.gif" width="22" height="22" border="0" /></a></tudo>

    </tr>

    <%

    rs.movenext

    loop

    %>

    <tr>

    <tudo colspan="6">&nbsp;</tudo>

    </tr>

    <tr>

    <tudo colspan="6" align="center">P&aacute;ginas:&nbsp;

    <!--#include file="../include/geral_pag02.asp" --></tudo>

  7. esse funciona!

    <%@LANGUAGE="JAVASCRIPT" CODEPAGE="1252"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <HTML>
    	<HEAD>
      <title>SYS - Sistema Corporativo J&W </title>
      <meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
      <meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE">
      <meta content="JavaScript" name="vs_defaultClientScript">
      <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
      <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
      <LINK href="estilos.css" type="text/css" rel="stylesheet">
      <script language="JavaScript" type="text/JavaScript">
    <!--
    function MM_reloadPage(init) {  //reloads the window if Nav4 resized
      if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
        document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
      else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
    }
    MM_reloadPage(true);
    
    function MM_findObj(n, d) { //v4.01
      var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
        d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
      if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
      for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
      if(!x && d.getElementById) x=d.getElementById(n); return x;
    }
    
    function MM_showHideLayers() { //v6.0
      var i,p,v,obj,args=MM_showHideLayers.arguments;
      for (i=0; i<(args.length-2); i+=3) 
      if ((obj=MM_findObj(args[i]))!=null) { 
    	v=args[i+2];
        if (obj.style) { 
      obj=obj.style; 
      v=(v=='show')?'visible':(v=='hide')?'hidden':v; 
    
        }
        
        obj.visibility=v;
        if (v=='visible')
      {
      MostraDiv(true,args[i]);	
      return;
      }
    	else
      {
      MostraDiv(false,args[i]);
      }
        }
    }
    
    function MostraDiv(state,valor)
    {
    	var DivRef = document.getElementById(valor);
    	var IfrRef = document.getElementById('DivMestra');
    
    	if(state)
    	{
      DivRef.style.display = "block";
      IfrRef.style.width = DivRef.offsetWidth;
      IfrRef.style.height = DivRef.offsetHeight;
      IfrRef.style.top = DivRef.style.top;
      IfrRef.style.left = DivRef.style.left;
      IfrRef.style.zIndex = DivRef.style.zIndex - 1;
      IfrRef.style.display = "block";
    	}
    	else
    	{
      DivRef.style.display = "none";
      IfrRef.style.display = "none";
    	}
    }
    //-->
      </script>
      <style type="text/css">
    BODY { MARGIN: 0px }
      </style>
    	</HEAD>
    	<body>
      <div id="sistema" style="Z-INDEX: 100; LEFT: 616px; VISIBILITY: hidden; OVERFLOW: visible; WIDTH: 135px; POSITION: absolute; TOP: 80px; HEIGHT: 17px">
      	<table onmouseover="MM_showHideLayers('sistema','','show','produtos','','hide','clientes','','hide','cobranca','','hide','cobranca-sub1','','hide','usuario','','hide','empresa','','hide')"
        onmouseout="MM_showHideLayers('sistema','','hide')" cellSpacing="0" cellPadding="0"
        width="135" border="0" runat="server">
        <tr>
        	<td><IMG height="2" src="image/space.gif" width="1"></td>
        </tr>
        <tr>
        	<td bgColor="#74b84b"><IMG height="1" src="image/space.gif" width="1"></td>
        </tr>
        <tr>
        	<td bgColor="#ffffff"><IMG height="1" src="image/space.gif" width="1"></td>
        </tr>
        <tr>
        	<td>
          <table class="box2" cellSpacing="0" cellPadding="0" width="135" bgColor="#ffffff" border="0">
          	<tr>
            <td bgColor="#74b84b"><IMG height="5" src="image/space.gif" width="1"></td>
          	</tr>
          	<tr>
            <td><a href="#">menu</a><br>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a>
             </td></tr>
          </table>
        	</td>
        </tr>
      	</table>
      </div>
      <div id="produtos" style="Z-INDEX: 100; LEFT: 516px; VISIBILITY: hidden; OVERFLOW: visible; WIDTH: 135px; POSITION: absolute; TOP: 80px; HEIGHT: 17px">
      	<table onmouseover="MM_showHideLayers('sistema','','hide','produtos','','show','clientes','','hide','cobranca','','hide','cobranca-sub1','','hide','usuario','','hide','empresa','','hide')"
        onmouseout="MM_showHideLayers('produtos','','hide')" cellSpacing="0" cellPadding="0"
        width="135" border="0">
        <tr>
        	<td><IMG height="2" src="image/space.gif" width="1"></td>
        </tr>
        <tr>
        	<td bgColor="#74b84b"><IMG height="1" src="image/space.gif" width="1"></td>
        </tr>
        <tr>
        	<td bgColor="#ffffff"><IMG height="1" src="image/space.gif" width="1"></td>
        </tr>
        <tr>
        	<td>
          <table class="box2" cellSpacing="0" cellPadding="0" width="135" border="0">
          	<tr>
            <td bgColor="#74b84b"><IMG height="5" src="image/space.gif" width="1"></td>
          	</tr>
          	<tr>
            <td bgColor="#ffffff">
            	<a href="#">menu</a><br>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a>
            </td>
          	</tr>
          </table>
        	</td>
        </tr>
      	</table>
      </div>
      <div id="clientes" style="Z-INDEX: 100; LEFT: 347px; VISIBILITY: hidden; OVERFLOW: visible; WIDTH: 137px; POSITION: absolute; TOP: 80px; HEIGHT: 17px">
      	<table onmouseover="MM_showHideLayers('sistema','','hide','produtos','','hide','clientes','','show','cobranca','','hide','cobranca-sub1','','hide','usuario','','hide','empresa','','hide')"
        onmouseout="MM_showHideLayers('clientes','','hide')" cellSpacing="0" cellPadding="0"
        width="135" border="0">
        <tr>
        	<td><IMG height="2" src="image/space.gif" width="1"></td>
        </tr>
        <tr>
        	<td bgColor="#74b84b"><IMG height="1" src="image/space.gif" width="1"></td>
        </tr>
        <tr>
        	<td bgColor="#ffffff"><IMG height="1" src="image/space.gif" width="1"></td>
        </tr>
        <tr>
        	<td>
          <table class="box2" cellSpacing="0" cellPadding="0" width="135" bgColor="#ffffff" border="0">
          	<tr>
            <td bgColor="#74b84b"><IMG height="5" src="image/space.gif" width="1"></td>
          	</tr>
          	<tr>
            <td>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a>
            </td>
          	</tr>
          </table>
        	</td>
        </tr>
      	</table>
      </div>
      <div id="cobranca" style="Z-INDEX: 100; LEFT: 427px; VISIBILITY: hidden; OVERFLOW: visible; WIDTH: 137px; POSITION: absolute; TOP: 80px; HEIGHT: 17px">
      	<table width="135" border="0" cellpadding="0" cellspacing="0" onmouseover="MM_showHideLayers('sistema','','hide','produtos','','hide','clientes','','hide','cobranca','','show','cobranca-sub1','','hide','usuario','','hide','empresa','','hide')"
        onmouseout="MM_showHideLayers('cobranca','','hide','cobranca-sub1','','hide')">
        <tr>
        	<td><IMG height="2" src="image/space.gif" width="1"></td>
        </tr>
        <tr>
        	<td bgColor="#74b84b"><IMG height="1" src="image/space.gif" width="1"></td>
        </tr>
        <tr>
        	<td bgColor="#ffffff"><IMG height="1" src="image/space.gif" width="1"></td>
        </tr>
        <tr>
        	<td>
          <table class="box2" cellSpacing="0" cellPadding="0" width="135" bgColor="#ffffff" border="0">
          	<tr>
            <td bgColor="#74b84b"><IMG height="5" src="image/space.gif" width="1"></td>
          	</tr>
          	<tr>
            <td>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a>
            </td>
          	</tr>
          </table>
        	</td>
        </tr>
      	</table>
      </div>
      <div id="usuario" style="Z-INDEX: 100; LEFT: 601px; VISIBILITY: hidden; OVERFLOW: visible; WIDTH: 137px; POSITION: absolute; TOP: 80px; HEIGHT: 17px">
      	<table onmouseover="MM_showHideLayers('sistema','','hide','produtos','','hide','clientes','','hide','cobranca','','hide','cobranca-sub1','','hide','usuario','','show','empresa','','hide')"
        onmouseout="MM_showHideLayers('usuario','','hide')" cellSpacing="0" cellPadding="0"
        width="135" border="0">
        <tr>
        	<td><IMG height="2" src="image/space.gif" width="1"></td>
        </tr>
        <tr>
        	<td bgColor="#74b84b"><IMG height="1" src="image/space.gif" width="1"></td>
        </tr>
        <tr>
        	<td bgColor="#ffffff"><IMG height="1" src="image/space.gif" width="1"></td>
        </tr>
        <tr>
        	<td>
          <table class="box2" cellSpacing="0" cellPadding="0" width="135" bgColor="#ffffff" border="0">
          	<tr>
            <td bgColor="#74b84b"><IMG height="5" src="image/space.gif" width="1"></td>
          	</tr>
          	<tr>
            <td>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a>
            </td>
          	</tr>
          </table>
        	</td>
        </tr>
      	</table>
      </div>
      <div id="empresa" style="Z-INDEX: 100; LEFT: 231px; VISIBILITY: hidden; OVERFLOW: visible; WIDTH: 135px; POSITION: absolute; TOP: 80px; HEIGHT: 17px">
      	<table onMouseOver="MM_showHideLayers('sistema','','hide','produtos','','hide','clientes','','hide','cobranca','','hide','cobranca-sub1','','hide','usuario','','hide','empresa','','show')"
        onMouseOut="MM_showHideLayers('empresa','','hide')" cellSpacing="0" cellPadding="0"
        width="135" border="0" runat="server">
        <tr>
        	<td><IMG height="2" src="image/space.gif" width="1"></td>
        </tr>
        <tr>
        	<td bgColor="#74b84b"><IMG height="1" src="image/space.gif" width="1"></td>
        </tr>
        <tr>
        	<td bgColor="#ffffff"><IMG height="1" src="image/space.gif" width="1"></td>
        </tr>
        <tr>
        	<td>
          <table class="box2" cellSpacing="0" cellPadding="0" width="135" bgColor="#ffffff" border="0">
          	<tr>
            <td bgColor="#74b84b"><IMG height="5" src="image/space.gif" width="1"></td>
          	</tr>
          	<tr>
            <td>
            	<a href="#">menu</a>
            </td>
          	</tr>
          </table>
        	</td>
        </tr>
      	</table>
      </div>
      <iframe id="DivMestra" src="javascript:false;" scrolling="no" frameborder="0" style="position:absolute; top:0px; left:0px; display:none;"></iframe>
      <table cellSpacing="0" cellPadding="0" width="765" border="0">
      	<tr>
        <td vAlign="bottom" width="155" rowSpan="4"><a href="home.aspx"><IMG height="75" border="0" src="image/img_logo.gif" width="155"></a></td>
        <td vAlign="bottom" align="right" colSpan="14" height="53"><table cellSpacing="0" cellPadding="0" width="70%" border="0">
          <tr>
          	<td width="80" align="center" class="verdana8bold">&nbsp;</td>
          	<td width="15">&nbsp;</td>
          	<td width="2"><IMG height="21" src="image/img_separador.gif" width="2"></td>
          	<td width="15">&nbsp;</td>
          	<td class="verdana8bold" align="center">Olá</td>
          	<td width="15">&nbsp;</td>
          	<td width="2"><IMG height="21" src="image/img_separador.gif" width="2"></td>
          	<td width="15">&nbsp;</td>
          	<td width="58"><a href="home.aspx"><img src="image/ico_home.gif" width="58" height="18" border="0"></a></td>
          	<td width="15">&nbsp;</td>
          	<td width="2"><IMG height="21" src="image/img_separador.gif" width="2"></td>
          	<td width="15">&nbsp;</td>
          	<td width="60"><A href="JEWLOGINACE00101.aspx"><IMG alt="" src="image/img_logoff.gif" border="0" name="imglogoff"></A></td>
          	<td width="5">&nbsp;</td>
          </tr>
          <tr>
          	<td colSpan="13"><IMG height="8" src="image/space.gif" width="1"></td>
          </tr>
        	</table>
        </td>
      	</tr>
      	<tr>
        <td bgColor="#74b84b" colSpan="14"><IMG height="1" src="image/space.gif" width="1"></td>
      	</tr>
      	<tr>
        <td width="96" height="28">&nbsp;</td>
        <td width="71" onMouseOver="MM_showHideLayers('sistema','','hide','produtos','','hide','clientes','','hide','cobranca','','hide','cobranca-sub1','','hide','usuario','','hide','empresa','','show')"
        	onMouseOut="MM_showHideLayers('empresa','','hide')"><A href="#"><img src="image/menu2/menu_r2_c12.gif" border="0"></a></td>
        <td width="15">&nbsp;</td>
        <td onmouseover="MM_showHideLayers('sistema','','hide','produtos','','hide','clientes','','show','cobranca','','hide','cobranca-sub1','','hide','usuario','','hide','empresa','','hide')"
        	onmouseout="MM_showHideLayers('clientes','','hide')" width="68"><A href="#"><IMG height="28" src="image/menu2/menu_r2_c2.gif" width="68" border="0"></A></td>
        <td width="15">&nbsp;</td>
        <td onmouseover="MM_showHideLayers('sistema','','hide','produtos','','hide','clientes','','hide','cobranca','','show','cobranca-sub1','','hide','usuario','','hide','empresa','','hide')"
        	onmouseout="MM_showHideLayers('cobranca','','hide','cobranca-sub1','','hide')" width="78"><A href="#"><IMG height="28" src="image/menu2/menu_r2_c4.gif" width="78" border="0"></A></td>
        <td width="15">&nbsp;</td>
        <td onmouseover="MM_showHideLayers('sistema','','hide','produtos','','show','clientes','','hide','cobranca','','hide','cobranca-sub1','','hide','usuario','','hide','empresa','','hide')"
        	onmouseout="MM_showHideLayers('produtos','','hide')" width="75"><A href="#"><IMG height="28" src="image/menu2/menu_r2_c6.gif" width="75" border="0"></A></td>
        <td width="15">&nbsp;</td>
        <td onmouseover="MM_showHideLayers('sistema','','hide','produtos','','hide','clientes','','hide','cobranca','','hide','cobranca-sub1','','hide','usuario','','show','empresa','','hide')"
        	onmouseout="MM_showHideLayers('usuario','','hide')" width="65"><A href="#"><IMG height="28" src="image/menu2/menu_r2_c10.gif" width="65" border="0"></A></td>
        <td width="15">&nbsp;</td>
        <td onmouseover="MM_showHideLayers('sistema','','show','produtos','','hide','clientes','','hide','cobranca','','hide','cobranca-sub1','','hide','usuario','','hide','empresa','','hide')"
        	onmouseout="MM_showHideLayers('sistema','','hide')" width="67"><A href="#"><IMG height="28" src="image/menu2/menu_r2_c8.gif" width="67" border="0"></A></td>
        <td width="15">&nbsp;</td>
        <td width="1" bgColor="#74b84b" rowSpan="2"><IMG height="5" src="image/space.gif" width="1"></td>
      	</tr>
      	<tr>
        <td bgColor="#74b84b" colSpan="13"><IMG height="1" src="image/space.gif" width="10"></td>
      	</tr>
      	<tr>
        <td colSpan="15"><IMG height="1" src="image/space.gif" width="10"></td>
      	</tr>
      	<tr>
        <td bgColor="#858585" colSpan="15"><IMG height="5" src="image/space.gif" width="1"></td>
      	</tr>
      </table>
         <table width="765"  border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td><form name="form1" method="post" action="">
                  <select name="select">
                    <option selected>selecioneselecineselecione</option>
                  </select>
                  <select name="select2">
                    <option selected>selecioneselecineselecione</option>
                  </select>
                  <select name="select3">
                    <option selected>selecioneselecineselecione</option>
                  </select>
                  <select name="select4">
                    <option selected>seleciones</option>
                                              </select>
                  <select name="select5">
                    <option selected>seleciones</option>
                  </select>
                  <select name="select6">
                    <option selected>seleciones</option>
                  </select>
                            </form></td>
              </tr>
              <tr>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td>&nbsp;</td>
              </tr>
            </table>
    	</body>
    </HTML>
    

  8. Menu com DIV

    <%@LANGUAGE="JAVASCRIPT" CODEPAGE="1252"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <HTML>
    	<HEAD>
      <title>SYS - Sistema Corporativo J&W </title>
      <meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
      <meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE">
      <meta content="JavaScript" name="vs_defaultClientScript">
      <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
      <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
      <LINK href="estilos.css" type="text/css" rel="stylesheet">
      <script language="JavaScript" type="text/JavaScript">
    <!--
    function MM_reloadPage(init) {  //reloads the window if Nav4 resized
      if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
        document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
      else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
    }
    MM_reloadPage(true);
    
    function MM_findObj(n, d) { //v4.01
      var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
        d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
      if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
      for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
      if(!x && d.getElementById) x=d.getElementById(n); return x;
    }
    
    function MM_showHideLayers() { //v6.0
      var i,p,v,obj,args=MM_showHideLayers.arguments;
      for (i=0; i<(args.length-2); i+=3) 
      if ((obj=MM_findObj(args[i]))!=null) { 
    	v=args[i+2];
        if (obj.style) { 
      obj=obj.style; 
      v=(v=='show')?'visible':(v=='hide')?'hidden':v; 
    
        }
        
        obj.visibility=v;
        if (v=='visible')
      {
      MostraDiv(true,args[i]);	
      return;
      }
    	else
      {
      MostraDiv(false,args[i]);
      }
        }
    }
    
    function MostraDiv(state,valor)
    {
    	var DivRef = document.getElementById(valor);
    	var IfrRef = document.getElementById('DivMestra');
    
    	if(state)
    	{
      DivRef.style.display = "block";
      IfrRef.style.width = DivRef.offsetWidth;
      IfrRef.style.height = DivRef.offsetHeight;
      IfrRef.style.top = DivRef.style.top;
      IfrRef.style.left = DivRef.style.left;
      IfrRef.style.zIndex = DivRef.style.zIndex - 1;
      IfrRef.style.display = "block";
    	}
    	else
    	{
      DivRef.style.display = "none";
      IfrRef.style.display = "none";
    	}
    }
    //-->
      </script>
      <style type="text/css">
    BODY { MARGIN: 0px }
      </style>
    	</HEAD>
    	<body>
      <div id="sistema" style="Z-INDEX: 100; LEFT: 616px; VISIBILITY: hidden; OVERFLOW: visible; WIDTH: 135px; POSITION: absolute; TOP: 80px; HEIGHT: 17px">
      	<table onmouseover="MM_showHideLayers('sistema','','show','produtos','','hide','clientes','','hide','cobranca','','hide','cobranca-sub1','','hide','usuario','','hide','empresa','','hide')"
        onmouseout="MM_showHideLayers('sistema','','hide')" cellSpacing="0" cellPadding="0"
        width="135" border="0" runat="server">
        <tr>
        	<td><IMG height="2" src="image/space.gif" width="1"></td>
        </tr>
        <tr>
        	<td bgColor="#74b84b"><IMG height="1" src="image/space.gif" width="1"></td>
        </tr>
        <tr>
        	<td bgColor="#ffffff"><IMG height="1" src="image/space.gif" width="1"></td>
        </tr>
        <tr>
        	<td>
          <table class="box2" cellSpacing="0" cellPadding="0" width="135" bgColor="#ffffff" border="0">
          	<tr>
            <td bgColor="#74b84b"><IMG height="5" src="image/space.gif" width="1"></td>
          	</tr>
          	<tr>
            <td><a href="#">menu</a><br>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a>
             </td></tr>
          </table>
        	</td>
        </tr>
      	</table>
      </div>
      <div id="produtos" style="Z-INDEX: 100; LEFT: 516px; VISIBILITY: hidden; OVERFLOW: visible; WIDTH: 135px; POSITION: absolute; TOP: 80px; HEIGHT: 17px">
      	<table onmouseover="MM_showHideLayers('sistema','','hide','produtos','','show','clientes','','hide','cobranca','','hide','cobranca-sub1','','hide','usuario','','hide','empresa','','hide')"
        onmouseout="MM_showHideLayers('produtos','','hide')" cellSpacing="0" cellPadding="0"
        width="135" border="0">
        <tr>
        	<td><IMG height="2" src="image/space.gif" width="1"></td>
        </tr>
        <tr>
        	<td bgColor="#74b84b"><IMG height="1" src="image/space.gif" width="1"></td>
        </tr>
        <tr>
        	<td bgColor="#ffffff"><IMG height="1" src="image/space.gif" width="1"></td>
        </tr>
        <tr>
        	<td>
          <table class="box2" cellSpacing="0" cellPadding="0" width="135" border="0">
          	<tr>
            <td bgColor="#74b84b"><IMG height="5" src="image/space.gif" width="1"></td>
          	</tr>
          	<tr>
            <td bgColor="#ffffff">
            	<a href="#">menu</a><br>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a>
            </td>
          	</tr>
          </table>
        	</td>
        </tr>
      	</table>
      </div>
      <div id="clientes" style="Z-INDEX: 100; LEFT: 347px; VISIBILITY: hidden; OVERFLOW: visible; WIDTH: 137px; POSITION: absolute; TOP: 80px; HEIGHT: 17px">
      	<table onmouseover="MM_showHideLayers('sistema','','hide','produtos','','hide','clientes','','show','cobranca','','hide','cobranca-sub1','','hide','usuario','','hide','empresa','','hide')"
        onmouseout="MM_showHideLayers('clientes','','hide')" cellSpacing="0" cellPadding="0"
        width="135" border="0">
        <tr>
        	<td><IMG height="2" src="image/space.gif" width="1"></td>
        </tr>
        <tr>
        	<td bgColor="#74b84b"><IMG height="1" src="image/space.gif" width="1"></td>
        </tr>
        <tr>
        	<td bgColor="#ffffff"><IMG height="1" src="image/space.gif" width="1"></td>
        </tr>
        <tr>
        	<td>
          <table class="box2" cellSpacing="0" cellPadding="0" width="135" bgColor="#ffffff" border="0">
          	<tr>
            <td bgColor="#74b84b"><IMG height="5" src="image/space.gif" width="1"></td>
          	</tr>
          	<tr>
            <td>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a>
            </td>
          	</tr>
          </table>
        	</td>
        </tr>
      	</table>
      </div>
      <div id="cobranca" style="Z-INDEX: 100; LEFT: 427px; VISIBILITY: hidden; OVERFLOW: visible; WIDTH: 137px; POSITION: absolute; TOP: 80px; HEIGHT: 17px">
      	<table width="135" border="0" cellpadding="0" cellspacing="0" onmouseover="MM_showHideLayers('sistema','','hide','produtos','','hide','clientes','','hide','cobranca','','show','cobranca-sub1','','hide','usuario','','hide','empresa','','hide')"
        onmouseout="MM_showHideLayers('cobranca','','hide','cobranca-sub1','','hide')">
        <tr>
        	<td><IMG height="2" src="image/space.gif" width="1"></td>
        </tr>
        <tr>
        	<td bgColor="#74b84b"><IMG height="1" src="image/space.gif" width="1"></td>
        </tr>
        <tr>
        	<td bgColor="#ffffff"><IMG height="1" src="image/space.gif" width="1"></td>
        </tr>
        <tr>
        	<td>
          <table class="box2" cellSpacing="0" cellPadding="0" width="135" bgColor="#ffffff" border="0">
          	<tr>
            <td bgColor="#74b84b"><IMG height="5" src="image/space.gif" width="1"></td>
          	</tr>
          	<tr>
            <td>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a>
            </td>
          	</tr>
          </table>
        	</td>
        </tr>
      	</table>
      </div>
      <div id="usuario" style="Z-INDEX: 100; LEFT: 601px; VISIBILITY: hidden; OVERFLOW: visible; WIDTH: 137px; POSITION: absolute; TOP: 80px; HEIGHT: 17px">
      	<table onmouseover="MM_showHideLayers('sistema','','hide','produtos','','hide','clientes','','hide','cobranca','','hide','cobranca-sub1','','hide','usuario','','show','empresa','','hide')"
        onmouseout="MM_showHideLayers('usuario','','hide')" cellSpacing="0" cellPadding="0"
        width="135" border="0">
        <tr>
        	<td><IMG height="2" src="image/space.gif" width="1"></td>
        </tr>
        <tr>
        	<td bgColor="#74b84b"><IMG height="1" src="image/space.gif" width="1"></td>
        </tr>
        <tr>
        	<td bgColor="#ffffff"><IMG height="1" src="image/space.gif" width="1"></td>
        </tr>
        <tr>
        	<td>
          <table class="box2" cellSpacing="0" cellPadding="0" width="135" bgColor="#ffffff" border="0">
          	<tr>
            <td bgColor="#74b84b"><IMG height="5" src="image/space.gif" width="1"></td>
          	</tr>
          	<tr>
            <td>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a>
            </td>
          	</tr>
          </table>
        	</td>
        </tr>
      	</table>
      </div>
      <div id="empresa" style="Z-INDEX: 100; LEFT: 231px; VISIBILITY: hidden; OVERFLOW: visible; WIDTH: 135px; POSITION: absolute; TOP: 80px; HEIGHT: 17px">
      	<table onMouseOver="MM_showHideLayers('sistema','','hide','produtos','','hide','clientes','','hide','cobranca','','hide','cobranca-sub1','','hide','usuario','','hide','empresa','','show')"
        onMouseOut="MM_showHideLayers('empresa','','hide')" cellSpacing="0" cellPadding="0"
        width="135" border="0" runat="server">
        <tr>
        	<td><IMG height="2" src="image/space.gif" width="1"></td>
        </tr>
        <tr>
        	<td bgColor="#74b84b"><IMG height="1" src="image/space.gif" width="1"></td>
        </tr>
        <tr>
        	<td bgColor="#ffffff"><IMG height="1" src="image/space.gif" width="1"></td>
        </tr>
        <tr>
        	<td>
          <table class="box2" cellSpacing="0" cellPadding="0" width="135" bgColor="#ffffff" border="0">
          	<tr>
            <td bgColor="#74b84b"><IMG height="5" src="image/space.gif" width="1"></td>
          	</tr>
          	<tr>
            <td>
            	<a href="#">menu</a>
            </td>
          	</tr>
          </table>
        	</td>
        </tr>
      	</table>
      </div>
      <iframe id="DivMestra" src="javascript:false;" scrolling="no" frameborder="0" style="position:absolute; top:0px; left:0px; display:none;"></iframe>
      <table cellSpacing="0" cellPadding="0" width="765" border="0">
      	<tr>
        <td vAlign="bottom" width="155" rowSpan="4"><a href="home.aspx"><IMG height="75" border="0" src="image/img_logo.gif" width="155"></a></td>
        <td vAlign="bottom" align="right" colSpan="14" height="53"><table cellSpacing="0" cellPadding="0" width="70%" border="0">
          <tr>
          	<td width="80" align="center" class="verdana8bold">&nbsp;</td>
          	<td width="15">&nbsp;</td>
          	<td width="2"><IMG height="21" src="image/img_separador.gif" width="2"></td>
          	<td width="15">&nbsp;</td>
          	<td class="verdana8bold" align="center">Olá</td>
          	<td width="15">&nbsp;</td>
          	<td width="2"><IMG height="21" src="image/img_separador.gif" width="2"></td>
          	<td width="15">&nbsp;</td>
          	<td width="58"><a href="home.aspx"><img src="image/ico_home.gif" width="58" height="18" border="0"></a></td>
          	<td width="15">&nbsp;</td>
          	<td width="2"><IMG height="21" src="image/img_separador.gif" width="2"></td>
          	<td width="15">&nbsp;</td>
          	<td width="60"><A href="JEWLOGINACE00101.aspx"><IMG alt="" src="image/img_logoff.gif" border="0" name="imglogoff"></A></td>
          	<td width="5">&nbsp;</td>
          </tr>
          <tr>
          	<td colSpan="13"><IMG height="8" src="image/space.gif" width="1"></td>
          </tr>
        	</table>
        </td>
      	</tr>
      	<tr>
        <td bgColor="#74b84b" colSpan="14"><IMG height="1" src="image/space.gif" width="1"></td>
      	</tr>
      	<tr>
        <td width="96" height="28">&nbsp;</td>
        <td width="71" onMouseOver="MM_showHideLayers('sistema','','hide','produtos','','hide','clientes','','hide','cobranca','','hide','cobranca-sub1','','hide','usuario','','hide','empresa','','show')"
        	onMouseOut="MM_showHideLayers('empresa','','hide')"><A href="#"><img src="image/menu2/menu_r2_c12.gif" border="0"></a></td>
        <td width="15">&nbsp;</td>
        <td onmouseover="MM_showHideLayers('sistema','','hide','produtos','','hide','clientes','','show','cobranca','','hide','cobranca-sub1','','hide','usuario','','hide','empresa','','hide')"
        	onmouseout="MM_showHideLayers('clientes','','hide')" width="68"><A href="#"><IMG height="28" src="image/menu2/menu_r2_c2.gif" width="68" border="0"></A></td>
        <td width="15">&nbsp;</td>
        <td onmouseover="MM_showHideLayers('sistema','','hide','produtos','','hide','clientes','','hide','cobranca','','show','cobranca-sub1','','hide','usuario','','hide','empresa','','hide')"
        	onmouseout="MM_showHideLayers('cobranca','','hide','cobranca-sub1','','hide')" width="78"><A href="#"><IMG height="28" src="image/menu2/menu_r2_c4.gif" width="78" border="0"></A></td>
        <td width="15">&nbsp;</td>
        <td onmouseover="MM_showHideLayers('sistema','','hide','produtos','','show','clientes','','hide','cobranca','','hide','cobranca-sub1','','hide','usuario','','hide','empresa','','hide')"
        	onmouseout="MM_showHideLayers('produtos','','hide')" width="75"><A href="#"><IMG height="28" src="image/menu2/menu_r2_c6.gif" width="75" border="0"></A></td>
        <td width="15">&nbsp;</td>
        <td onmouseover="MM_showHideLayers('sistema','','hide','produtos','','hide','clientes','','hide','cobranca','','hide','cobranca-sub1','','hide','usuario','','show','empresa','','hide')"
        	onmouseout="MM_showHideLayers('usuario','','hide')" width="65"><A href="#"><IMG height="28" src="image/menu2/menu_r2_c10.gif" width="65" border="0"></A></td>
        <td width="15">&nbsp;</td>
        <td onmouseover="MM_showHideLayers('sistema','','show','produtos','','hide','clientes','','hide','cobranca','','hide','cobranca-sub1','','hide','usuario','','hide','empresa','','hide')"
        	onmouseout="MM_showHideLayers('sistema','','hide')" width="67"><A href="#"><IMG height="28" src="image/menu2/menu_r2_c8.gif" width="67" border="0"></A></td>
        <td width="15">&nbsp;</td>
        <td width="1" bgColor="#74b84b" rowSpan="2"><IMG height="5" src="image/space.gif" width="1"></td>
      	</tr>
      	<tr>
        <td bgColor="#74b84b" colSpan="13"><IMG height="1" src="image/space.gif" width="10"></td>
      	</tr>
      	<tr>
        <td colSpan="15"><IMG height="1" src="image/space.gif" width="10"></td>
      	</tr>
      	<tr>
        <td bgColor="#858585" colSpan="15"><IMG height="5" src="image/space.gif" width="1"></td>
      	</tr>
      </table>
         <table width="765"  border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td><form name="form1" method="post" action="">
                  <select name="select">
                    <option selected>selecioneselecineselecione</option>
                  </select>
                  <select name="select2">
                    <option selected>selecioneselecineselecione</option>
                  </select>
                  <select name="select3">
                    <option selected>selecioneselecineselecione</option>
                  </select>
                  <select name="select4">
                    <option selected>seleciones</option>
                                              </select>
                  <select name="select5">
                    <option selected>seleciones</option>
                  </select>
                  <select name="select6">
                    <option selected>seleciones</option>
                  </select>
                            </form></td>
              </tr>
              <tr>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td>&nbsp;</td>
              </tr>
            </table>
    	</body>
    </HTML>
    

  9. eis a solução, que todo mundo fala que não existe, mas EXISTE!

    copia e cola este codigo em uma pagina e salva como htm, depois voce teste e ve como funciona!

    <%@LANGUAGE="JAVASCRIPT" CODEPAGE="1252"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <HTML>
    	<HEAD>
      <title>SYS - Sistema Corporativo J&W </title>
      <meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
      <meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE">
      <meta content="JavaScript" name="vs_defaultClientScript">
      <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
      <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
      <LINK href="estilos.css" type="text/css" rel="stylesheet">
      <script language="JavaScript" type="text/JavaScript">
    <!--
    function MM_reloadPage(init) {  //reloads the window if Nav4 resized
      if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
        document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
      else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
    }
    MM_reloadPage(true);
    
    function MM_findObj(n, d) { //v4.01
      var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
        d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
      if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
      for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
      if(!x && d.getElementById) x=d.getElementById(n); return x;
    }
    
    function MM_showHideLayers() { //v6.0
      var i,p,v,obj,args=MM_showHideLayers.arguments;
      for (i=0; i<(args.length-2); i+=3) 
      if ((obj=MM_findObj(args[i]))!=null) { 
    	v=args[i+2];
        if (obj.style) { 
      obj=obj.style; 
      v=(v=='show')?'visible':(v=='hide')?'hidden':v; 
    
        }
        
        obj.visibility=v;
        if (v=='visible')
      {
      MostraDiv(true,args[i]);	
      return;
      }
    	else
      {
      MostraDiv(false,args[i]);
      }
        }
    }
    
    function MostraDiv(state,valor)
    {
    	var DivRef = document.getElementById(valor);
    	var IfrRef = document.getElementById('DivMestra');
    
    	if(state)
    	{
      DivRef.style.display = "block";
      IfrRef.style.width = DivRef.offsetWidth;
      IfrRef.style.height = DivRef.offsetHeight;
      IfrRef.style.top = DivRef.style.top;
      IfrRef.style.left = DivRef.style.left;
      IfrRef.style.zIndex = DivRef.style.zIndex - 1;
      IfrRef.style.display = "block";
    	}
    	else
    	{
      DivRef.style.display = "none";
      IfrRef.style.display = "none";
    	}
    }
    //-->
      </script>
      <style type="text/css">
    BODY { MARGIN: 0px }
      </style>
    	</HEAD>
    	<body>
      <div id="sistema" style="Z-INDEX: 100; LEFT: 616px; VISIBILITY: hidden; OVERFLOW: visible; WIDTH: 135px; POSITION: absolute; TOP: 80px; HEIGHT: 17px">
      	<table onmouseover="MM_showHideLayers('sistema','','show','produtos','','hide','clientes','','hide','cobranca','','hide','cobranca-sub1','','hide','usuario','','hide','empresa','','hide')"
        onmouseout="MM_showHideLayers('sistema','','hide')" cellSpacing="0" cellPadding="0"
        width="135" border="0" runat="server">
        <tr>
        	<td><IMG height="2" src="image/space.gif" width="1"></td>
        </tr>
        <tr>
        	<td bgColor="#74b84b"><IMG height="1" src="image/space.gif" width="1"></td>
        </tr>
        <tr>
        	<td bgColor="#ffffff"><IMG height="1" src="image/space.gif" width="1"></td>
        </tr>
        <tr>
        	<td>
          <table class="box2" cellSpacing="0" cellPadding="0" width="135" bgColor="#ffffff" border="0">
          	<tr>
            <td bgColor="#74b84b"><IMG height="5" src="image/space.gif" width="1"></td>
          	</tr>
          	<tr>
            <td><a href="#">menu</a><br>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a>
             </td></tr>
          </table>
        	</td>
        </tr>
      	</table>
      </div>
      <div id="produtos" style="Z-INDEX: 100; LEFT: 516px; VISIBILITY: hidden; OVERFLOW: visible; WIDTH: 135px; POSITION: absolute; TOP: 80px; HEIGHT: 17px">
      	<table onmouseover="MM_showHideLayers('sistema','','hide','produtos','','show','clientes','','hide','cobranca','','hide','cobranca-sub1','','hide','usuario','','hide','empresa','','hide')"
        onmouseout="MM_showHideLayers('produtos','','hide')" cellSpacing="0" cellPadding="0"
        width="135" border="0">
        <tr>
        	<td><IMG height="2" src="image/space.gif" width="1"></td>
        </tr>
        <tr>
        	<td bgColor="#74b84b"><IMG height="1" src="image/space.gif" width="1"></td>
        </tr>
        <tr>
        	<td bgColor="#ffffff"><IMG height="1" src="image/space.gif" width="1"></td>
        </tr>
        <tr>
        	<td>
          <table class="box2" cellSpacing="0" cellPadding="0" width="135" border="0">
          	<tr>
            <td bgColor="#74b84b"><IMG height="5" src="image/space.gif" width="1"></td>
          	</tr>
          	<tr>
            <td bgColor="#ffffff">
            	<a href="#">menu</a><br>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a>
            </td>
          	</tr>
          </table>
        	</td>
        </tr>
      	</table>
      </div>
      <div id="clientes" style="Z-INDEX: 100; LEFT: 347px; VISIBILITY: hidden; OVERFLOW: visible; WIDTH: 137px; POSITION: absolute; TOP: 80px; HEIGHT: 17px">
      	<table onmouseover="MM_showHideLayers('sistema','','hide','produtos','','hide','clientes','','show','cobranca','','hide','cobranca-sub1','','hide','usuario','','hide','empresa','','hide')"
        onmouseout="MM_showHideLayers('clientes','','hide')" cellSpacing="0" cellPadding="0"
        width="135" border="0">
        <tr>
        	<td><IMG height="2" src="image/space.gif" width="1"></td>
        </tr>
        <tr>
        	<td bgColor="#74b84b"><IMG height="1" src="image/space.gif" width="1"></td>
        </tr>
        <tr>
        	<td bgColor="#ffffff"><IMG height="1" src="image/space.gif" width="1"></td>
        </tr>
        <tr>
        	<td>
          <table class="box2" cellSpacing="0" cellPadding="0" width="135" bgColor="#ffffff" border="0">
          	<tr>
            <td bgColor="#74b84b"><IMG height="5" src="image/space.gif" width="1"></td>
          	</tr>
          	<tr>
            <td>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a>
            </td>
          	</tr>
          </table>
        	</td>
        </tr>
      	</table>
      </div>
      <div id="cobranca" style="Z-INDEX: 100; LEFT: 427px; VISIBILITY: hidden; OVERFLOW: visible; WIDTH: 137px; POSITION: absolute; TOP: 80px; HEIGHT: 17px">
      	<table width="135" border="0" cellpadding="0" cellspacing="0" onmouseover="MM_showHideLayers('sistema','','hide','produtos','','hide','clientes','','hide','cobranca','','show','cobranca-sub1','','hide','usuario','','hide','empresa','','hide')"
        onmouseout="MM_showHideLayers('cobranca','','hide','cobranca-sub1','','hide')">
        <tr>
        	<td><IMG height="2" src="image/space.gif" width="1"></td>
        </tr>
        <tr>
        	<td bgColor="#74b84b"><IMG height="1" src="image/space.gif" width="1"></td>
        </tr>
        <tr>
        	<td bgColor="#ffffff"><IMG height="1" src="image/space.gif" width="1"></td>
        </tr>
        <tr>
        	<td>
          <table class="box2" cellSpacing="0" cellPadding="0" width="135" bgColor="#ffffff" border="0">
          	<tr>
            <td bgColor="#74b84b"><IMG height="5" src="image/space.gif" width="1"></td>
          	</tr>
          	<tr>
            <td>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a>
            </td>
          	</tr>
          </table>
        	</td>
        </tr>
      	</table>
      </div>
      <div id="usuario" style="Z-INDEX: 100; LEFT: 601px; VISIBILITY: hidden; OVERFLOW: visible; WIDTH: 137px; POSITION: absolute; TOP: 80px; HEIGHT: 17px">
      	<table onmouseover="MM_showHideLayers('sistema','','hide','produtos','','hide','clientes','','hide','cobranca','','hide','cobranca-sub1','','hide','usuario','','show','empresa','','hide')"
        onmouseout="MM_showHideLayers('usuario','','hide')" cellSpacing="0" cellPadding="0"
        width="135" border="0">
        <tr>
        	<td><IMG height="2" src="image/space.gif" width="1"></td>
        </tr>
        <tr>
        	<td bgColor="#74b84b"><IMG height="1" src="image/space.gif" width="1"></td>
        </tr>
        <tr>
        	<td bgColor="#ffffff"><IMG height="1" src="image/space.gif" width="1"></td>
        </tr>
        <tr>
        	<td>
          <table class="box2" cellSpacing="0" cellPadding="0" width="135" bgColor="#ffffff" border="0">
          	<tr>
            <td bgColor="#74b84b"><IMG height="5" src="image/space.gif" width="1"></td>
          	</tr>
          	<tr>
            <td>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a><br>
            	<a href="#">menu</a>
            </td>
          	</tr>
          </table>
        	</td>
        </tr>
      	</table>
      </div>
      <div id="empresa" style="Z-INDEX: 100; LEFT: 231px; VISIBILITY: hidden; OVERFLOW: visible; WIDTH: 135px; POSITION: absolute; TOP: 80px; HEIGHT: 17px">
      	<table onMouseOver="MM_showHideLayers('sistema','','hide','produtos','','hide','clientes','','hide','cobranca','','hide','cobranca-sub1','','hide','usuario','','hide','empresa','','show')"
        onMouseOut="MM_showHideLayers('empresa','','hide')" cellSpacing="0" cellPadding="0"
        width="135" border="0" runat="server">
        <tr>
        	<td><IMG height="2" src="image/space.gif" width="1"></td>
        </tr>
        <tr>
        	<td bgColor="#74b84b"><IMG height="1" src="image/space.gif" width="1"></td>
        </tr>
        <tr>
        	<td bgColor="#ffffff"><IMG height="1" src="image/space.gif" width="1"></td>
        </tr>
        <tr>
        	<td>
          <table class="box2" cellSpacing="0" cellPadding="0" width="135" bgColor="#ffffff" border="0">
          	<tr>
            <td bgColor="#74b84b"><IMG height="5" src="image/space.gif" width="1"></td>
          	</tr>
          	<tr>
            <td>
            	<a href="#">menu</a>
            </td>
          	</tr>
          </table>
        	</td>
        </tr>
      	</table>
      </div>
      <iframe id="DivMestra" src="javascript:false;" scrolling="no" frameborder="0" style="position:absolute; top:0px; left:0px; display:none;"></iframe>
      <table cellSpacing="0" cellPadding="0" width="765" border="0">
      	<tr>
        <td vAlign="bottom" width="155" rowSpan="4"><a href="home.aspx"><IMG height="75" border="0" src="image/img_logo.gif" width="155"></a></td>
        <td vAlign="bottom" align="right" colSpan="14" height="53"><table cellSpacing="0" cellPadding="0" width="70%" border="0">
          <tr>
          	<td width="80" align="center" class="verdana8bold">&nbsp;</td>
          	<td width="15">&nbsp;</td>
          	<td width="2"><IMG height="21" src="image/img_separador.gif" width="2"></td>
          	<td width="15">&nbsp;</td>
          	<td class="verdana8bold" align="center">Olá</td>
          	<td width="15">&nbsp;</td>
          	<td width="2"><IMG height="21" src="image/img_separador.gif" width="2"></td>
          	<td width="15">&nbsp;</td>
          	<td width="58"><a href="home.aspx"><img src="image/ico_home.gif" width="58" height="18" border="0"></a></td>
          	<td width="15">&nbsp;</td>
          	<td width="2"><IMG height="21" src="image/img_separador.gif" width="2"></td>
          	<td width="15">&nbsp;</td>
          	<td width="60"><A href="JEWLOGINACE00101.aspx"><IMG alt="" src="image/img_logoff.gif" border="0" name="imglogoff"></A></td>
          	<td width="5">&nbsp;</td>
          </tr>
          <tr>
          	<td colSpan="13"><IMG height="8" src="image/space.gif" width="1"></td>
          </tr>
        	</table>
        </td>
      	</tr>
      	<tr>
        <td bgColor="#74b84b" colSpan="14"><IMG height="1" src="image/space.gif" width="1"></td>
      	</tr>
      	<tr>
        <td width="96" height="28">&nbsp;</td>
        <td width="71" onMouseOver="MM_showHideLayers('sistema','','hide','produtos','','hide','clientes','','hide','cobranca','','hide','cobranca-sub1','','hide','usuario','','hide','empresa','','show')"
        	onMouseOut="MM_showHideLayers('empresa','','hide')"><A href="#"><img src="image/menu2/menu_r2_c12.gif" border="0"></a></td>
        <td width="15">&nbsp;</td>
        <td onmouseover="MM_showHideLayers('sistema','','hide','produtos','','hide','clientes','','show','cobranca','','hide','cobranca-sub1','','hide','usuario','','hide','empresa','','hide')"
        	onmouseout="MM_showHideLayers('clientes','','hide')" width="68"><A href="#"><IMG height="28" src="image/menu2/menu_r2_c2.gif" width="68" border="0"></A></td>
        <td width="15">&nbsp;</td>
        <td onmouseover="MM_showHideLayers('sistema','','hide','produtos','','hide','clientes','','hide','cobranca','','show','cobranca-sub1','','hide','usuario','','hide','empresa','','hide')"
        	onmouseout="MM_showHideLayers('cobranca','','hide','cobranca-sub1','','hide')" width="78"><A href="#"><IMG height="28" src="image/menu2/menu_r2_c4.gif" width="78" border="0"></A></td>
        <td width="15">&nbsp;</td>
        <td onmouseover="MM_showHideLayers('sistema','','hide','produtos','','show','clientes','','hide','cobranca','','hide','cobranca-sub1','','hide','usuario','','hide','empresa','','hide')"
        	onmouseout="MM_showHideLayers('produtos','','hide')" width="75"><A href="#"><IMG height="28" src="image/menu2/menu_r2_c6.gif" width="75" border="0"></A></td>
        <td width="15">&nbsp;</td>
        <td onmouseover="MM_showHideLayers('sistema','','hide','produtos','','hide','clientes','','hide','cobranca','','hide','cobranca-sub1','','hide','usuario','','show','empresa','','hide')"
        	onmouseout="MM_showHideLayers('usuario','','hide')" width="65"><A href="#"><IMG height="28" src="image/menu2/menu_r2_c10.gif" width="65" border="0"></A></td>
        <td width="15">&nbsp;</td>
        <td onmouseover="MM_showHideLayers('sistema','','show','produtos','','hide','clientes','','hide','cobranca','','hide','cobranca-sub1','','hide','usuario','','hide','empresa','','hide')"
        	onmouseout="MM_showHideLayers('sistema','','hide')" width="67"><A href="#"><IMG height="28" src="image/menu2/menu_r2_c8.gif" width="67" border="0"></A></td>
        <td width="15">&nbsp;</td>
        <td width="1" bgColor="#74b84b" rowSpan="2"><IMG height="5" src="image/space.gif" width="1"></td>
      	</tr>
      	<tr>
        <td bgColor="#74b84b" colSpan="13"><IMG height="1" src="image/space.gif" width="10"></td>
      	</tr>
      	<tr>
        <td colSpan="15"><IMG height="1" src="image/space.gif" width="10"></td>
      	</tr>
      	<tr>
        <td bgColor="#858585" colSpan="15"><IMG height="5" src="image/space.gif" width="1"></td>
      	</tr>
      </table>
         <table width="765"  border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td><form name="form1" method="post" action="">
                  <select name="select">
                    <option selected>selecioneselecineselecione</option>
                  </select>
                  <select name="select2">
                    <option selected>selecioneselecineselecione</option>
                  </select>
                  <select name="select3">
                    <option selected>selecioneselecineselecione</option>
                  </select>
                  <select name="select4">
                    <option selected>seleciones</option>
                                              </select>
                  <select name="select5">
                    <option selected>seleciones</option>
                  </select>
                  <select name="select6">
                    <option selected>seleciones</option>
                  </select>
                            </form></td>
              </tr>
              <tr>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td>&nbsp;</td>
              </tr>
            </table>
    	</body>
    </HTML>
    

  10. RESPOSTA

    no form:

    <input name="id" type="checkbox" id="id" value="<% = rs.Fields("ID") %>">

    na pagina delete:

    <%

    DIM conexaodb, rs, str, id

    ARRcodAltera = trim(request("id")) '-- pega todos IDs selecionados

    Set objFS = Server.CreateObject("Scripting.FileSystemObject")

    if len(ARRcodAltera) > 0 then '-- se há conteudo na variavel

    id = split(ARRcodAltera,",") '-- pega a listagem de IDs separados por virgula e cria matriz

    call abreconexao

    for i = 0 to ubound(id) '-- para cada item da matriz

    '-- selecionar titulo do arquivo

    set rs = conexaodb.Execute("select titulo from download where id="&id(i))

    titulo = rs(0)

    arquivo = "C:\web\download\"&titulo

    If objFS.FileExists(arquivo) Then '-- se o arquivo existe apaga o arquivo da pasta e o registro no BD

    objFS.DeleteFile(arquivo)

    conexaodb.Execute("DELETE * FROM download WHERE id=" & id(i))

    msg = msg & "<br>- " & titulo & " excluido (" & arquivo & ")"

    else

    msg = msg & "<br>- " & titulo & " não encontrado (" & arquivo & ")"

    end if

    next

    else

    msg = "Nenhum arquivo selecionado."

    end if

    Set objFS = Nothing %>

  11. ola povao

    tenho uma pagina de upload para uma pasta e grava o nome do arquivo no banco.

    Isto esta funcionando OK.

    tenho uma outra pagina que lista os registros do meu BD. cada um deles possui um checkbox para exclusão, podendo o usuario excluir mais de um registro de uma vez so. Isto tambem esta OK.

    o que preciso é excluir da pasta todos os arquivos que foram selecionados, usando FSO

    sei como faço para exluir um arquivo. agora dois não tenho a minima noção.

    sera que voces podem me ajudar?

    Beijocas da Ju rolleyes.gif

  12. solucionado

    
    	if tipo = 1 or tipo = 2 then
    	str2 = "delete from associados where codigo ='"&codigo&"' and (tipo= 3 or tipo=4)"
    	elseif tipo = 3 then
    	str2 = "delete from associados where codigo ='"&codigo&"' and (tipo=1 or tipo=2 or tipo=4)"
    	elseif tipo = 4 then
    	str2 = "delete from associados where codigo ='"&codigo&"' and (tipo=1 or tipo=2 or tipo=3)"
    	end if
    

  13. povao

    é o seguinte, tenho um site que os associados podem cadastrar seu curriculo.

    tenho 4 tipos de perfis

    o problema é que ele so podera ter 2 curriculos cadastrados se os perfis forem o 1 e o 3

    se o perfil for 3 ou 4 ele so pode ter este curriculo cadastrado

    então se ele cadastra ou altera o perfil para 3 ou 4 todos os outros curriculos devem ser deletados do BD

    e se ele cadastra o perfil 1 ou 2 todos os curriculos deste associado com o perfil 3 e 4 devem ser deletados

    fiz este codigo, mas não funciona

    	codigo = request.form("codigo")
    
    	str = "select * from associados where codigo ='"&codigo&"' and perfil ='"&perfil&"' " 
    
    	str1 = "INSERT INTO associados (codigo, perfil, tipo, nome, site, telefone2, telefone3, formacao, funcoes, experiencia, idioma, cursos, resumo1, resumo2) "
    	str1 = str1 & "VALUES ('" & codigo & "','" & perfil & "'," & tipo & ",'" & nome &"','" & site & "','" & telefone2 & "','" & telefone3 & "','" & formacao & "','" & funcoes & "','" & experiencia & "','" & idioma & "','" & cursos & "','" & resumo1 & "','" & resumo2 & "')" 
    
    	'if tipo = 1 or tipo = 2 then
    	'str2 = "delete from associados where codigo ='"&codigo&"' and tipo= 3 and tipo=4"
    	'end if
    
    	'if tipo = 3 then
    	'str2 = "delete from associados where codigo ='"&codigo&"' and tipo=1 and tipo=2 and tipo=4 "
    	'end if
    
    	'if tipo = 4 then
    	'str2 = "delete from associados where codigo ='"&codigo&"' and tipo=1 and tipo=2 and tipo=3 "
    	'end if
    
    	call abreConexao
    	set rs = conexaodb.Execute(str)
    

  14. Dead-Drunk

    por acaso este seu codigo grava no BD o nome dos arquivos que você faz upload?

    é que eu tava precisando de uma ajuda, pois tenho dois campos FILE no meu form e queria que cada um dos FILEs fosse gravado no meu BD so que em campos diferentes. se este seu codigo faz isso tem como você postar ele completo para que eu possa ter uma ideia de como se faz? pois sou iniciante em asp e não tenho ideia de como se faz isso. para o upload estou usando o dundas.

    tambem já usei o Smart olha o script que usei e deu certo:

      <%
       Dim mySmartUpload
       Set mySmartUpload = Server.CreateObject("aspSmartUpload.SmartUpload")
       mySmartUpload.Upload
       mySmartUpload.Save("pasta onde salvar")
    %>
    

    mas tambem voce pode fazer isso que o bareta falou.

    http://aspalliance.com/dundas/default.aspx

  15. depois de muitas horas procurando encontrei alguém que me deu a resposta certa

    acho que vale para todos aqueles que procuram solucionar este problema que muitos dizem não ter solução!

    http://forum.imasters.com.br/index.php?showtopic=35345

    agora o codigo para mais de um menu:

    <html>

    <head>

    <script>

    function MostraDiv(state, valor)

    {

    var DivRef = document.getElementById(valor);

    var IfrRef = document.getElementById('DivMestra');

    if(state)

    {

    DivRef.style.display = "block";

    IfrRef.style.width = DivRef.offsetWidth;

    IfrRef.style.height = DivRef.offsetHeight;

    IfrRef.style.top = DivRef.style.top;

    IfrRef.style.left = DivRef.style.left;

    IfrRef.style.zIndex = DivRef.style.zIndex - 1;

    IfrRef.style.display = "block";

    }

    else

    {

    DivRef.style.display = "none";

    IfrRef.style.display = "none";

    }

    }

    </script>

    </head>

    <body>

    <form>

    <select>

    <option>Puxa! S&oacute; o Imasters Mesmo!</option>

    </select>

    </form>

    <div id="PopupDiv" style="position:absolute; top:25px; left:50px; padding:4px; display:none; background-color:#000000; color:#ffffff; z-index:100">

    Voilá galera!<br>Tá todo mundo feliz agora!.</div>

    <div id="teste" style="position:absolute; top:25px; left:50px; padding:4px; display:none; background-color:#000000; color:#ffffff; z-index:100">

    Voilá galera!<br>teste!.</div>

    <iframe id="DivMestra" src="javascript:false;" scrolling="no" frameborder="0" style="position:absolute; top:0px; left:0px; display:none;"></iframe>

    <br>

    <br>

    <a href="#" onclick="MostraDiv(true, 'PopupDiv')">Clique aqui para mostrar a DIV.</a>

    <br>

    <br>

    <a href="#" onclick="MostraDiv(false, 'PopupDiv')">Clique aqui para esconder a DIV.</a>

    <br>

    <br>

    <a href="#" onclick="MostraDiv(true, 'teste')">ta certo.</a>

    <br>

    <a href="#" onclick="MostraDiv(false, 'teste')">esconde.</a>

    </body>

    </html>

  16. lembre-se que nos campos tipo "numero" na hora de fazer uma inserção ou um update obrigatoriamente voce tem que passar um valor para o BD. Se no seu form este campo estiver "vazio" seu update com certeza apresentara erro.

    campo numero = "&numero&"

    campo string = '"&string&"'

    campo data = #&data&#

×
×
  • Criar Novo...