<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 loại 2</h1>
        <div class="intro-content">
            <div class="in-20">
                <span class="color-violet">Xếp hạng Theo Số lần thực hiện Reset :</span><br />
                    <span class="tag tag-red">Reset</span>
                    <span class="tag tag-red">Reset VIP</span>
					<span class="tag tag-red">Reset Vượt Mức Không Tính BXH ALL</span>
            </div>
        </div>
    </div>
</div>

<div class="primary-block out-top-20">
<div class="primary-block out-top-20">
    <div class="main-content">
        <ul class="tabs-content">
			<li <? if($_GET['act']=='rankrs2' && $_GET['action']=='daily') echo 'class="active"'; ?>><a href="#rank&act=rankrs2&action=daily&type=all" rel="ajax">Ngày</a>
			<div class="submenu">
			<p <? if($_GET['act']=='rankrs2' && $_GET['action']=='daily' && $_GET['type']=='all') echo 'class="active"'; ?>><a href="#rank&act=rankrs2&action=daily&type=all" rel="ajax">ALL</a></p>
			<p <? if($_GET['act']=='rankrs2' && $_GET['action']=='daily' && $_GET['type']=='dw') echo 'class="active"'; ?>><a href="#rank&act=rankrs2&action=daily&type=dw" rel="ajax">DW</a></p>
			<p <? if($_GET['act']=='rankrs2' && $_GET['action']=='daily' && $_GET['type']=='dk') echo 'class="active"'; ?>><a href="#rank&act=rankrs2&action=daily&type=dk" rel="ajax">DK</a></p>
			<p <? if($_GET['act']=='rankrs2' && $_GET['action']=='daily' && $_GET['type']=='elf') echo 'class="active"'; ?>><a href="#rank&act=rankrs2&action=daily&type=elf" rel="ajax">ELF</a></p>
			<p <? if($_GET['act']=='rankrs2' && $_GET['action']=='daily' && $_GET['type']=='mg') echo 'class="active"'; ?>><a href="#rank&act=rankrs2&action=daily&type=mg" rel="ajax">MG</a></p>
			<p <? if($_GET['act']=='rankrs2' && $_GET['action']=='daily' && $_GET['type']=='dl') echo 'class="active"'; ?>><a href="#rank&act=rankrs2&action=daily&type=dl" rel="ajax">DL</a></p>
			<p <? if($_GET['act']=='rankrs2' && $_GET['action']=='daily' && $_GET['type']=='dw') echo 'class="active"'; ?>><a href="#rank&act=rankrs2&action=daily&type=dw" rel="ajax">DW</a></p>
			<p <? if($_GET['act']=='rankrs2' && $_GET['action']=='daily' && $_GET['type']=='sum') echo 'class="active"'; ?>><a href="#rank&act=rankrs2&action=daily&type=sum" rel="ajax">SUM</a></p>
			<p <? if($_GET['act']=='rankrs2' && $_GET['action']=='daily' && $_GET['type']=='rf') echo 'class="active"'; ?>><a href="#rank&act=rankrs2&action=daily&type=rf" rel="ajax">RF</a></p>
			<p <? if($_GET['act']=='rankrs2' && $_GET['action']=='daily' && $_GET['type']=='gl') echo 'class="active"'; ?>><a href="#rank&act=rankrs2&action=daily&type=gl" rel="ajax">GL</a></p>
			</div>		
			</li>
			<li <? if($_GET['act']=='rankrs2' && $_GET['action']=='week') echo 'class="active"'; ?>><a href="#rank&act=rankrs2&action=week&type=all" rel="ajax">Tuần</a>
			<div class="submenu">
			<p <? if($_GET['act']=='rankrs2' && $_GET['action']=='week' && $_GET['type']=='all') echo 'class="active"'; ?>><a href="#rank&act=rankrs2&action=week&type=all" rel="ajax">ALL</a></p>
			<p <? if($_GET['act']=='rankrs2' && $_GET['action']=='week' && $_GET['type']=='dw') echo 'class="active"'; ?>><a href="#rank&act=rankrs2&action=week&type=dw" rel="ajax">DW</a></p>
			<p <? if($_GET['act']=='rankrs2' && $_GET['action']=='week' && $_GET['type']=='dk') echo 'class="active"'; ?>><a href="#rank&act=rankrs2&action=week&type=dk" rel="ajax">DK</a></p>
			<p <? if($_GET['act']=='rankrs2' && $_GET['action']=='week' && $_GET['type']=='elf') echo 'class="active"'; ?>><a href="#rank&act=rankrs2&action=week&type=elf" rel="ajax">ELF</a></p>
			<p <? if($_GET['act']=='rankrs2' && $_GET['action']=='week' && $_GET['type']=='mg') echo 'class="active"'; ?>><a href="#rank&act=rankrs2&action=week&type=mg" rel="ajax">MG</a></p>
			<p <? if($_GET['act']=='rankrs2' && $_GET['action']=='week' && $_GET['type']=='dl') echo 'class="active"'; ?>><a href="#rank&act=rankrs2&action=week&type=dl" rel="ajax">DL</a></p>
			<p <? if($_GET['act']=='rankrs2' && $_GET['action']=='week' && $_GET['type']=='dw') echo 'class="active"'; ?>><a href="#rank&act=rankrs2&action=week&type=dw" rel="ajax">DW</a></p>
			<p <? if($_GET['act']=='rankrs2' && $_GET['action']=='week' && $_GET['type']=='sum') echo 'class="active"'; ?>><a href="#rank&act=rankrs2&action=week&type=sum" rel="ajax">SUM</a></p>
			<p <? if($_GET['act']=='rankrs2' && $_GET['action']=='week' && $_GET['type']=='rf') echo 'class="active"'; ?>><a href="#rank&act=rankrs2&action=week&type=rf" rel="ajax">RF</a></p>
			<p <? if($_GET['act']=='rankrs2' && $_GET['action']=='week' && $_GET['type']=='gl') echo 'class="active"'; ?>><a href="#rank&act=rankrs2&action=week&type=gl" rel="ajax">GL</a></p>
			</div>
			</li>
			<li <? if($_GET['act']=='rankrs2' && $_GET['action']=='month') echo 'class="active"'; ?>><a href="#rank&act=rankrs2&action=month&type=all" rel="ajax">Tháng</a>
			<div class="submenu">
			<p <? if($_GET['act']=='rankrs2' && $_GET['action']=='month' && $_GET['type']=='all') echo 'class="active"'; ?>><a href="#rank&act=rankrs2&action=month&type=all" rel="ajax">ALL</a></p>
			<p <? if($_GET['act']=='rankrs2' && $_GET['action']=='month' && $_GET['type']=='dw') echo 'class="active"'; ?>><a href="#rank&act=rankrs2&action=month&type=dw" rel="ajax">DW</a></p>
			<p <? if($_GET['act']=='rankrs2' && $_GET['action']=='month' && $_GET['type']=='dk') echo 'class="active"'; ?>><a href="#rank&act=rankrs2&action=month&type=dk" rel="ajax">DK</a></p>
			<p <? if($_GET['act']=='rankrs2' && $_GET['action']=='month' && $_GET['type']=='elf') echo 'class="active"'; ?>><a href="#rank&act=rankrs2&action=month&type=elf" rel="ajax">ELF</a></p>
			<p <? if($_GET['act']=='rankrs2' && $_GET['action']=='month' && $_GET['type']=='mg') echo 'class="active"'; ?>><a href="#rank&act=rankrs2&action=month&type=mg" rel="ajax">MG</a></p>
			<p <? if($_GET['act']=='rankrs2' && $_GET['action']=='month' && $_GET['type']=='dl') echo 'class="active"'; ?>><a href="#rank&act=rankrs2&action=month&type=dl" rel="ajax">DL</a></p>
			<p <? if($_GET['act']=='rankrs2' && $_GET['action']=='month' && $_GET['type']=='dw') echo 'class="active"'; ?>><a href="#rank&act=rankrs2&action=month&type=dw" rel="ajax">DW</a></p>
			<p <? if($_GET['act']=='rankrs2' && $_GET['action']=='month' && $_GET['type']=='sum') echo 'class="active"'; ?>><a href="#rank&act=rankrs2&action=month&type=sum" rel="ajax">SUM</a></p>
			<p <? if($_GET['act']=='rankrs2' && $_GET['action']=='month' && $_GET['type']=='rf') echo 'class="active"'; ?>><a href="#rank&act=rankrs2&action=month&type=rf" rel="ajax">RF</a></p>
			<p <? if($_GET['act']=='rankrs2' && $_GET['action']=='month' && $_GET['type']=='gl') echo 'class="active"'; ?>><a href="#rank&act=rankrs2&action=month&type=gl" rel="ajax">GL</a></p>
			</div>
			</li>
        </ul>
    </div>

<div>
    </div>

</div>
	
<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></span></span></p>

    <? 
        foreach($rank as $key => $val) {
    ?>
	<div class="out-top-20">
				<p class="in-10">
                <span class="color-blue"><? echo $title_top[$key]; ?></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>Reset</th>
                    <th>Lớp nhân vật</th>
                    <th>Thế hệ</th>
                </tr>
                </thead>
				<tbody>
<? foreach($val as $key2 => $val2) { 
$top = $key2+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 bgcolor="#FFFFFF">
		    <td align="center"><? echo $top; ?></td>
		    <td align="center"><? echo $val2['name']; ?></td>
		    <td align="center"><? echo $val2['reset']; ?></td>
		    <td align="center"><? echo $val2['class']; ?></td>
            <td align="center"><? echo $val2['thehe']; ?></td>
		  </tr>
<? } ?>
</tbody>
		</table>
    <? 
        }
    ?>
</div>
</div>
</div>
<!-- End Content -->