Ir para conteúdo
Fórum Script Brasil
  • 0

Tabela Numerada


PRISCILA STOCHINI

Pergunta

Como eu faço para colocar numero nas linhas de uma tabela.

é o seguinte...

Tenho uma tabela de cadastros. O que quero é criar uma coluna que seja numerada automaticamente conforme sejam cadastrados os dados.

Como faço isso..

criou um contador???

mas como coloco isso dentro da tabela..

 <table width="445" border="1" align="center" cellspacing="1" bordercolor="#CCCCCC">
    <tr>
      <td colspan="12"><div align="center"><span class="style10"><span class="style1">SUPORTE VIA TELEFONE </span> <span class="style11">FINALIZADAS</span></span></div></td>
    </tr>
    <tr>
      <td><div align="center"><span class="style7">Visualizar</span></div></td>
      <td width="51"><div align="center"><span style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold">Data</span></div></td>
      <td width="44"><div align="center"><span style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold">Usu&aacute;rio</span></div></td>
      <td width="52"><div align="center"><span style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold">Contato</span></div></td>
      <td width="77"><div align="center"><span class="style7">Email</span></div></td>
      <td width="24"><div align="center"><span style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold">DDD</span></div></td>
      <td width="18"><div align="center"><span style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold">Tel</span></div></td>
      <td width="52"><div align="center"><span style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold">Software</span></div></td>
      <td width="24"><div align="center"><span style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold">Tipo</span></div></td>
      <td width="183"><div align="left"><span class="style7">Vencimento</span></div></td>
      <td width="183"><div align="center"><span class="style7">Atendimento</span></div></td>
      <td width="183"><div align="center"><span class="style7">Operacional</span></div></td>
    </tr>
       <%
    rs.MoveFirst 
    Do While Not rs.eof
    %>
    <tr>
      <td nowrap="nowrap"><div align="center"><a href="visualiza.asp?id=<%=rs("id")%>" target="_blank" class="link02" >[Visualizar]</a></div></td>
      <td nowrap="nowrap"><div align="center"><span style="font-family: Arial, Helvetica, sans-serif; font-size: 12px;"><%=rs("data")%></span></div></td>
      <td nowrap="nowrap"><div align="left"><span style="font-family: Arial, Helvetica, sans-serif; font-size: 12px;"><%=rs("usuario")%></span></div></td>
      <td nowrap="nowrap"><div align="left"><span style="font-family: Arial, Helvetica, sans-serif; font-size: 12px;"><%=rs("contato")%></span></div></td>
      <td nowrap="nowrap"><div align="left"><span style="font-family: Arial, Helvetica, sans-serif; font-size: 12px;"><%=rs("email")%></span></div></td>
      <td nowrap="nowrap"><div align="left"><span style="font-family: Arial, Helvetica, sans-serif; font-size: 12px;"><%=rs("ddd")%></span></div></td>
      <td nowrap="nowrap"><div align="left"><span style="font-family: Arial, Helvetica, sans-serif; font-size: 12px;"><%=rs("tel")%></span></div></td>
      <td nowrap="nowrap"><div align="left"><span style="font-family: Arial, Helvetica, sans-serif; font-size: 12px;"><%=rs("software")%></span></div>
      <div align="center"></div></td>
      <td nowrap="nowrap"><div align="left"><span style="font-family: Arial, Helvetica, sans-serif; font-size: 12px;"><%=rs("tipo")%></span></div></td>
      <td nowrap="nowrap"><div align="left"><span style="font-family: Arial, Helvetica, sans-serif; font-size: 12px;"><%=rs("vencimento")%></span></div></td>
      <td nowrap="nowrap"><div align="left"><span style="font-family: Arial, Helvetica, sans-serif; font-size: 12px;"><%=rs("atendimento")%></span></div></td>
      <td nowrap="nowrap"><div align="left"><span style="font-family: Arial, Helvetica, sans-serif; font-size: 12px;"><%=rs("operacional")%></span></div></td>
    </tr>
<%rs.MoveNext : Loop

End if
%>
  </table>

Link para o comentário
Compartilhar em outros sites

7 respostass a esta questão

Posts Recomendados

  • 0

Meu não tenho tempo de ficar procurando...o sistema de busca aqui tá fraco...podia ter um lugar onde você verificava os seus proprios posts.

e postei de novo porque dá forma que você colocou não consegui resolver meu problema..não entendi direito..

estou começando a mexer a pouco tempo , não tenho tanta prática assim..

Link para o comentário
Compartilhar em outros sites

  • 0

A resposta do Fantasma no outro tópico não funcionou?

tenta assim:

