<!DOCTYPE html>
<html lang="en">
<head>
    <title><?php echo $data['gname'].$data['title'].$this->config['sitename']?></title>
    <meta name="description" content="<?php echo $this->config['description']?>">
    <meta name="keywords" content="<?php echo $this->config['keyword']?>">
    <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimal-ui">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
    <link rel="stylesheet" type="text/css" href="https://lib.baomitu.com/twitter-bootstrap/4.0.0-beta.3/css/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" href="https://lib.baomitu.com/font-awesome/4.7.0/css/font-awesome.min.css">
    <link rel="stylesheet" type="text/css" href="https://lib.baomitu.com/prism/9000.0.1/themes/prism.min.css">
    <link rel="stylesheet" type="text/css" href="/static/gmpanel/themify-icons/themify-icons.css">
    <link rel="stylesheet" type="text/css" href="/static/gmpanel/style.css">
    <link rel="stylesheet" type="text/css" href="/static/gmpanel/jquery.mCustomScrollbar.css">
    <link rel="stylesheet" type="text/css" href="/static/gmpanel/pcoded-horizontal.min.css">	
	<link href="/static/gmpanel/gmpanel.css?v4.18" type="text/css" rel="stylesheet">
</head>
<body>
	<style type="text/css">
	.pcoded .pcoded-header{
	    background: <?php echo $this->config['color'];?> !important;
	}
	.text-primary {
	    color: <?php echo $this->config['color'];?> !important;
	}
	.btn-primary {
	    background-color: <?php echo $this->config['color'];?> !important;
	    border-color: <?php echo $this->config['color'];?> !important;
	}
	.btn-primary:hover, .sweet-alert button.confirm:hover, .wizard > .actions a:hover {
	    background-color: <?php echo $this->config['color'];?> !important;
	    border-color: <?php echo $this->config['color'];?> !important;
	}
	.input-group-addon {
	    background-color: <?php echo $this->config['color'];?>;
	    color: #fff;
	}
	#accordion .panel-title a {
	    background: <?php echo $this->config['color'];?> !important;
	}
	#accordion .panel-title a:after,
	#accordion .panel-title a.collapsed:after{
	    background: <?php echo $this->config['color'];if($this->config['cp_jt'] == 0){$producturl="/product?id=";}else{$producturl="/product/";}?> !important;
	}
	</style>
    <div class="theme-loader">
            <div class="loader-track">
    		   <svg version="1.1" id="L7" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"  viewBox="0 0 100 100" enable-background="new 0 0 100 100" xml:space="preserve">
    			<path fill="<?php echo $this->config['color'];?>" d="M31.6,3.5C5.9,13.6-6.6,42.7,3.5,68.4c10.1,25.7,39.2,38.3,64.9,28.1l-3.1-7.9c-21.3,8.4-45.4-2-53.8-23.3  c-8.4-21.3,2-45.4,23.3-53.8L31.6,3.5z">
    				<animateTransform attributeName="transform" attributeType="XML" type="rotate" dur="2s" from="0 50 50" to="360 50 50" repeatCount="indefinite" />
    			</path>
    			<path fill="<?php echo $this->config['color'];?>" d="M42.3,39.6c5.7-4.3,13.9-3.1,18.1,2.7c4.3,5.7,3.1,13.9-2.7,18.1l4.1,5.5c8.8-6.5,10.6-19,4.1-27.7 c-6.5-8.8-19-10.6-27.7-4.1L42.3,39.6z">
    				<animateTransform attributeName="transform" attributeType="XML" type="rotate" dur="1s" from="0 50 50" to="-360 50 50" repeatCount="indefinite" />
    			</path>
    			<path fill="<?php echo $this->config['color'];?>" d="M82,35.7C74.1,18,53.4,10.1,35.7,18S10.1,46.6,18,64.3l7.6-3.4c-6-13.5,0-29.3,13.5-35.3s29.3,0,35.3,13.5 L82,35.7z">
    				<animateTransform attributeName="transform" attributeType="XML" type="rotate" dur="2s" from="0 50 50" to="360 50 50" repeatCount="indefinite" />
    			</path>
    		</svg>
    		</div>
    </div>
    <div id="pcoded" class="pcoded">
        <div class="pcoded-container">
            <nav class="navbar header-navbar pcoded-header">
                <div class="navbar-wrapper">
                    <div class="navbar-logo">
                        <a href="<?php echo $this->config['siteurl']; ?>">
                            <img class="img-fluid" src="<?php echo $this->config['logo']?>" alt="<?php echo $this->config['sitename']?>" />
                        </a>
                        <a class="mobile-options">
                            更多 <i class="fa fa-ellipsis-v"></i>
                        </a>
                    </div>

                    <div class="navbar-container container-fluid">
                        <ul class="nav-right">
                            <li>
                                 <a href="#" data-toggle="modal" data-target="#search-Modal" target="_blank">
                                    <i class="fa fa-search"></i> 搜索宝贝
                                </a>
                            </li>
                            <li>
                                <a href="#"data-toggle="modal" data-target="#url-Modal" target="_blank">
                                    <i class="fa fa-opera"></i> 站点扫码
                                </a>
                            </li>
                            <li>
                                <a href="http://wpa.qq.com/msgrd?v=3&uin=<?php echo $this->config['qq']?>&site=qq&menu=yes" target="_blank">
                                    <i class="fa fa-commenting"></i> 联系客服
                                </a>
                            </li>
                            <li>
                                <a href="<?php echo $this->config['qqqun']?>" target="_blank">
                                    <i class="fa fa-comments"></i> 加入Q群
                                </a>
                            </li>
                            <li>
                                <a href="/chaka">
                                    <i class="fa fa-search"></i> 订单查询
                                </a>
                            </li>
                            
							
							<?php if($this->session->get('login_name')) { ?>
							<li>
                                    <a href="javascript:;" onclick="repwd()">
                                         <i class="fa fa-user"></i> 修改密码
                                    </a>
                                </li>
								<li>
                                    <a href="/user">
                                         <i class="fa fa-user"></i> 会员中心
                                    </a>
                                </li>
						<?php }else{ ?>		

                                <li>
                                    <a href="/login">
                                         <i class="fa fa-user"></i> 登陆
                                    </a>
                                </li>
                                <li>
                                    <a href="/reg">
                                         <i class="fa fa-cloud-download"></i>注册
                                    </a>
                                </li>
						<?php } ?> 	


                            
                            
                        </ul>

                    </div>
                </div>
            </nav>
