<div class="primary-block">
<?php include('templates/rank/rankrs_top.tpl'); ?>
    <div class="main-content">
        <h1 class="title-content">Xếp hạng TOP lúc 0h</h1>
    </div>
</div>

<div class="primary-block out-top-20">

    <div class="in-20">

        <center><font color='blue'><strong><? echo $title_top; ?></strong></font></center><br />


        <table class="table table-blue table-border-1 table-text-center table-sort">
            <thead>
              <tr>
                <th align="center" scope="col">#</th>
                <th align="center" scope="col">Nhân vật</th>
                <th align="center" scope="col">Relife</th>
                <th align="center" scope="col">Reset</th>
                <th align="center" scope="col">Lớp nhân vật</th>
                <th align="center" scope="col">RS Cuối</th>
              </tr>
            </thead>
            <tbody>
<? 
    foreach($rank as $key => $val) { 
        if(is_int($key)) {
$top = $key;
if($top==1){$top='<img src="images/icons/top/1.png" width="80px"/>';}
if($top==2){$top='<img src="images/icons/top/2.png" width="60px"/>';}
if($top==3){$top='<img src="images/icons/top/3.png" width="55px"/>';}
?>

		  <tr>
		    <td align="center"><? echo $top; ?></td>
		    <td align="center"><? echo $val['name']; ?></td>
		    <td align="center"><? echo $val['relife']; ?></td>
            <td align="center"><? echo $val['reset']; ?></td>
		    <td align="center"><? echo $val['class']; ?></td>
            <td align="center"><? echo $val['time_0h'];; ?></td>
		  </tr>
<? } } ?>
            </tbody>
		</table>
        
    </div>
</div>