<? if (isset($_SESSION['mu_nvchon'])) { ?>
<div class="primary-block">
    <div class="main-content">
        <h1 class="title-content"><? echo $tilte; ?></h1>
        <ul class="tabs-content">
		<li><a href="#">Webshop Items</a>
		<div class="submenu">
  <? if (isset($Use_ShopTapHoa) && $Use_ShopTapHoa == 1) { ?>
                <p <? if($_GET['act']=='shop_taphoa') echo 'class="active"'; ?>><a href="#webshop&act=shop_taphoa" rel="ajax">Cửa hàng Tạp Hóa</a></p>
                <? } ?>
                
                <? if (isset($Use_ShopVeEvent) && $Use_ShopVeEvent == 1) { ?>
                <p <? if($_GET['act']=='shop_event') echo 'class="active"'; ?>><a href="#webshop&act=shop_event" rel="ajax">Cửa hàng vé Event</a></p>
                <? } ?>
                
                <? if (isset($Use_ShopAcient) && $Use_ShopAcient == 1) { ?>
                <p <? if($_GET['act']=='shop_acient') echo 'class="active"'; ?>><a href="#webshop&act=shop_acient" rel="ajax">Cửa hàng SET Thần</a></p>
                <? } ?>
                
                <? if (isset($Use_ShopKiem) && $Use_ShopKiem == 1) { ?>
                <p <? if($_GET['act']=='shop_kiem') echo 'class="active"'; ?>><a href="#webshop&act=shop_kiem" rel="ajax">Cửa hàng Kiếm</a></p>
                <? } ?>
                
                <? if (isset($Use_ShopGay) && $Use_ShopGay == 1) { ?>
                <p <? if($_GET['act']=='shop_gay') echo 'class="active"'; ?>><a href="#webshop&act=shop_gay" rel="ajax">Cửa hàng Gậy Phép Thuật</a></p>
                <? } ?>
                
                <? if (isset($Use_ShopCung) && $Use_ShopCung == 1) { ?>
                <p <? if($_GET['act']=='shop_cung') echo 'class="active"'; ?>><a href="#webshop&act=shop_cung" rel="ajax">Cửa hàng Cung - Nỏ</a></p>
                <? } ?>
                
                <? if (isset($Use_ShopVuKhiKhac) && $Use_ShopVuKhiKhac == 1) { ?>
                <p <? if($_GET['act']=='shop_vukhikhac') echo 'class="active"'; ?>><a href="#webshop&act=shop_vukhikhac" rel="ajax">Cửa hàng Vũ khí khác</a></p>
                <? } ?>
                
                <? if (isset($Use_ShopKhien) && $Use_ShopKhien == 1) { ?>
                <p <? if($_GET['act']=='shop_khien') echo 'class="active"'; ?>><a href="#webshop&act=shop_khien" rel="ajax">Cửa hàng Khiên</a></p>
                <? } ?>
                
                <? if (isset($Use_ShopMu) && $Use_ShopMu == 1) { ?>
                <p <? if($_GET['act']=='shop_mu') echo 'class="active"'; ?>><a href="#webshop&act=shop_mu" rel="ajax">Cửa hàng Mũ</a></p>
                <? } ?>
                
                <? if (isset($Use_ShopAo) && $Use_ShopAo == 1) { ?>
                <p <? if($_GET['act']=='shop_ao') echo 'class="active"'; ?>><a href="#webshop&act=shop_ao" rel="ajax">Cửa hàng Áo</a></p>
                <? } ?>
                
                <? if (isset($Use_ShopQuan) && $Use_ShopQuan == 1) { ?>
                <p <? if($_GET['act']=='shop_quan') echo 'class="active"'; ?>><a href="#webshop&act=shop_quan" rel="ajax">Cửa hàng Quần</a></p>
                <? } ?>
                
                <? if (isset($Use_ShopTay) && $Use_ShopTay == 1) { ?>
                <p <? if($_GET['act']=='shop_tay') echo 'class="active"'; ?>><a href="#webshop&act=shop_tay" rel="ajax">Cửa hàng Găng Tay</a></p>
                <? } ?>
                
                <? if (isset($Use_ShopChan) && $Use_ShopChan == 1) { ?>
                <p <? if($_GET['act']=='shop_chan') echo 'class="active"'; ?>><a href="#webshop&act=shop_chan" rel="ajax">Cửa hàng Giày</a></p>
                <? } ?>
                
                <? if (isset($Use_ShopRing) && $Use_ShopRing == 1) { ?>
                <p <? if($_GET['act']=='shop_ring') echo 'class="active"'; ?>><a href="#webshop&act=shop_ring" rel="ajax">Cửa hàng Ring</a></p>
                <? } ?>
				
                <? if (isset($Use_ShopPendant) && $Use_ShopPendant == 1) { ?>
                <p <? if($_GET['act']=='shop_pendant') echo 'class="active"'; ?>><a href="#webshop&act=shop_pendant" rel="ajax">Cửa hàng Pendant</a></p>
                <? } ?>
				
                <? if (isset($Use_ShopCanh) && $Use_ShopCanh == 1) { ?>
                <p <? if($_GET['act']=='shop_canh') echo 'class="active"'; ?>><a href="#webshop&act=shop_canh" rel="ajax">Cửa hàng Cánh</a></p>
                <? } ?>
				
                <? if (isset($Use_ShopCanh3) && $Use_ShopCanh3 == 1) { ?>
                <p <? if($_GET['act']=='shop_canh3') echo 'class="active"'; ?>><a href="#webshop&act=shop_canh3" rel="ajax">Cửa hàng Cánh 3</a></p>
                <? } ?>
		</div>
		</li>

			<? if (isset($Use_ShopSet) && $Use_ShopSet == 1) { ?>
				<li><a href="#webshop&act=shopset" rel="ajax">Shop Items Bộ</a></li>
			<? } ?>
			
			<? if (isset($Use_ThueItem) && $Use_ThueItem == 1) { ?>
				<li><a href="#webshop&act=reward" rel="ajax">Thuê Items</a></li>
			<? } ?>
			
			<? if (isset($Use_RetimItem_Webshop) && $Use_RetimItem_Webshop == 1) { ?>
				<li class="active"><a href="#webshop&act=retimeitem" rel="ajax">Gia hạn Items</a></li>
			<? } ?>
			
			<? if (isset($Use_ShopTienZen) && $Use_ShopTienZen == 1) { ?>
            <li><a href="#webshop&act=shop_zen" rel="ajax">Shop Zen</a></p>
			<? } ?>

        </ul>
    </div>
</div>

<div class="priority-block out-top-20">
    <div class="head-block">
        <h1 class="title-head"><span class="text-semibold">Danh sách Item trong rương đồ của bạn</span></h1>
    </div>
    <div class="in-20">
        <div id="rs_content">
   
    <table width="100%" border="0" cellpadding="1" cellspacing="1" bgcolor="#9999FF" class='item_form'>
        <tr bgcolor="#FFFF00">
            <td align="center"><b>Hình Ảnh</b></td>
            <td align="center"><b>Thông tin</b></td>
        </tr>
        <? 
            if(count($listitem_arr) > 0) {
            foreach($listitem_arr as $item) { 
        ?>
        <tr bgcolor="#FFFFFF">
            <td align="center" bgcolor="#121212"><img src="items/<? echo $item['image']; ?>.gif"></td>
            <td align="center" bgcolor="#121212"><? echo $item['info']; ?><br><? echo $item['date_enditem']; ?></td>
        </tr>
        <tr bgcolor="#FFFFFF">
            <td align="center" colspan="2" id="item_<? echo $item['vitri']; ?>">
                <span id="itembid_unactive_<? echo $item['vitri']; ?>">
                <?
                    if($item['item_spec'] == 1 || $item['item_spec'] == 3) {
                            echo "<s>Item đặc biệt không thể gia hạn</s>";
                        } else if($item['item_spec'] == 2) {
                            echo "<s>Item đã bảo vệ không được gia hạn</s>";
                        } else {
                ?>
                    <a href="#" class="retimeitem_up" vitri="<? echo $item['vitri']; ?>">Gia hạn Item: <strong><? echo $item['name']; ?></strong></a>
                <? } ?>
                </span>
                <span id="retimeitem_active_<? echo $item['vitri']; ?>" style="display: none;">
                    <a href="#" class="retimeitem_down" vitri="<? echo $item['vitri']; ?>">Đóng lại</a><br /><br />
                    Chọn ngày gia hạn:
                    <select id="retimeitemday_<? echo $item['vitri']; ?>" class="form-style">
					<? for($o=1;$o<=$Day_Acept_Retime;$o++){ ?>				
					<option value="<?=$o;?>"><? echo number_format($Price_Retime*$o, 0, ',', '.'); ?> Gcoin / <?=$o;?> ngày</option>
					<? } ?>
                    </select><br />
					Mật khẩu Web:
					<input class="form-style" type="password" name="pass2" id="pass2_<? echo $item['vitri']; ?>" value="" /><br /><br />
                    <input type="button" class="retimeitem_send" vitri="<? echo $item['vitri']; ?>" item_code="<? echo $item['item_code']; ?>" value="Gia hạn Item" /> 
                    <span id="retimeitem_send_loading_<? echo $item['vitri']; ?>"></span><br />
                    <span id="retimeitem_send_view_<? echo $item['vitri']; ?>"></span>
                </span>
                <br /><br />
            </td>
        </tr>
        <? } } else echo "<center><font color='red'><strong>Không có Item</strong></font></center>"; ?>
    </table>
    
        </div>
    </div>
</div>
<!-- End Content -->
<? } else include('templates/char_manager.aspx'); ?>