<div class="pcoded-main-container">
<div class="pcoded-wrapper d-none d-lg-block">
        <div class="pcoded-content">
            <div class="pcoded-inner-content">
                <div class="main-body">
                    <div class="page-wrapper">
                        <div class="page-body">
                            <div class="row">
                                <div class="col-md-8" id="pc_div">
											<!---  pc  --->											
											<?php foreach($class as $vals):?>
											  <div class="card" style="margin-bottom: 10px;">
											   <div class="card-block" style="margin-bottom: -45px;">
												<div class="form-horizontal">
												 <div class="row">
												  <h4 class="sub-title" style="margin-bottom: 0px; margin-top: -6px; width: 100%;"><i class="fa fa-shopping-cart"></i> <?php echo $vals['title'];?></h4>
												  <div class="card-block p-0 col-md-12">
												   <div class="table-responsive">
													<table class="table table-hover ">
													 <thead>
													  <tr>
													   <th class="text-center">商品名称</th>
													   <th class="text-center">商品类型</th>
													   <th class="text-center">商品库存</th>
													   <th class="text-center">商品价格</th>
													   <th class="text-center">操作</th>
													  </tr>
													 </thead>
													<tbody style="table-layout:fixed">
											  <?php foreach ($lists as $val): ?>
													<?php if ($vals['id']==$val['cid']){ ?>
													  <tr onclick="window.location.href='<?php echo "http://".$_SERVER['SERVER_NAME'].$producturl.$val['id']; ?>'">
													   <td class="text-center" style="overflow:hidden;white-space:nowrap;text-overflow:ellipsis;"><span style="margin-top: 1px;color: #666666;"><strong><?php echo $val['gname'] ?></strong></span></td>
													   <td class="text-center" width="100px"><span style="margin-top: 1px;color: #666666;">
													   <?php if($val['type']==0){
																		echo '激活码';																	
																}else if($val['type']==1){
																		echo '代充';
																}else{	
																		echo '下载';
																}?></span></td>
													   <td class="text-center" width="100px"><span style="margin-top: 1px;color: #666666;"><?php echo $val['kuc'] ?></span></td>
													   <td class="text-center" width="100px"><span class="text-primary product-price"><i class="fa fa-cny"></i><?php echo $val['price'] ?></span></td>
													   <td class="text-center" width="80px"><button class="btn btn-mini btn-primary">立即购买</button></td>
													  </tr>
												   <?php }?>
												   <?php endforeach;?>
													 </tbody>
													</table>
												   </div>
												  </div>
												 </div>
												</div>
											   </div>
											  </div>
									<?php endforeach;?>
											  <!---  pc  --->
											  
  
  
                                </div>
                                <div class="col-md-4">                                    
                                    <div class="card" style="margin-bottom: 10px;" >
                                        <div class="card-block" style="margin-bottom: -45px;">
                                            <h4 class="sub-title"  style="margin-bottom: 5px;">网站公告</h4>
                                            <div class="row">
                                                <div class="col-sm-12">
                                                    <div class="input-group input-primary">
                                                        <div style="color: #666666;">
                                                            <p><?php echo $this->config['tips'] ?></p>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
                    
    <div class="modal fade" id="url-Modal" tabindex="-1" role="dialog">
                    <div class="modal-dialog modal-sm" role="document">
                        <div class="modal-content">
                            <div class="modal-body">
                                <div id="qrcode">
                                </div>                                               
                                    <br><span class="" id="basic-addon1"><strong>扫码进入下单网+长期合作请保存图</strong></span>                                    
                            </div>
                            <div class="modal-footer">
                                <button type="button" class="btn btn-primary btn-mini btn-block" data-dismiss="modal">关闭</button>
                            </div>
                        </div>
                    </div>
                </div>
                
            </div>
        </div>
    </div>
    <script src="https://lib.baomitu.com/jquery/3.2.1/jquery.min.js"></script>
    <script src="/static/gmpanel/js/jquery-ui.min.js"></script>
    <script src="/static/gmpanel/js/popper.min.js"></script>
    <script src="/static/gmpanel/js/bootstrap.min.js"></script>
    <script src="/static/gmpanel/js/jquery.slimscroll.js"></script>
    <script src="/static/gmpanel/js/modernizr.js"></script>
    <script src="/static/gmpanel/js/css-scrollbars.js"></script>
    <script src="/static/gmpanel/js/custom-prism.js"></script>
    <script src="https://lib.baomitu.com/i18next/17.0.6/i18next.min.js"></script>
    <script src="https://lib.baomitu.com/i18next-xhr-backend/3.0.0/i18nextXHRBackend.min.js"></script>
    <script src="https://lib.baomitu.com/i18next-browser-languagedetector/3.0.1/i18nextBrowserLanguageDetector.min.js"></script>
    <script src="https://lib.baomitu.com/jquery-i18next/1.2.1/jquery-i18next.min.js"></script>
    <script src="/static/gmpanel/js/qrcode.min.js"></script>
    <script src="/static/gmpanel/js/pcoded.min.js"></script>
    <script src="/static/gmpanel/js/menu-hori-fixed.js"></script>
    <script src="/static/gmpanel/js/jquery.mCustomScrollbar.concat.min.js"></script>
    <script src="/static/gmpanel/js/script.js"></script>
	<script src="https://lib.baomitu.com/layer/2.3/layer.js"></script>
	<script src="/static/default/js/app.js"></script>
    