<table width="1009" border="1" align="center" cellspacing="1" bordercolor="#CCCCCC">
    <tr>
      <td colspan="13"><div align="center"><span class="style10"><span class="style1">SUPORTE VIA TELEFONE </span> <span class="style11">FINALIZADAS</span></span></div></td>
    </tr>
    <tr>
      <td width="4">Nº</td>
      <td width="68"><div align="center"><span class="style7">Visualizar</span></div></td>
      <td width="47"><div align="center"><span style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold">Data</span></div></td>
      <td width="44"><div align="center"><span style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold">Usu&aacute;rio</span></div></td>
      <td width="48"><div align="center"><span style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold">Contato</span></div></td>
      <td width="73"><div align="center"><span class="style7">Email</span></div></td>
      <td width="24"><div align="center"><span style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold">DDD</span></div></td>
      <td width="20"><div align="center"><span style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold">Tel</span></div></td>
      <td width="52"><div align="center"><span style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold">Software</span></div></td>
      <td width="24"><div align="center"><span style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold">Tipo</span></div></td>
      <td width="179"><div align="left"><span class="style7">Vencimento</span></div></td>
      <td width="179"><div align="center"><span class="style7">Atendimento</span></div></td>
      <td width="179"><div align="center"><span class="style7">Operacional</span></div></td>
    </tr>
       <%
    Cont = 0
    rs.MoveFirst 
    Do While Not rs.eof
    Cont = cont + 1
    %>
    <tr>
      <td nowrap="nowrap" width="4">
        <p align="center"><font style="font-size: 9pt" face="Tahoma"><%=cont%></font></td>
      <td nowrap="nowrap" width="68"><div align="center"><a href="visualiza.asp?id=<%=rs("id")%>" target="_blank" class="link02" >[Visualizar]</a></div></td>
      <td nowrap="nowrap"><div align="center"><span style="font-family: Arial, Helvetica, sans-serif; font-size: 12px;"><%=rs("data")%></span></div></td>
      <td nowrap="nowrap"><div align="left"><span style="font-family: Arial, Helvetica, sans-serif; font-size: 12px;"><%=rs("usuario")%></span></div></td>
      <td nowrap="nowrap"><div align="left"><span style="font-family: Arial, Helvetica, sans-serif; font-size: 12px;"><%=rs("contato")%></span></div></td>
      <td nowrap="nowrap"><div align="left"><span style="font-family: Arial, Helvetica, sans-serif; font-size: 12px;"><%=rs("email")%></span></div></td>
      <td nowrap="nowrap"><div align="left"><span style="font-family: Arial, Helvetica, sans-serif; font-size: 12px;"><%=rs("ddd")%></span></div></td>
      <td nowrap="nowrap"><div align="left"><span style="font-family: Arial, Helvetica, sans-serif; font-size: 12px;"><%=rs("tel")%></span></div></td>
      <td nowrap="nowrap"><div align="left"><span style="font-family: Arial, Helvetica, sans-serif; font-size: 12px;"><%=rs("software")%></span></div>
      <div align="center"></div></td>
      <td nowrap="nowrap"><div align="left"><span style="font-family: Arial, Helvetica, sans-serif; font-size: 12px;"><%=rs("tipo")%></span></div></td>
      <td nowrap="nowrap"><div align="left"><span style="font-family: Arial, Helvetica, sans-serif; font-size: 12px;"><%=rs("vencimento")%></span></div></td>
      <td nowrap="nowrap"><div align="left"><span style="font-family: Arial, Helvetica, sans-serif; font-size: 12px;"><%=rs("atendimento")%></span></div></td>
      <td nowrap="nowrap"><div align="left"><span style="font-family: Arial, Helvetica, sans-serif; font-size: 12px;"><%=rs("operacional")%></span></div></td>
    </tr>
<%rs.MoveNext : Loop

End if
%>
  </table>

Link para o comentário
Compartilhar em outros sites

  • 0

Meu não tenho tempo de ficar procurando...o sistema de busca aqui tá fraco...podia ter um lugar onde você verificava os seus proprios posts.

Acesse o seu Perfil (não é o Painel de Controle), clique em "Opções de Perfil", no canto superior direito, e selecione "Visualizar tópicos do membro". Pronto. Aparecerão todos os seus tópicos.

Se quiser ver todos os seus posts, basta selecionar "Visualizar posts do membro".

Link para o comentário
Compartilhar em outros sites

  • 0

Meu não tenho tempo de ficar procurando...o sistema de busca aqui tá fraco...podia ter um lugar onde você verificava os seus proprios posts.

E quem disse que não tem? é só clicar no seu nome (perfil), No botao superior direito escrito Opcoes de perfil voce pode clicar em Visualizar topicos do membro ou Visualizar posts do membro

