czas;<br /> < ? echo "var minuta = ".date("i").";"; echo "var sekunda = ".date("s").";"; ?><br /> //document.write(55-minuta);<br /> danagodzina = minuta * 60 + sekunda;<br /> function changetimea()<br /> {<br /> danagodzina = danagodzina + 1;<br /> czas = 55*60 - danagodzina;<br /> min = Math.floor(czas/60);<br /> sec = czas%60;<br /> if(czas < 0) { document.getElementById("timespan").innerHTML="<? echo 'Aberto'; ?>";<br /> }<br /> else<br /> {<br /> if(min < 10) min = "0"+min; if(sec < 10) sec = "0"+sec; document.getElementById("timespan").innerHTML=min+":"+sec; } window.setTimeout("changetimea()",1000); } changetimea(); < /script><br /> < /font> </td><br /> < /tr><br /> < tr><br /> < td width="115"><font style=""><span class="texto">Blood Castle:</span><span class="textoR"><span id=timespan2></span><br /> < script><br /> < ? echo "var minuta2 = ".date("i").";"; echo "var sekunda2 = ".date("s").";"; ?><br /> danagodzina2 = minuta2 * 60 + sekunda2;<br /> if(minuta2 > 30) dopelnej = 3600 - danagodzina2;<br /> else dopelnej = -danagodzina2;<br /> dobc = dopelnej + 25*60;<br /> function changetimea2()<br /> {<br /> dobc = dobc - 1;<br /> if(dobc < -5*60) { dobc = 3600 + 30*60; dobc = dobc-1; } min2 = Math.floor(dobc/60); sec2 = dobc%60; if(min2 < 0) { document.getElementById("timespan2").innerHTML="<? echo 'Aberto'; ?>";<br /> }<br /> else<br /> {<br /> if(min2 < 10) min2 = "0"+min2; if(sec2 < 10) sec2 = "0"+sec2; document.getElementById("timespan2").innerHTML=min2+":"+sec2; } window.setTimeout("changetimea2()",1000); } changetimea2(); < /script>Reset QUOTE<br /> < ?php $alogin = "sa"; $apass = "Senha do SQL"; $db = "MuOnline"; $host = "Seu IP Aqui"; $msconnect=mssql_connect($host,$alogin,$apass); $msdb=mssql_select_db("$db",$msconnect); $query = 'select Name,Class,cLevel,Strength,Dexterity,Vitality,Energy,LevelUpPoint,CtlCode,resets from Character order by resets desc , cLevel desc'; $result = mssql_query( $query ); echo '<html>';<br /> echo "<head>\n";<br /> echo '<body>';<br /> echo '<font face=Verdana>';<br /> echo '<center><table cellSpacing=1 width=100% align=center>'; echo '<tr> < td bgcolor=F5F5F5><center><b>Rank</td> < td bgcolor=F5F5F5><b>Personagem</td> < td bgcolor=F5F5F5><b>Classe</td> < td bgcolor=F5F5F5><b>Level</td> < td bgcolor=F5F5F5><b>Strenght</td> < td bgcolor=F5F5F5><b>Agility</td> < td bgcolor=F5F5F5><b>Vitality</td> < td bgcolor=F5F5F5><b>Energy</font></td> < td bgcolor=F5F5F5><b>Resets</font></td>'; //Aqui voce coloca o numero do rank //no caso esta top 100 //se quiser mudar eh soh trocar o 100 pelo numero desejado for($i=0;$i < 100;++$i) { $row = mssql_fetch_row($result); $personag = htmlentities($row[0]); echo '<tr><td width=5% bgcolor=F5F5F5><center><b>';<br /> echo $i + 1;<br /> echo 'o</td><td width=21% bgcolor=F5F5F5><table>'; echo $personag; echo '</table></td><td width=19% bgcolor=F5F5F5>';<br /> if($row[8] == 8){<br /> echo 'Game Master';<br /> }<br /> else {<br /> if($row[1] == 0){<br /> echo 'Dark Wizard';<br /> }<br /> if($row[1] == 1){<br /> echo 'Soul Master';<br /> }<br /> if($row[1] == 16){<br /> echo 'Dark Knight';<br /> }<br /> if($row[1] == 17){<br /> echo 'Blade Knight';<br /> }<br /> if($row[1] == 32){<br /> echo 'Elf';<br /> }<br /> if($row[1] == 33){<br /> echo 'Muse Elf';<br /> }<br /> if($row[1] == 48){<br /> echo 'Magic Gladiator';<br /> }<br /> if($row[1] == 64){<br /> echo 'Dark Lord';<br /> }<br /> }<br /> echo '</td><td width=8% bgcolor=F5F5F5>';<br /> echo $row[2];<br /> echo '</td><td width=9% bgcolor=F5F5F5>';<br /> echo $row[3];<br /> echo '</td><td width=9% bgcolor=F5F5F5>';<br /> echo $row[4];<br /> echo '</td><td width=9% bgcolor=F5F5F5>';<br /> echo $row[5];<br /> echo '</td><td width=9% bgcolor=F5F5F5>';<br /> echo $row[6];<br /> echo '</td><td width=9% bgcolor=F5F5F5>';<br /> echo $row[9];<br /> echo'</td></tr>'; } echo '</table>';<br /> echo '</body>';<br /> echo '</html>';<br /> $conn=mssql_close();<br /> ?>Corrigindo Bug