<?php 
$q=$_GET['wd'];
?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>全网搜索<?php echo $q?>-<?php echo $yycms_a_bt;?></title>
<meta name="keywords" content="<?php echo $yycms_a_keywords;?>" />
<meta name="description" content="<?php echo $yycms_a_description;?>" />   
<?php
include 'head.php';
?>
</head>
<body class="yycmsys">
<?php 
include 'header.php';
?>
	<div class="wrap">
	    <div class="container min">
	    	<div class="row">
	    		<div class="col-md-wide-7 col-xs-1">
	    		   	<div class="myui-panel myui-panel-bg clearfix">
	    				<div class="myui-panel-box clearfix">
	    					<div class="myui-panel_hd">
	    						<div class="myui-panel__head active bottom-line clearfix">								
	    							<h3 class="title">
	    								与 <span class="text-red">“<?php echo $q?>”</span> 相关的全网搜索结果
	    							</h3>
	    						</div>
	    					</div>
	    
	    					<div class="myui-panel_bd col-pd clearfix">
	    						<ul class="myui-vodlist__media clearfix" id="searchList">
<?php
if(!$_GET['wd']==''){
$hq1=qwget($yycmszyjx[0].'?wd='.urlencode($q));
$data1=json_decode($hq1, TRUE);
$list1=$data1["data"];
foreach($list1 as $k=>$v){
if($v['list_name'] == '伦理片' || $v['list_name'] == '写真美女'){
continue;
}
?>
                                    <li class="clearfix">
	    								<div class="thumb">									
	    									<a class="myui-vodlist__thumb img-lg-150 img-md-150 img-sm-150 img-xs-100 lazyload" href="/qwplay-zd1-<?php echo $v['vod_id']?>.html" title="<?php echo $v['vod_name']?>" data-original="<?php echo $v['vod_pic']?>">
	    										<span class="play hidden-xs"></span>
	    										<span class="pic-tag pic-tag-top" style="background-color: #7091fc;"></span>
												<span class="pic-text text-right"><?php echo $v['vod_continu']?></span>	
												</a>																												
	    								</div>
	    								<div class="detail">
	    							    	<h4 class="title"><a class="searchkey" href="/qwplay-zd1-<?php echo $v['vod_id']?>.html"><?php echo $v['vod_name']?></a></h4>
	    									<p><span class="text-muted">主演:<?php echo $v['vod_actor'];?></p>		
	    									<p class="hidden-xs"><span class="text-muted">简介：</span><?php echo mb_substr($v['vod_content'],0,180,'utf-8').'...'; ?><a href="/qwplay-zd1-<?php echo $v['vod_id']?>.html">详情 &gt;</a></p>
	    									<p class="margin-0">
	    										<a class="btn btn-sm btn-warm" href="/qwplay-zd1-<?php echo $v['vod_id']?>.html"><i class="fa fa-play"></i> 立即播放</a>&nbsp;&nbsp;
	    										<a class="btn btn-sm btn-default hidden-xs" href="/qwplay-zd1-<?php echo $v['vod_id']?>.html">查看详情 <i class="fa fa-angle-right"></i></a>
	    									</p>												    	    																									
	    								</div>
	    							</li>
<?php 
}
}
?>
<?php
if(!$_GET['wd']=='' and $v['vod_id']==''){
$hq2=get($yycmszyjx[1].'?wd='.urlencode($q));
$data2=json_decode($hq2, TRUE);
$list2=$data2["data"];
foreach($list2 as $k=>$v){
if($v['list_name'] == '伦理片' || $v['list_name'] == '写真美女'){
continue;
}
?>
                                    <li class="clearfix">
	    								<div class="thumb">									
	    									<a class="myui-vodlist__thumb img-lg-150 img-md-150 img-sm-150 img-xs-100 lazyload" href="/qwplay-zd1-<?php echo $v['vod_id']?>.html" title="<?php echo $v['vod_name']?>" data-original="<?php echo $v['vod_pic']?>">
	    										<span class="play hidden-xs"></span>
	    										<span class="pic-tag pic-tag-top" style="background-color: #7091fc;"></span>
												<span class="pic-text text-right"><?php echo $v['vod_continu']?></span>	
												</a>																												
	    								</div>
	    								<div class="detail">
	    							    	<h4 class="title"><a class="searchkey" href="/qwplay-zd1-<?php echo $v['vod_id']?>.html"><?php echo $v['vod_name']?></a></h4>
	    									<p><span class="text-muted">主演:<?php echo $v['vod_actor'];?></p>		
	    									<p class="hidden-xs"><span class="text-muted">简介：</span><?php echo mb_substr($v['vod_content'],0,180,'utf-8').'...'; ?><a href="/qwplay-zd1-<?php echo $v['vod_id']?>.html">详情 &gt;</a></p>
	    									<p class="margin-0">
	    										<a class="btn btn-sm btn-warm" href="/qwplay-zd1-<?php echo $v['vod_id']?>.html"><i class="fa fa-play"></i> 立即播放</a>&nbsp;&nbsp;
	    										<a class="btn btn-sm btn-default hidden-xs" href="/qwplay-zd1-<?php echo $v['vod_id']?>.html">查看详情 <i class="fa fa-angle-right"></i></a>
	    									</p>												    	    																									
	    								</div>
	    							</li>
<?php 
}
}
?>
<?php
if(!$_GET['wd']=='' and $v['vod_id']==''){
$hq3=get($yycmszyjx[2].'?wd='.urlencode($q));
$data3=json_decode($hq3, TRUE);
$list3=$data3["data"];
foreach($list3 as $k=>$v){
if($v['list_name'] == '伦理片' || $v['list_name'] == '写真美女'){
continue;
}
?>
                                    <li class="clearfix">
	    								<div class="thumb">									
	    									<a class="myui-vodlist__thumb img-lg-150 img-md-150 img-sm-150 img-xs-100 lazyload" href="/qwplay-zd1-<?php echo $v['vod_id']?>.html" title="<?php echo $v['vod_name']?>" data-original="<?php echo $v['vod_pic']?>">
	    										<span class="play hidden-xs"></span>
	    										<span class="pic-tag pic-tag-top" style="background-color: #7091fc;"></span>
												<span class="pic-text text-right"><?php echo $v['vod_continu']?></span>	
												</a>																												
	    								</div>
	    								<div class="detail">
	    							    	<h4 class="title"><a class="searchkey" href="/qwplay-zd1-<?php echo $v['vod_id']?>.html"><?php echo $v['vod_name']?></a></h4>
	    									<p><span class="text-muted">主演:<?php echo $v['vod_actor'];?></p>		
	    									<p class="hidden-xs"><span class="text-muted">简介：</span><?php echo mb_substr($v['vod_content'],0,180,'utf-8').'...'; ?><a href="/qwplay-zd1-<?php echo $v['vod_id']?>.html">详情 &gt;</a></p>
	    									<p class="margin-0">
	    										<a class="btn btn-sm btn-warm" href="/qwplay-zd1-<?php echo $v['vod_id']?>.html"><i class="fa fa-play"></i> 立即播放</a>&nbsp;&nbsp;
	    										<a class="btn btn-sm btn-default hidden-xs" href="/qwplay-zd1-<?php echo $v['vod_id']?>.html">查看详情 <i class="fa fa-angle-right"></i></a>
	    									</p>												    	    																									
	    								</div>
	    							</li>
<?php 
}
}
?>

	    					</ul>
	    					</div>
	    				</div>				
	    			</div>	          
	    			
	    			<!-- 翻页 -->
	            </div>
		<div class="col-md-wide-3 col-xs-1  myui-sidebar">
	    			<div class="myui-panel myui-panel-bg clearfix">
	<div class="myui-panel-box clearfix">
		<div class="myui-panel_hd">
			<div class="myui-panel__head clearfix">
         <h3 class="title"> 热剧榜 </h3> 
        </div> 
       </div> 
       <div class="myui-panel_bd"> 
        <ul class="myui-vodlist__text col-pd clearfix"> 
						<?php
						include './data/bangdan.php';
						foreach ($bdArr['tv']['title'] as $k=>$title){
						$bdurl=$bdArr['tv']['url'][$k];//url
						$bdurl = str_replace("http://www.360kan.com/", "", $bdurl);
						$bdnum=$bdArr['tv']['num'][$k];//num
						$topnum=$bdArr['tv']['top'][$k];//topnum
                        echo '<li> <a href="/vod/'.$bdurl.'" title="'.$title.'"> <span class="pull-right  text-muted visible-lg" style="color: ;">'.$bdnum.'</span> <span class="badge">'.$topnum.'</span>'.$title.'</a> </li>';	
						}?>	
</ul> 
       </div> 
	</div>
</div>
<div class="myui-panel myui-panel-bg clearfix">
	<div class="myui-panel-box clearfix">
		<div class="myui-panel_hd">
			<div class="myui-panel__head clearfix">
         <h3 class="title"> 电影榜 </h3> 
        </div> 
       </div> 
       <div class="myui-panel_bd"> 
        <ul class="myui-vodlist__text col-pd clearfix"> 
						<?php
						include './data/bangdan.php';
						foreach ($bdArr['dy']['title'] as $k=>$title){
						$bdurl=$bdArr['dy']['url'][$k];//url
						$bdurl = str_replace("http://www.360kan.com/", "", $bdurl);
						$bdnum=$bdArr['dy']['num'][$k];//num
						$topnum=$bdArr['dy']['top'][$k];//topnum
                        echo '<li> <a href="/vod/'.$bdurl.'" title="'.$title.'"> <span class="pull-right  text-muted visible-lg" style="color: ;">'.$bdnum.'</span> <span class="badge">'.$topnum.'</span>'.$title.'</a> </li>';	
						}?>	
</ul> 
       </div> 

	</div>
</div>
	    		</div>
	        </div>
	    </div>
    </div>

<?php
include 'footer.php';
?>
</body>
</html>
