<div class="primary-block">
    <div class="main-content">
        <h1 class="title-content"><? echo $tilte; ?></h1>
        <ul class="tabs-content">
		<li class="active"><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_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><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">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ố Gcoin 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>
            </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][info]; ?></center>');">
                        <img src="items/<? echo $item_read[$i][img].".gif"; ?>">
                    </div>
                    <div class="info-item">
                        <p class="name" onMouseOut='hidetip();' onMouseOver="showtip('<center><? echo $item_read[$i][info]; ?></center>');">
						<? if(!empty($item_read[$i][name_custom])){echo $item_read[$i][name_custom];} else {echo $item_read[$i][name];} ?>
							<div class="info-row-1">
								<div class="block-show">
									<div class="info-row-2">
										<div class="price-ct">
											<div class="num-price">&nbsp;
											<?if(($Use_Promotion_Webshop==1) && strtotime($Promotion_Webshop_Start)<time() && strtotime($Promotion_Webshop_End.' 23:59:00')>time()){?>

											Giá <strong><? $giagoc=$item_read[$i][price]-($item_read[$i][price]*($Promotion_Webshop/100)); echo number_format($giagoc, 0, ',', '.');?></strong> Gcoin
											<?}else{?>
											Giá <strong><? $giagoc=$item_read[$i][price]; echo number_format($giagoc, 0, ',', '.');?></strong> Gcoin
											<?}?>
											</div>
										</div>
									</div>
								</div>
				
                            <div class="block-hide">
                                <div class="buy">
                                    <div class="button-buy">
                                        <a href="#webshop_active_<? echo $vitri; ?>" class="btn btn-green btn_webshop_exl_up">MUA</a>
                                        <span id="webshop_send_loading_<? echo $vitri; ?>"></span>
                                    </div>
                                    <div style="display:none">
                                        <div id="webshop_active_<? echo $vitri; ?>" style="width: 600px; height: <? if($act!='shop_taphoa' && $act!='shop_event') {echo "590px";} else echo "250px"; ?>;">
										<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['Opt1'] == '') echo 'style="display:none"';?>>
												<td align='left'><?=$sexc['Opt1'];?></td>
												<td><input type='checkbox' name='Opt1' id="Opt1_<? echo $vitri; ?>" vitri="<? echo $vitri; ?>" class="webshop_exl_exl" /></td>
												</tr>
												<tr <?if($sexc['Opt2'] == '') echo 'style="display:none"';?>>
												<td align='left'><?=$sexc['Opt2'];?></td>
												<td><input type='checkbox' name='Opt2' id="Opt2_<? echo $vitri; ?>" vitri="<? echo $vitri; ?>" class="webshop_exl_exl" /></td>
												</tr>
												<tr <?if($sexc['Opt3'] == '') echo 'style="display:none"';?>>
												<td align='left'><?=$sexc['Opt3'];?></td>
												<td><input type='checkbox' name='Opt3' id="Opt3_<? echo $vitri; ?>" vitri="<? echo $vitri; ?>" class="webshop_exl_exl" /></td>
												</tr>
												<tr <?if($sexc['Opt4'] == '') echo 'style="display:none"';?>>
												<td align='left'><?=$sexc['Opt4'];?></td>
												<td><input type='checkbox' name='Opt4' id="Opt4_<? echo $vitri; ?>" vitri="<? echo $vitri; ?>" class="webshop_exl_exl" /></td>
												</tr>
												<tr <?if($sexc['Opt5'] == '') echo 'style="display:none"';?>>
												<td align='left'><?=$sexc['Opt5'];?></td>
												<td><input type='checkbox' name='Opt5' id="Opt5_<? echo $vitri; ?>" vitri="<? echo $vitri; ?>" class="webshop_exl_exl" /></td>
												</tr>
												<tr <?if($sexc['Opt6'] == '') echo 'style="display:none"';?>>
												<td align='left'><?=$sexc['Opt6'];?></td>
												<td><input type='checkbox' name='Opt6' id="Opt6_<? echo $vitri; ?>" vitri="<? echo $vitri; ?>" class="webshop_exl_exl" /></td>
												</tr>
												<tr <?if($sexc['Opt7'] == '') echo 'style="display:none"';?>>
												<td align='left'><?=$sexc['Opt7'];?></td>
												<td><input type='checkbox' name='Opt7' id="Opt7_<? echo $vitri; ?>" vitri="<? echo $vitri; ?>" class="webshop_exl_exl" /></td>
												</tr>
												
												<? if($act!='shop_taphoa' && $act!='shop_event') {?>
												<tr>
												<td align="center">Option</td>
												<td>
													<select name="opt" id="opt_<? echo $vitri; ?>" vitri="<? echo $vitri; ?>" class="form-style webshop_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 webshop_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); ?> Gcoin</b></font></div>
												<input type="hidden" name="shoptype" id="shoptype_<? echo $vitri; ?>" vitri="<? echo $vitri; ?>" value="<? echo $act; ?>" />
												<input type="hidden" name="giagoc" id="giagoc_<? echo $vitri; ?>" vitri="<? echo $vitri; ?>" value="<? echo $giagoc; ?>" />
												</th>
												</tr>
												</thead>
												<tbody>
												<tr>
													<td align="center">Số lượng</td>
													<td align="center">
													<select name="slg" id="slg_<? echo $vitri; ?>" vitri="<? echo $vitri; ?>" class="form-style webshop_exl_slg">
													<option value="1">1</option>
													<option value="2">2</option>
													<option value="3">3</option>
													<option value="4">4</option>
													<option value="5">5</option>
													<option value="6">6</option>
													<option value="7">7</option>
													<option value="8">8</option>
													<option value="9">9</option>
													<option value="10">10</option>
													</select>
													</td>
												</tr>

												<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 webshop" id="webshop_<? echo $vitri; ?>" vitri="<? echo $vitri; ?>" act="<? echo $act; ?>" value="MUA" /> 
													</td>
												</tr>

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

</div>
</div>