[editando]

Roberto chaaaatooo hahahaha, brincadeira

[/editando]

Link para o comentário
Compartilhar em outros sites

  • 0

A resposta do Fantasma no outro tópico não funcionou?

tenta assim:

<table width="1009" border="1" align="center" cellspacing="1" bordercolor="#CCCCCC">
    <tr>
      <td colspan="13"><div align="center"><span class="style10"><span class="style1">SUPORTE VIA TELEFONE </span> <span class="style11">FINALIZADAS</span></span></div></td>
    </tr>
    <tr>
      <td width="4">Nº</td>
      <td width="68"><div align="center"><span class="style7">Visualizar</span></div></td>
      <td width="47"><div align="center"><span style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold">Data</span></div></td>
      <td width="44"><div align="center"><span style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold">Usuário</span></div></td>
      <td width="48"><div align="center"><span style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold">Contato</span></div></td>
      <td width="73"><div align="center"><span class="style7">Email</span></div></td>
      <td width="24"><div align="center"><span style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold">DDD</span></div></td>
      <td width="20"><div align="center"><span style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold">Tel</span></div></td>
      <td width="52"><div align="center"><span style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold">Software</span></div></td>
      <td width="24"><div align="center"><span style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold">Tipo</span></div></td>
      <td width="179"><div align="left"><span class="style7">Vencimento</span></div></td>
      <td width="179"><div align="center"><span class="style7">Atendimento</span></div></td>
      <td width="179"><div align="center"><span class="style7">Operacional</span></div></td>
    </tr>
       <%
    Cont = 0
    rs.MoveFirst 
    Do While Not rs.eof
    Cont = cont + 1
    %>
    <tr>
      <td nowrap="nowrap" width="4">
        <p align="center"><font style="font-size: 9pt" face="Tahoma"><%=cont%></font></td>
      <td nowrap="nowrap" width="68"><div align="center"><a href="visualiza.asp?id=<%=rs("id")%>" target="_blank" class="link02" >[Visualizar]</a></div></td>
      <td nowrap="nowrap"><div align="center"><span style="font-family: Arial, Helvetica, sans-serif; font-size: 12px;"><%=rs("data")%></span></div></td>
      <td nowrap="nowrap"><div align="left"><span style="font-family: Arial, Helvetica, sans-serif; font-size: 12px;"><%=rs("usuario")%></span></div></td>
      <td nowrap="nowrap"><div align="left"><span style="font-family: Arial, Helvetica, sans-serif; font-size: 12px;"><%=rs("contato")%></span></div></td>
      <td nowrap="nowrap"><div align="left"><span style="font-family: Arial, Helvetica, sans-serif; font-size: 12px;"><%=rs("email")%></span></div></td>
      <td nowrap="nowrap"><div align="left"><span style="font-family: Arial, Helvetica, sans-serif; font-size: 12px;"><%=rs("ddd")%></span></div></td>
      <td nowrap="nowrap"><div align="left"><span style="font-family: Arial, Helvetica, sans-serif; font-size: 12px;"><%=rs("tel")%></span></div></td>
      <td nowrap="nowrap"><div align="left"><span style="font-family: Arial, Helvetica, sans-serif; font-size: 12px;"><%=rs("software")%></span></div>
      <div align="center"></div></td>
      <td nowrap="nowrap"><div align="left"><span style="font-family: Arial, Helvetica, sans-serif; font-size: 12px;"><%=rs("tipo")%></span></div></td>
      <td nowrap="nowrap"><div align="left"><span style="font-family: Arial, Helvetica, sans-serif; font-size: 12px;"><%=rs("vencimento")%></span></div></td>
      <td nowrap="nowrap"><div align="left"><span style="font-family: Arial, Helvetica, sans-serif; font-size: 12px;"><%=rs("atendimento")%></span></div></td>
      <td nowrap="nowrap"><div align="left"><span style="font-family: Arial, Helvetica, sans-serif; font-size: 12px;"><%=rs("operacional")%></span></div></td>
    </tr>
<%rs.MoveNext : Loop

End if
%>
  </table>

Link para o comentário
Compartilhar em outros sites

Participe da discussão

Você pode postar agora e se registrar depois. Se você já tem uma conta, acesse agora para postar com sua conta.

Visitante
Responder esta pergunta...

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emoticons são permitidos.

×   Seu link foi incorporado automaticamente.   Exibir como um link em vez disso

×   Seu conteúdo anterior foi restaurado.   Limpar Editor

×   Você não pode colar imagens diretamente. Carregar ou inserir imagens do URL.



  • Estatísticas dos Fóruns

    • Tópicos
      152k
    • Posts
      651,7k
×
×
  • Criar Novo...