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

script pronto de ranking


will ^^

Pergunta

5 respostass a esta questão

Posts Recomendados

  • 0

galera encontrei um top site e fiz algumas mudanças nele , porem quando dois time tem o mesmo saldo de pontos o criterio de desempate seria o saldo de gols , vitorias .. como faço para que no minha lista ele faça isso automaticamente ,.. meu banco de dados ta assim nome do time , ai vai gols a favor, gols contra , saldo de gol , vitorias , derrota , empate , e pontos .. ai ferro pra minha cabeça uhuhuhuhuh

<html>

<head>

<meta http-equiv="Content-Language" content="pt-br">

<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">

<title>.: ASPTopSites :.</title>

<link REL="stylesheet" HREF="ats.css">

</head>

<!--#include file="adovb script:history.go(-1)"">Voltar</a><br><br><br><br><BR><BR><BR><BR><BR><BR><BR><BR><BR></center></font></span>"

Response.Write " </td></tr><tr><td width=""100%""><img border=""0"" src=""baixo.gif""></td></tr></table></body> "

Response.End

Else

rs.AbsolutePage = intpag

End if

if rs.recordcount = "1" then

Response.write "<div align=center><font face=verdana size=2>Existe "&rs.RecordCount&" Times inscrito.<br><Br><br></font></div>"

else

Response.write "<div align=center><font face=verdana size=2>Existem "&rs.RecordCount&" Times inscritos.<br><Br><br></font></div>"

end if

intRec= 0

While intRec < rs.pagesize AND NOT rs.EOF

%>

<div align="center">

<center>

<table border="0" width="65%" cellspacing="0" cellpadding="0" height="51" style="border-width: 0px">

<tr>

<td width="15%" align="right" height="1" valign="top" style="border-style: none; border-width: medium; "></td>

<td width="39%" height="1" valign="top" style="border-style: none; border-width: medium; ">

</td>

<td width="11%" height="1" valign="top" style="border-style: none; border-width: medium; ">

Gols</td>

<td width="15%" height="1" valign="top" style="border-style: none; border-width: medium; ">

Pontos</td>

<td width="20%" height="1" valign="top" style="border-style: none; border-width: medium; "></td>

</tr>

<tr>

<td width="15%" align="center" height="1" valign="middle" style="border-style: none; border-width: medium; " bgcolor="#CCCCCC"><font face="Verdana" size="2"><b><%=rs.absoluteposition%>º</b>&nbsp;&nbsp;</font></td>

<td width="39%" height="1" valign="middle" style="border-style: none; border-width: medium; " align="center" bgcolor="#CCCCCC">

Time: <a href="<%=rs("url")%>" target="<%=rs("id")%>"><%=rs("titulo")%></a></td>

<td width="11%" height="1" valign="middle" style="border-style: none; border-width: medium; " align="center" bgcolor="#CCCCCC"><%=rs("golfavor")%></td>

<td width="15%" height="1" valign="middle" style="border-style: none; border-width: medium; " align="center" bgcolor="#CCCCCC"><%=rs("pontos")%></td>

<td width="20%" height="1" valign="middle" style="border-style: none; border-width: medium; " align="center" bgcolor="#CCCCCC">&nbsp;</td>

</tr>

</table>

</center>

</div><br>

<center>

<%

rs.Movenext

intRec = intRec + 1

if rs.eof then response.write "&nbsp;"

Wend

%>

<br><br>

<font face="verdana" size="2">

<%

if intpag <= 1 then

response.write "<font color=""#cccccc"">Anterior </font>"

else

response.write "&nbsp;&nbsp;<a href ="&Request.ServerVariables("SCRIPT_NAME")&"?pag=" & intpag - 1 &"&cat="& categoria &">Anterior</a>"

end if

if intpag > 1 or NOT rs.eof then

For total = 1 to rs.pagecount

If total = intpag then

response.write "<font color=""#cccccc"">&nbsp;&nbsp;" & total & "</font>"

else

Response.Write vbCrLf & " &nbsp;<a href="&Request.ServerVariables("SCRIPT_NAME")&"?pag="&total&"&cat="& categoria &">"&total&"</a>"

end if

response.write vbctlf & "<font color=""#E0E0E0"">&nbsp;|</font>"

Next

End if

if intpag = rs.Pagecount then

response.write "<font color=""#cccccc""> Próxima</font>"

else

response.write "&nbsp;&nbsp;<a href ="&Request.ServerVariables("SCRIPT_NAME")&"?pag=" & intpag + 1 &"&cat="& categoria &">Próxima</a>"

end if

Set rs = nothing

%>

</font>

</center><br><br>

</td>

</tr>

<tr>

<td width="100%"><img border="0" src="baixo.gif" WIDTH="698" HEIGHT="28"></td>

</tr>

</table>

</body>

Link para o comentário
Compartilhar em outros sites

Visitante
Este tópico está impedido de receber novos posts.


  • Estatísticas dos Fóruns

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