<div class="primary-block">
    <div class="main-content">
        <h1 class="title-content">Hòm đồ ảo</h1>
         <ul class="tabs-content">
	<li><a href="#chotroi&page=daugia_bid" rel="ajax">Đưa Item Lên Chợ Trời</a></li>
	<li><a href="#tiente&act=item2jb" rel="ajax">Đổi Items ra JB Khóa</a></li>
	<li><a href="#maychaos&act=item_uplv" rel="ajax">Nâng cấp Items</a></li>
        </ul>
    </div>
</div>
<div class="priority-block out-top-20">
    <div class="head-block">
        <h1 class="title-head"><span class="text-semibold">Lưu ý</span></h1>
    </div>
    <div class="in-20">
        <ul class="noted in-left-10">
            <li>Cất đồ vào hòm đồ ảo.</li>
            <li>Tuyệt đối An toàn<? if(isset($Use_BaoVeAccIP) && $Use_BaoVeAccIP == 1) { ?>, phải đăng ký bảo vệ ACC/IP thì mới có thể gửi / lấy đồ<? } ?>.</li>
			<li>Đồ trong hòm đồ ảo có thể đưa lên chợ trời rao bán, đổi ra JB Khóa, nâng cấp đồ.....</li>
        </ul>
    </div>
</div>
<div class="primary-block out-top-20">
    
<? 
    if(isset($error_module)) echo "<div class='form-error'>$error_module</div>";
?>
    <div class="in-20">
	
        <center>
            <a href="#" class="btn btn-green btn-lg" id="warehouse_extra">Mua <? echo number_format($gcoin_extra, 0, ',', '.') ." ". Gcoin ?> / vị trí items</a> <span id="warehouse_extra_loading"></span> <br /><br />
        </center>
	
        <div class="trader-block">
            <div class="traider-guide"></div>
            
            <div class="trader-condition tdr-col">
                <div class="tdr-content" style="margin-bottom: 10px;">
                    <p class="txt-tdr"><strong>Hòm đồ trong Game</strong></p>
                    <ul class="tdr-list-item" id="warehouse_list">
                        <?
                        if(is_array($warehouse_info_arr)) {
                            foreach($warehouse_info_arr as $k => $v) {
                                $img_resize = _img_resize_view("items/". $v['item_image'] .".gif", 60, 60);
                                echo '
                                    <li class="tdr-item warehouse_move" warehouse_type="0" itemcode="'. $v['item_code'] .'" key="'. $k .'">
                                        <div class="tdr-img"><img src="items/'. $v['item_image'] .'.gif" width="'. $img_resize['width'] .'" height="'. $img_resize['height'] .'" /><span id="'. $v['item_code'] . $k .'"></span></div>
                                        <div class="tdr-item-info">
                                            <center><p>'. $v['item_info'] .'</p></center>
                                        </div>
                                    </li>
                                ';
                            }
                        }
                        ?>
                    </ul>
                </div>


            </div>
            <div class="trader-result tdr-col">
                <div class="tdr-content">
                    <p class="txt-tdr"><strong>Hòm đồ ảo</strong> <span class="badge"><strong><span id="item_in_warehouse_safe"><? echo $_SESSION['acc_warehouse_safe_item']; ?></span></strong> / <strong><? echo $_SESSION['acc_warehouse_safe_slot']; ?></strong></span></p>
                    <ul class="tdr-list-item" id="warehouse_safe_list">
                        <?
                        if(is_array($warehouse_safe_list_arr)) {
                            foreach($warehouse_safe_list_arr as $k => $v) {
							$item_code=$v['item_code'];
							$Item_Info=check_code($item_code,2);
							$item_name=$Item_Info[name];
							$item_info=$Item_Info[info];
                                $img_resize = _img_resize_view("items/". $v['item_image'] .".gif", 60, 60);
                                echo '
                                    <li class="tdr-item warehouse_move" warehouse_type="1" itemcode="'. $v['item_code'] .'" key="'. $k .'" time_gui="'. $v['time_gui'] .'">
                                        <div class="tdr-img"><img src="items/'. $v['item_image'] .'.gif" width="'. $img_resize['width'] .'" height="'. $img_resize['height'] .'" /><span id="'. $v['item_code'] . $k .'"></span></div>
                                        <div class="tdr-item-info">
                                            <center><p>'. $item_info .'</p></center>
                                        </div>
                                    </li>
                                ';
                            }
                        }
                        ?>
                    </ul>
                </div>
            </div>
        </div>







    
        
    </div>
</div>