
<!DOCTYPE html>
<?php
include( "../configuration/config.inc.php" );
include 'getfunction.php';
$thispage=5;
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>
 <?php echo $web2Title; ?>-购物中心
</title>

    <style type="text/css">

        .def_main { background: #fff; padding: 15px; height: auto; overflow: hidden; }

        .items .item { width: 172px; border: 1px #ccc solid; height: 300px; padding: 5px; float: left; margin: 0 5px 10px 5px; }

            .items .item:hover { border: 1px #ff8c00 solid; }

        .item a.imga { display: inline-block; width: 100%; text-align: center; }

            .item a.imga img { margin-top: 6px; margin-bottom: 10px; }

        b.mark { color: #999999; text-decoration-line: none; display: inline-block; font-weight: 600; }

            b.mark:hover { text-decoration: none; }

            b.mark span.m_con { color: #ee82ee; }

            b.mark span.m_pri { color: #FF4400; }



        div.act_btn { text-align: right; margin-top: 5px; border-top: 1px #ccc solid; *padding-top: 8px; height: 30px; line-height: 30px; }

        div.category_btn { margin-bottom: 10px; }

    </style>
<?php 
	$username=$_SESSION['accountName'];
	$sql= "SELECT * FROM aionx_gs.players WHERE account_name = '".$username."'";
	$result=mysql_query($sql);
	$row=mysql_fetch_array($result);
	
	
	$sql= "SELECT * FROM web.account WHERE `name` ='".$username."'";
	$result=mysql_query($sql);
	$row2=mysql_fetch_array($result);
	
	
	$sql= "SELECT * FROM aionx_gs.players WHERE account_name = '".$username."'";
	$result=mysql_query($sql);
	$row3=mysql_fetch_array($result);
	
	//var_dump($row3);
	$total=mysql_num_rows($result);
	$dhyb=$total*$tgyuanbao;
	$timestamp = time();
	
	
	
	    $sqlz = "SELECT b.lid FROM $database.account a,$database.spread b,$database2.`user_account` c,$database2.user_role d WHERE b.tid='" . $_SESSION['accountName'] . "' and b.lid=a.`name` AND a.`name`=c.user_guid and c.user_guid=d.user_id AND d.level>=" . $lv . " and b.islq=0";
		$result22 = mysql_query($sqlz);

	
?> 
    <link href="css/lightbox.css" rel="stylesheet" /><link href="css/screen.css" rel="stylesheet" />
<link href="../ClientRes/Styles/BasicStyle.css?_v=634979371913162195" type="text/css" rel="stylesheet" />
<link href="../ClientRes/Styles/jquery-ui.min.css?_v=634979244165085356" type="text/css" rel="stylesheet" />
<link href="../ClientRes/Styles/jmodal.css?_v=634979244164935253" type="text/css" rel="stylesheet" />
<link href="../ClientRes/Styles/loading.css?_v=634979244165185438" type="text/css" rel="stylesheet" />
<script src="js/jquery.min.js" type="text/javascript" charset="UTF-8"></script>
<script src="js/jmodal.js" type="text/javascript" charset="UTF-8"></script>
<script src="js/loading.js" type="text/javascript" charset="UTF-8"></script>
<script src="js/Common.js" type="text/javascript" charset="UTF-8"></script>
<script src="js/AjaxRequest.js" type="text/javascript" charset="UTF-8"></script></head>

<body id="loadding">

 
<?php 
require '../TempLate/PublicTop.html';//引用模板 
?> 


    <div class="center clearfix mt10">

        <div class="c_main">


<div class="def_main">
<b class="orange">当前可用游戏荣誉：【<?php echo $row2['rongyu'];?>】  【荣誉】获得方式：请参考会员中心下面，可通过每日签到，游戏活动，游戏野外，游戏BOSS中获得！</b>
</div>
<div class="def_main">
<b class="orange">当前可用充值积分：【<?php echo $row2['aiyawei'];?>】  【积分】获得方式：充值1：1000积分，网银多送20%，充值卡多送10%！一次性充值100送50，500送400，1000送1000</b>
</div>
<div class="def_main">
<div class="category_btn">
<p>
<?php
  for($i=1;$i<8;$i++)
  {
    $taginfo=mysql_query("SELECT * FROM shop_tag WHERE shop_showline=".$i." order by shop_show asc");
	$num=mysql_num_rows($taginfo);
	?>
    
	<?php
	
	if($num!=0)
	{
	for($ii=0;$ii<$num;$ii++)
	{
	$row=mysql_fetch_array($taginfo);
?>


        <a  href="?id=<?=$row[id];?>"  class="bt_but c_1_g mr10 tips"><u></u><?=$row[shop_tag];?></a>
  
<?php
}
}
?>

<?php
}
?>
</p>
</div>
    <div class="items">
<?php
$buybutton=buy_shop_show();
$id=addslashes(trim($_GET['id']));
if(isset($_GET[id])==false)
{
    $shopinfo=mysql_query("SELECT * FROM shop_list order by shop_show asc");
	$num=mysql_num_rows($shopinfo);
}else
{
    $shopinfo=mysql_fetch_array(mysql_query("SELECT * FROM shop_tag WHERE id=".$id));
	if($shopinfo)
	{
    $shopinfo=mysql_query("SELECT * FROM shop_list WHERE shop_tag like '%".$shopinfo[shop_tag]."%' order by shop_show asc");
	$num=mysql_num_rows($shopinfo);
	}else
	{
	$num=0;
	}
}
	for($ii=0;$ii<$num;$ii++)
	{
	$row=mysql_fetch_array($shopinfo);
	$row22=mysql_fetch_array(mysql_query("SELECT * from shuxing where sxid in ($row[shop_fjattrstr])"));

?>
	<div class="item">
	<center><b class="mark"><span class="m_con m_pri"><?=$row[shop_name];?></span></b></center>
	<a class="imga" title="<?=$row[shop_name];?>" href="<?=$row[shop_pic];?>" rel="lightbox[plants]"><img width="72" height="72" alt="<?=$row[shop_name];?>" src="<?=$row[shop_pic];?>"></a>
	<b class="mark">装备类型：<span class="m_con"><?=$row[shop_tag];?></span></b>
	<form method="post" action="Action.php">
	<b class="mark">购买数量：<span class="m_con"><select name="shuliang" size="1">
	<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>
	<OPTION value="20">20个</OPTION>
	<OPTION value="50">50个</OPTION>
	<OPTION value="70">70个</OPTION>
	<OPTION value="99">99个</OPTION>
	<OPTION value="999">999个</OPTION>
	</select></span></b><br>
	<b class="mark">物品价格：<span class="m_con m_pri"><?=$row[shop_prick];?> <?php echo Getshoptype($row[shop_prick_type]);?></span></b>
	<!--<b class="mark">装备简介：<span class="m_con"><?=$row[shop_content];?></span></b>-->
	<b class="mark">属性介绍：<span class="m_con"><?=$row22[shuoming];?></span></b>
	<input type="hidden" name="shop_id" value="<?=$row[id];?>"  />
    
	<input type="hidden" name="go" value="buy_shop"  />
	<?=$buybutton;?>
	</form>
	
	
	</div>

	
	
<?php
    }

?>	

    </div>

    <script src="js/jquery-ui.min.js"></script>

    <script src="js/jquery.smooth-scroll.min.js"></script>

    <script src="js/lightbox.js"></script>

</div>

</div></div>

<?php 
require '../TempLate/PublicButtom.html';//引用模板 
?>

</body>

</html>

