<div class="primary-block">
    <div class="main-content">
        <h1 class="title-content"><? echo $tilte; ?></h1>
        <ul class="tabs-content">
		<li><a href="#">Webshop Items Bộ KC</a>
		<div class="submenu">
				<? if (isset($Use_ShopTapHoaKC) && $Use_ShopTapHoaKC == 1) { ?>
                <p <? if($_GET['act']=='shop_taphoa_kc') echo 'class="active"'; ?>><a href="#webshopkc&act=shop_taphoa_kc" rel="ajax">Cửa hàng Tạp Hóa KC</a></p>
                <? } ?>
                
                <? if (isset($Use_ShopVeEventKC) && $Use_ShopVeEventKC == 1) { ?>
                <p <? if($_GET['act']=='shop_event_kc') echo 'class="active"'; ?>><a href="#webshopkc&act=shop_event_kc" rel="ajax">Cửa hàng vé Event KC</a></p>
                <? } ?>
                
                <? if (isset($Use_ShopKiemKC) && $Use_ShopKiemKC == 1) { ?>
                <p <? if($_GET['act']=='shop_kiem_kc') echo 'class="active"'; ?>><a href="#webshopkc&act=shop_kiem_kc" rel="ajax">Cửa hàng Kiếm KC</a></p>
                <? } ?>
                
                <? if (isset($Use_ShopGayKC) && $Use_ShopGayKC == 1) { ?>
                <p <? if($_GET['act']=='shop_gay_kc') echo 'class="active"'; ?>><a href="#webshopkc&act=shop_gay_kc" rel="ajax">Cửa hàng Gậy Phép Thuật KC</a></p>
                <? } ?>
                
                <? if (isset($Use_ShopCungKC) && $Use_ShopCungKC == 1) { ?>
                <p <? if($_GET['act']=='shop_cung_kc') echo 'class="active"'; ?>><a href="#webshopkc&act=shop_cung_kc" rel="ajax">Cửa hàng Cung - Nỏ KC</a></p>
                <? } ?>
                
                <? if (isset($Use_ShopVuKhiKhacKC) && $Use_ShopVuKhiKhacKC == 1) { ?>
                <p <? if($_GET['act']=='shop_vukhikhac_kc') echo 'class="active"'; ?>><a href="#webshopkc&act=shop_vukhikhac_kc" rel="ajax">Cửa hàng Vũ khí khác KC</a></p>
                <? } ?>
                
                <? if (isset($Use_ShopKhienKC) && $Use_ShopKhienKC == 1) { ?>
                <p <? if($_GET['act']=='shop_khien_kc') echo 'class="active"'; ?>><a href="#webshopkc&act=shop_khien_kc" rel="ajax">Cửa hàng Khiên KC</a></p>
                <? } ?>
                
                <? if (isset($Use_ShopMuKC) && $Use_ShopMuKC == 1) { ?>
                <p <? if($_GET['act']=='shop_mu_kc') echo 'class="active"'; ?>><a href="#webshopkc&act=shop_mu_kc" rel="ajax">Cửa hàng Mũ KC</a></p>
                <? } ?>
                
                <? if (isset($Use_ShopAoKC) && $Use_ShopAoKC == 1) { ?>
                <p <? if($_GET['act']=='shop_ao_kc') echo 'class="active"'; ?>><a href="#webshopkc&act=shop_ao_kc" rel="ajax">Cửa hàng Áo KC</a></p>
                <? } ?>
                
                <? if (isset($Use_ShopQuanKC) && $Use_ShopQuanKC == 1) { ?>
                <p <? if($_GET['act']=='shop_quan_kc') echo 'class="active"'; ?>><a href="#webshopkc&act=shop_quan_kc" rel="ajax">Cửa hàng Quần KC</a></p>
                <? } ?>
                
                <? if (isset($Use_ShopTayKC) && $Use_ShopTayKC == 1) { ?>
                <p <? if($_GET['act']=='shop_tay_kc') echo 'class="active"'; ?>><a href="#webshopkc&act=shop_tay_kc" rel="ajax">Cửa hàng Găng Tay KC</a></p>
                <? } ?>
                
                <? if (isset($Use_ShopChanKC) && $Use_ShopChanKC == 1) { ?>
                <p <? if($_GET['act']=='shop_chan_kc') echo 'class="active"'; ?>><a href="#webshopkc&act=shop_chan_kc" rel="ajax">Cửa hàng Giày KC</a></p>
                <? } ?>
                
                <? if (isset($Use_ShopRingKC) && $Use_ShopRingKC == 1) { ?>
                <p <? if($_GET['act']=='shop_ring_kc') echo 'class="active"'; ?>><a href="#webshopkc&act=shop_ring_kc" rel="ajax">Cửa hàng Ring KC</a></p>
                <? } ?>
				
                <? if (isset($Use_ShopPendantKC) && $Use_ShopPendantKC == 1) { ?>
                <p <? if($_GET['act']=='shop_pendant_kc') echo 'class="active"'; ?>><a href="#webshopkc&act=shop_pendant_kc" rel="ajax">Cửa hàng Pendant KC</a></p>
                <? } ?>
				
                <? if (isset($Use_ShopCanhKC) && $Use_ShopCanhKC == 1) { ?>
                <p <? if($_GET['act']=='shop_canh_kc') echo 'class="active"'; ?>><a href="#webshopkc&act=shop_canh_kc" rel="ajax">Cửa hàng Cánh KC</a></p>
                <? } ?>
				
                <? if (isset($Use_ShopCanh3KC) && $Use_ShopCanh3KC == 1) { ?>
                <p <? if($_GET['act']=='shop_canh3_kc') echo 'class="active"'; ?>><a href="#webshopkc&act=shop_canh3_kc" rel="ajax">Cửa hàng Cánh 3 KC</a></p>
                <? } ?>
		</div>
        </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">
        <div id="rs_content">
            <ul class="noted in-left-10">
					<li>Trước khi mua bạn phải đọc thông báo này</b></li>
					<li>Khi mua: tài khoản mua đồ không được đăng nhập Game.</li>
					<li>Cất hết đồ trong rương đồ chung, tránh tình trạng khi mua bị mất đồ đang có trong rương.</li>
                    <li>Số KC sẽ mất khi mua tương ứng với món đồ cần mua.</li>
					<li>Sau khi mua xong 1 món đồ nếu bạn muốn mua tiếp món thứ 2 thì hãy vào game cất món đồ đã mua trước khi mua tiếp món thứ 2.</li>
					<li>Mọi vấn đề mất đồ khi không làm theo hướng dẫn chúng tôi hoàn toàn không chịu trách nhiệm.</li>
					<? if (isset($trade_item) && $trade_item == 0) { ?>
					<li>Items mua không thể giao dịch trong Game.</li>
					<? } ?>
            </ul>
        </div>
    </div>