<script>
var qrcode = new QRCode('qrcode', {
text: "<?php echo $this->config['siteurl']; ?>",
width: 268,
height: 268,
colorDark : '#000000',
colorLight : '#ffffff',
correctLevel : QRCode.CorrectLevel.H
});
$("#qrcode > img").css({"margin":"auto"});

</script>
   
    <div class="modal fade" id="search-Modal" tabindex="-1" role="dialog">
        <div class="modal-dialog" role="document">
            <div class="modal-content">
                <div class="modal-body">
                    <form class="form-inline" action="../">
                      <div class="searchdialog" style="margin: 2rem; position: relative;width:100% ">
                        <i class="fa fa-search" style="position: absolute; left: 0; top: 0;  display: inline-block; font-size: 28px; color: #504d77;"></i>
                        <input type="text" name="gname" placeholder="Search" style="display: inline-block; line-height: 1.5; border: none; border-bottom: 1px solid #ccc; outline: none; width: 70%; height: 35px; padding-left: 30px;">
                      <button type="submit" class="btn btn-primary float-right">搜索</button>
                    </div>
                    </form>

                </div>
                
            </div>
        </div>
    </div>
  <?php if ($this->config['mp3_state']=='1'){
	echo $this->config['mp3list'];}
	?>
</body>
</html>