<div class="primary-block">
<div class="main-content">
<h1 class="title-content"><? echo $name; ?></h1>
</div>    		
</div> 
<div class="primary-block out-top-20">

    <div class="head-block">
        <h1 class="title-head"><span class="text-semibold">
<b><font color="red"><?
if ($thehe_choise)
{
    echo "<table> <tr>";
    for($i=count($thehe_choise)-1;$i>0;$i--)
    {
        if(strlen($thehe_choise[$i]) > 0) {
            echo "<span class='tag tag-red'>";
            if($_SESSION['thehe'] == $i );
                else echo '<a href="#event&act='. $_GET['act'] .'&thehe='.$i.'" rel="ajax" >';
            echo $thehe_choise[$i];
            if($_SESSION['thehe'] == $i );
                else echo "</a>";
            echo "</span>";
        }
    }
    echo "</tr> </table>";
}
?></font></b></span></h1>
    </div>

    <div class="in-20 font-14 text-semibold">

		<center>
			Thời gian diễn ra Event : <b>0h00 <? echo $time_begin; ?></b> đến <b>24h00 <? echo $time_end; ?></b><br>
    		Cập nhập lúc: <? echo $time_top; ?> ( 1 phút cập nhập 1 lần )<br><br>
		<? if($act == "event_tongtop" || $act == "event_topcard" || $act == "event_topcard2" || $act == "event_topcard3" || $act == "event_topcard4"){ ?>
			<font color='red'><strong>Yêu cầu tổng nạp <? echo number_format($tongtheyeucau); ?> Gcoin trở lên mới được xem BXH này.</strong></font>
		<? } ?>
    	</center><br>


        <table class="table table-blue-white table-border-2 table-text-center">
            <thead>
            <tr>
<? if($act == "event_toprs" || $act == "event_toprs2" || $act == "event_toprs3" || $act == "event_topdanhvong" || $act == "event_toppoint" || $act == "event_topcard" || $act == "event_topcard2" || $act == "event_topcard3" || $act == "event_topcard4" || $act == "event_topmaster2point" || $act == "event_topvongquay"){ ?>
		    <th align="center" scope="col">#</th>
		    <th align="center" scope="col"><? echo $info1_name; ?></th>
		    <th align="center" scope="col"><? echo $info2_name; ?></th>
<? } ?>
<? if($act == "event_tongtop"){ ?>
		    <th align="center" scope="col">#</th>
		    <th align="center" scope="col"><? echo $info1_name; ?></th>
		    <th align="center" scope="col"><? echo $info2_name; ?></th>
		    <th align="center" scope="col"><? echo $info3_name; ?></th>
		    <th align="center" scope="col"><? echo $info4_name; ?></th>
		    <th align="center" scope="col"><? echo $info5_name; ?></th>
		    <th align="center" scope="col"><? echo $info6_name; ?></th>
<? } ?>
            </tr>
            </thead>
            <tbody>
<? if(isset($info) && is_array($info)) { for($i=0;$i<count($info);$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>
<? if($act == "event_toprs" || $act == "event_toprs2" || $act == "event_toprs3" || $act == "event_topdanhvong" || $act == "event_toppoint" || $act == "event_topmaster2point" || $act == "event_topvongquay"){ ?>
		    <td align="center"><? echo $top; ?></td>
		    <td align="center"><? echo $info[$i]['info1']; ?></td>
		    <td align="center"><? echo $info[$i]['info2']; ?></td>
<? } if(($act == "event_topcard" || $act == "event_topcard2" || $act == "event_topcard3" || $act == "event_topcard4") && $_SESSION['tongthenap'] >= $tongtheyeucau){ ?>
		    <td align="center"><? echo $top; ?></td>
		    <td align="center"><? echo $info[$i]['info1']; ?></td>
		    <td align="center"><? echo $info[$i]['info2']; ?></td>
<? } if($act == "event_tongtop" && $_SESSION['tongthenap'] >= $tongtheyeucau){ ?>
		    <td align="center"><? echo $top; ?></td>
		    <td align="center"><? echo $info[$i]['info1']; ?></td>
		    <td align="center"><? echo $info[$i]['info2']; ?></td>
		    <td align="center"><? echo number_format($info[$i]['info3'], 0, ',', '.'); ?></td>
		    <td align="center"><? echo $info[$i]['info4']; ?></td>
		    <td align="center"><? echo $info[$i]['info5']; ?></td>
		    <td align="center"><? echo $info[$i]['info6']; ?></td>
<? } ?>
		  </tr>
<? } } ?>            </tbody>
        </table>   
    </div>
</div>		