</div>

<div class="primary-block out-top-20">
<div class="in-20">
<ul class="list-shop">
<? for($i=0;$i<$slg_item;$i++) { $vitri=$i;?>
            <li>
                <div class="shop-item">
                    <div class="image-item" onMouseOut='hidetip();' onMouseOver="showtip('<center><? echo $item_read[$i][item_info]; ?></center>');">
                        <img src="items/shop_bo/<? echo $item_read[$i][img]; ?>">
                    </div>
                    <div class="info-item">
                        <p class="name" onMouseOut='hidetip();' onMouseOver="showtip('<center><? echo $item_read[$i][item_info]; ?></center>');">
						<? echo $item_read[$i][item_detail]; ?>
							<div class="info-row-1">
								<div class="block-show">
									<div class="info-row-2">
										<div class="price-ct">
											<div class="num-price">&nbsp;
											Giá <strong><? $giagoc=$item_read[$i][price]; echo number_format($giagoc, 0, ',', '.');?></strong> KC
											</div>
										</div>
									</div>
								</div>
								
                            <div class="block-hide">
                                <div class="buy">
                                    <div class="button-buy">
                                        <a href="#webshopset_active_<? echo $vitri; ?>" class="btn btn-green btn_webshop_exl_up">MUA</a>
                                        <span id="webshopset_send_loading_<? echo $vitri; ?>"></span>
                                    </div>
                                    <div style="display:none">
                                        <div id="webshopset_active_<? echo $vitri; ?>" style="width: 600px; height: 550px">
										<div id="item_<? echo $vitri; ?>">
										<?if($MaxLine_Type[$CatTem]>0){?>
										<?if(is_array($sexc)){?>
											<table width="100%" class="table table-blue table-text-center table-border-2">
												<thead>
												<tr>
												<th colspan="2" align="center">
												<strong>Số dòng hoàn hảo được phép chọn là: <font color="yellow"><? echo $MaxLine_Type[$CatTem];?></font></strong>
												</th>
												</tr>
												</thead>
												<tbody>
												<tr <?if($sexc[0]['Opt'] == '') echo 'style="display:none"';?>>
												<td align='left'><?=$sexc[0]['Opt'];?></td>
												<td><input type='checkbox' name='Opt1' id="Opt1_<? echo $vitri; ?>" vitri="<? echo $vitri; ?>" class="webshopsetkc_exl_exl" /></td>
												</tr>
												<tr <?if($sexc[1]['Opt'] == '') echo 'style="display:none"';?>>
												<td align='left'><?=$sexc[1]['Opt'];?></td>
												<td><input type='checkbox' name='Opt2' id="Opt2_<? echo $vitri; ?>" vitri="<? echo $vitri; ?>" class="webshopsetkc_exl_exl" /></td>
												</tr>
												<tr <?if($sexc[2]['Opt'] == '') echo 'style="display:none"';?>>
												<td align='left'><?=$sexc[2]['Opt'];?></td>
												<td><input type='checkbox' name='Opt3' id="Opt3_<? echo $vitri; ?>" vitri="<? echo $vitri; ?>" class="webshopsetkc_exl_exl" /></td>
												</tr>
												<tr <?if($sexc[3]['Opt'] == '') echo 'style="display:none"';?>>
												<td align='left'><?=$sexc[3]['Opt'];?></td>
												<td><input type='checkbox' name='Opt4' id="Opt4_<? echo $vitri; ?>" vitri="<? echo $vitri; ?>" class="webshopsetkc_exl_exl" /></td>
												</tr>
												<tr <?if($sexc[4]['Opt'] == '') echo 'style="display:none"';?>>
												<td align='left'><?=$sexc[4]['Opt'];?></td>
												<td><input type='checkbox' name='Opt5' id="Opt5_<? echo $vitri; ?>" vitri="<? echo $vitri; ?>" class="webshopsetkc_exl_exl" /></td>
												</tr>
												<tr <?if($sexc[5]['Opt'] == '') echo 'style="display:none"';?>>
												<td align='left'><?=$sexc[5]['Opt'];?></td>
												<td><input type='checkbox' name='Opt6' id="Opt6_<? echo $vitri; ?>" vitri="<? echo $vitri; ?>" class="webshopsetkc_exl_exl" /></td>
												</tr>
												<tr <?if($sexc[6]['Opt'] == '') echo 'style="display:none"';?>>
												<td align='left'><?=$sexc[6]['Opt'];?></td>
												<td><input type='checkbox' name='Opt7' id="Opt7_<? echo $vitri; ?>" vitri="<? echo $vitri; ?>" class="webshopsetkc_exl_exl" /></td>
												</tr>
												
												<tr>
												<td align="center">Option</td>
												<td>
													<select name="opt" id="opt_<? echo $vitri; ?>" vitri="<? echo $vitri; ?>" class="form-style webshopsetkc_exl_opt">
													<option value='0'>0</option>
													<option value='1'>4</option>
													<option value='2'>8</option>
													<option value='3'>12</option>
													<option value='4'>16</option>
													<option value='5'>20</option>
													<option value='6'>24</option>
													<option value='7'>28</option>
													</select>
												</td>
												</tr>
												<tr>
													<td align="center">Cấp độ</td>
													<td align="center">
													<select name="lvl" id="lvl_<? echo $vitri; ?>" vitri="<? echo $vitri; ?>" class="form-style webshopsetkc_exl_lvl">
                                                    <?
                                                        if(!isset($item_lv_max[$CatTem])) $item_lv_max[$CatTem] = 15;
                                                        for($j=0; $j <= $item_lv_max[$CatTem]; $j++) {
                                                            echo "<option value='$j'>+ ". $j ."</option>";
                                                        }
                                                    ?>
													</select>
													</td>
												</tr>
												
												</tbody>
											</table>
										<?}?><?}?>
				
											<table class="table table-blue table-text-center table-border-2">
												<thead>
												<tr>
												<th colspan="2" align="center"><div id="sum<? echo $vitri; ?>"><font color=yellow>Tổng giá trị: <b><? echo number_format($giagoc); ?> KC</b></font></div>
												<input type="hidden" name="giagoc" id="giagoc_<? echo $vitri; ?>" vitri="<? echo $vitri; ?>" value="<? echo $giagoc; ?>" />
												</th>
												</tr>
												</thead>
												<tbody>
												<tr>
													<td align="center">Mật khẩu Web</td>
													<td align="center">
													<input class="form-style" type="password" name="pass2" id="pass2_<? echo $vitri; ?>" vitri="<? echo $vitri; ?>">
													</td>
												</tr>

												<tr>
													<td align="center" colspan="2">
													<input type="button" class="btn btn-green webshopsetkc" id="webshopsetkc_<? echo $vitri; ?>" vitri="<? echo $vitri; ?>" value="MUA" /> 
													</td>
												</tr>

												</tbody>
											</table>
											<center>
											<span id="webshopsetkc_send_loading_<? echo $vitri; ?>"></span><br />
											<span id="webshopsetkc_send_view_<? echo $vitri; ?>"></span>
											</center>
											</div>
											</div>	
									</div>
                                </div>
                            </div>
                    </div>
                </div>
            </li>
<? } ?>
        </ul>
		
</div>
</div>