|
Você não é registrado, por favor registre-se para ter acesso ao conteúdo completo. Caso seja registrado, efetue login. Esqueceu sua senha? Clique aqui Recomendamos o uso do Mozilla Firefox para uma melhor visualização. |
|
| Início | Postados Hoje | Marcar Fóruns Como Lidos | Álbums | Banidos | SE Team | Medalhas |
|
|||||||
| Registrar | Loteria VIP | Staff SE | Regras do fórum | Comunidade | Arcade | Postados Hoje | Pesquisar | Experience |
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|
Ferramentas do Tópico | Modos de Exibição |
|
|
#1 |
|
Membro - Cabo
![]() Registrado em: Jan 2009
Localização: Ribeirão Preto
Posts: 26
Agradeceu: 0
Agradecido 52 Vezes em 25 Posts
|
Bem muitos deve imaginar algo fodastico de se fazer mais nem tanto.. eu tentei uam vez e não deu certo pelo fato deu ter criado uma regra para não mostrar ADMS e GMS sendo assim acabou quer não tinha nada para mostrar e eu imaginava que o comando que nu funcionava.. então tnetei de novo e funciono apkskas
Essa é sua pagina rank.php Código PHP: Código:
[Somente Usuários Registrados Podem Visualizar os Links Desta PáginaClique aqui para se Registrar]
<?
include("config.php");
?>
<html lang="pt">
<head>
<meta name="description" content="Grand Chase Web" />
<title> </title><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
a { font-size:12px; color:#666; text-decoration:none; font-family:"Arial"; }
a:hover { color:#666666; text-decoration:none;}
a:visited { color:#666666; text-decoration:none;}
body,th,tr { font-size:12px; color:#333; font-family:"Arial" }
input { font-size:12px; color:#666; font-family:"Tahoma"; border:1px solid #999; }
select { font-size:12px; color:#666; font-family:"Tahoma"; border:1px solid #999; }
.submit { font-size:12px; color:#666; font-family:"Tahoma"; border:1px solid #999; background-color:#333333;}
</style>
</head>
<body oncontextmenu="return false">
<div align="left"><strong>Rankings</strong></div>
<br>
<br>
<table width="95%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="5%" height="19" bgcolor="#CCCCCC"><div align="left">Rank </div></td>
<td width="25%" bgcolor="#CCCCCC"><div align="center"><strong>Nome</strong> - Raça </div></td>
<td width="10%" bgcolor="#CCCCCC"><div align="left">Level</div></td>
<td width="15%" bgcolor="#CCCCCC">Classe</td>
<td width="20%" bgcolor="#CCCCCC">Experiência</td>
<td width="10%" bgcolor="#CCCCCC">Vitorias</td>
<td width="10%" bgcolor="#CCCCCC">Derrotas</td>
</tr>
<?
$Query = mssql_query("select top 100 login,CharType,level,Promotion,Exp,Win,Lose from characters order by level desc");
for($i=0;$i<mssql_num_rows($Query);$i++) {
$rank = $i+1;
$Array = mssql_fetch_row($Query);
@include(@$_GET['php']);
switch($Array[1]) {
case 0: $classefinal = "<img src='img/icone_elesis.gif' border='0'>"; break;
case 1: $classefinal = "<img src='img/icone_lire.gif' border='0'>"; break;
case 2: $classefinal = "<img src='img/icone_arme.gif' border='0'>"; break;
case 3: $classefinal = "<img src='img/icone_lass.gif' border='0'>"; break;
case 4: $classefinal = "<img src='img/icone_ryan.gif' border='0'>"; break;
case 5: $classefinal = "<img src='img/icone_ronan.gif' border='0'>"; break;
}
@include(@$_GET['php2']);
switch($Array[2]) {
case 0: $job = "1 classe"; break;
case 1: $job = "2 classe"; break;
case 2: $job = "3 classe"; break;
case 3: $job = "4 classe"; break;
}
?>
<tr>
<td width="5%" height="19"><div align="left"><?=$rank?></div></td>
<td width="25%"><div align="center"><strong><?=$Array[0]?></strong> - <?=$classefinal?></div></td>
<td width="10%"><div align="left"><?=$Array[2]?></div></td>
<td width="15%"><?=$job?></td>
<td width="20%"><?=$Array[4]?></td>
<td width="10%"><?=$Array[5]?></td>
<td width="10%"><?=$Array[6]?></td>
</tr>
<? } ?>
</table>
</body>
</html>
simples Primeiro. vamos pegar esse cóigo abaixo e por depois d ?> Código PHP: Código:
[Somente Usuários Registrados Podem Visualizar os Links Desta PáginaClique aqui para se Registrar]
<?
//----------Busca Nicks para os logins.---------------------------------------------------------
//--------------------------------------------------------------------------------------------
$nicks = mssql_query("SELECT Login,nick FROM nickNames WHERE Login = '$Array[0]' ");
$nicks_row = mssql_fetch_row($nicks);
?>
depois vamos pegar o comando do nick:
Código PHP:
<?=$nicks_row[1]?>
e colocar no lugar do
[php]
<?=$Array[0]?>
Código PHP: Código:
[Somente Usuários Registrados Podem Visualizar os Links Desta PáginaClique aqui para se Registrar]
<?
include("config.php");
?>
<html lang="pt">
<head>
<meta name="description" content="Grand Chase Web" />
<title> </title><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
a { font-size:12px; color:#666; text-decoration:none; font-family:"Arial"; }
a:hover { color:#666666; text-decoration:none;}
a:visited { color:#666666; text-decoration:none;}
body,th,tr { font-size:12px; color:#333; font-family:"Arial" }
input { font-size:12px; color:#666; font-family:"Tahoma"; border:1px solid #999; }
select { font-size:12px; color:#666; font-family:"Tahoma"; border:1px solid #999; }
.submit { font-size:12px; color:#666; font-family:"Tahoma"; border:1px solid #999; background-color:#333333;}
</style>
</head>
<body oncontextmenu="return false">
<div align="left"><strong>Rankings</strong></div>
<br>
<br>
<table width="95%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="5%" height="19" bgcolor="#CCCCCC"><div align="left">Rank </div></td>
<td width="25%" bgcolor="#CCCCCC"><div align="center"><strong>Nome</strong> - Raça </div></td>
<td width="10%" bgcolor="#CCCCCC"><div align="left">Level</div></td>
<td width="15%" bgcolor="#CCCCCC">Classe</td>
<td width="20%" bgcolor="#CCCCCC">Experiência</td>
<td width="10%" bgcolor="#CCCCCC">Vitorias</td>
<td width="10%" bgcolor="#CCCCCC">Derrotas</td>
</tr>
<?
$Query = mssql_query("select top 100 login,CharType,level,Promotion,Exp,Win,Lose from characters order by level desc");
for($i=0;$i<mssql_num_rows($Query);$i++) {
$rank = $i+1;
$Array = mssql_fetch_row($Query);
@include(@$_GET['php']);
switch($Array[1]) {
case 0: $classefinal = "<img src='img/icone_elesis.gif' border='0'>"; break;
case 1: $classefinal = "<img src='img/icone_lire.gif' border='0'>"; break;
case 2: $classefinal = "<img src='img/icone_arme.gif' border='0'>"; break;
case 3: $classefinal = "<img src='img/icone_lass.gif' border='0'>"; break;
case 4: $classefinal = "<img src='img/icone_ryan.gif' border='0'>"; break;
case 5: $classefinal = "<img src='img/icone_ronan.gif' border='0'>"; break;
}
@include(@$_GET['php2']);
switch($Array[2]) {
case 0: $job = "1 classe"; break;
case 1: $job = "2 classe"; break;
case 2: $job = "3 classe"; break;
case 3: $job = "4 classe"; break;
}
?>
<?
//----------Busca Nicks para os logins.---------------------------------------------------------
//--------------------------------------------------------------------------------------------
$nicks = mssql_query("SELECT Login,nick FROM nickNames WHERE Login = '$Array[0]' ");
$nicks_row = mssql_fetch_row($nicks);
?>
<tr>
<td width="5%" height="19"><div align="left"><?=$rank?></div></td>
<td width="25%"><div align="center"><strong><?=$nicks_row[1]?></strong> - <?=$classefinal?></div></td>
<td width="10%"><div align="left"><?=$Array[2]?></div></td>
<td width="15%"><?=$job?></td>
<td width="20%"><?=$Array[4]?></td>
<td width="10%"><?=$Array[5]?></td>
<td width="10%"><?=$Array[6]?></td>
</tr>
<? } ?>
</table>
</body>
</html>
PS: Nele não vem link para ve perfil nem nada... é so o Ranking com os nick. |
|
|
|
| Os Seguintes 2 Usuários disseram Obrigado(a) para LipeH por gostarem deste post : |
Adriano157 (19-10-2009), ScareTissue (20-01-2009)
|
| Links Patrocinados |
|
|
Tópicos Similares
|
||||
| Tópico | Tópico Iniciado Por | Fórum | Respostas | Última Mensagem |
| [ Tutorial ] Eclipse + Maven + Ant | Lawliet | [L2J] Tutoriais | 0 | 09-05-2009 05:39 PM |
| Criando uma DLL | Secret Experience | [MU] Outros | 1 | 03-02-2009 03:39 PM |
| Super tutorial Mamute, Mage, Trico, Armor, Turtle e Boomer | ChoVinisTa | [GB | Players] Tutoriais | 0 | 13-12-2008 10:08 PM |