<div class="primary-block">
<?php include('templates/rank/rankrs_top.tpl'); ?>
    <div class="main-content">
        <h1 class="title-content">Xếp hạng Reset nhân vật</h1>
        <div class="intro-content">
            <div class="in-20">
                <span class="color-violet">Xếp hạng Theo Số lần Reset/Relife</span>
            </div>
        </div>
    </div>
</div>

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

    <div class="in-20 font-14 text-semibold">
        <p class="update-time"><span class="color-red">Cập nhập lúc:</span> <span class="color-brown"><? echo $time_top; ?><span class="color-red"> <span class="color-red">( 5 phút cập nhập 1 lần )</span></p>

        <div class="out-top-20">
            <p class="in-10" align="center">
                <span class="color-blue">TOP <? echo $title_top; ?></span>
            </p>
            <table class="table table-blue-white table-border-2 table-text-center table-sort">
                <thead>
                <tr>
                    <th>#</th>
                    <th>Nhân vật</th>
                    <th><font color="red">RL</font></th>
                    <th><font color="blue">RS</font></th>
                    <th>LV</th>
					<th>Point</th>
                    <th>Class</th>
                    <th>ĐGT</th>
					<th>RS Cuối Lúc</th>
                </tr>
                </thead>
                <tbody>
                <? for($i=0;$i<count($char);$i++) { 
					$top = $i+1;
					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 $char[$i]['name']; ?></td>
                    <td align="center"><font color="red"><? echo $char[$i]['relife']; ?></font></td>
                    <td><font color="blue"><? echo $char[$i]['reset']; ?></font></td>
                    <td><? echo $char[$i]['level']; ?></td>
					<td><? echo $char[$i]['point_total']; ?></td>
                    <td align="center"><? echo $char[$i]['nvclass']; ?></td>
                    <td align="center"><? echo $char[$i]['dgt_time']; ?></td>
					<td align="center"><? echo $char[$i]['resets_time']; ?></td>
                </tr>
                <? } ?>
                </tbody>
            </table>
        </div>
    </div>
</div>