<? if (isset($_SESSION[mu_nvchon])) { ?>
<div class="primary-block">
    <div class="main-content">
        <h1 class="title-content"><? echo $event_epitem_name; ?></h1>
		<? include('templates/event/event_epitem_head.tpl'); ?>
    </div>
</div>

<div class="primary-block out-top-20">
    <div class="in-20">
<?  
    if(isset($error_module)) echo "<center><font color='red'><strong>$error_module</strong></font></center>";
?>
<center><b>Item đã đăng ký</b></center>
    
    <table class="table table-blue table-text-center table-border-2">
	<thead>
        <tr>
            <th align="center"><b>Hình Ảnh</b></th>
            <th align="center"><b>Thông tin</b></th>
            <th align="center"></th>
        </tr>
	</thead>
        <? 
            if(count($listitem_arr) > 0) {
            foreach($listitem_arr as $item) { 
                
        ?>
		<tbody>
        <tr>
            <td align="center" bgcolor="#121212"><img src="items/<? echo $item['image']; ?>.gif"></td>
            <td align="center" bgcolor="#121212">
                <font color='pink'>Đăng ký : <? echo $item['time_reg']; ?> </font><br />
                <? echo $item['info']; ?>
            </td>
            <? if($item['status'] == 0) { ?>
            <td align="center" id="td_<? echo $item['seri']; ?>">
                <a href="#" serial='<? echo $item['seri']; ?>' class="epitem_update" >Xác nhận hoàn thành Event</a> <span id="loading_<? echo $item['seri']; ?>"></span><br /> <span id="err_<? echo $item['seri']; ?>"  style="color:#FF0000"></span>
            </td>
            <? } else { ?> 
            <td align="center" bgcolor="#121212">
                <font color='yellow'>Hoàn thành : <? echo $item['time_finish']; ?> </font><br />
                <? 
                    echo $item['info']; 
                ?>
            </td>
            <? } ?>
            
        </tr>
		</tbody>
        <? } } else echo "<center><font color='red'><strong>Không có Item đăng ký</strong></font></center>"; ?>
    </table>
    
        
    </div>
</div>
<? } else include('templates/char_manager.aspx'); ?>