<?php

if(empty($_GET["vid"])){ header("Location: ../../");die(); }
require "../data/index.php";

require "../config.php";

$data = data(array("act" => "item","id" => $_GET["vid"]));

?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit">
<meta name="referrer" content="no-referrer">
<meta name="format-detection" content="telephone=no">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=0">
<?php if(isset($data['title'])){ ?>
<title>正在播放 - <?php echo htmlspecialchars($data['title'])."-".$CONFIG['title'];?></title>
<meta name="keywords" content="<?php  $title=htmlspecialchars($data['title']); echo "$title,《$title》在线播放,《$title》免费播放" ;?>">
<meta name="description" content="<?php echo htmlspecialchars($data['title'])?>播放页 - <?php echo htmlspecialchars($data['desc'])?>">
<?php }else{ ?>
<title>资源不存在-<?php echo $CONFIG['title'];?></title>
<?php } ?>


<body >


<?php if(count($data['from']) !== 0){ ?>

	<u  id="playBoxIframe" style="width:100%">
		<!--<div class="tip">如无法播放请尝试切换线路，或<a>点击前往<span></span>播放</a><i class="close"></i></div>-->
	</div>

    

			<div class="clear" style="height:0.3rem"></div>

	<h3 class="from-title" id="titleItem" value="<?php echo htmlspecialchars($data['title'])?>"><?php echo htmlspecialchars($data['title'])?></h3>
        
        
        <div class="from" id="siteList" style="display:none">

          <div class="template">  <a data-num="{{num}}">{{site}}</a></div>
          
        <span class="clear"></span>
     
    </div>
        
          
        
	<div class="from" id="fromList" style="display:none" from="<?php echo htmlspecialchars('{"data":'.json_encode($data).'}')?>">
         
           <div class="template">  <a data-api="{{api}}" data-part="{{part}}" data-href="{{href}}" data-hasmore="{{hasmore}}" data-site="{{site}}" >线路{{number}}</a></div>
		<span class="clear"></span>
	</div>

        
      
        
	<div class="loading" id="loadBox2">
		<span class="s-loading"><i class="first"></i><i class="second"></i><i class="third"></i></span>
	</div>

	<div class="episodes" id="episodesBox" style="display:none;">
		<div class="clear" style="height:0.3rem"></div>
		
		<div class="episodes-list" id="episodesList">
			<div class="template"><a data-api="{{api}}" data-part="{{part}}"   data-href="{{href}}" value="{{number}}">{{number}}</a></div>
			<span class="clear"></span>
		</div>
	</div>
</div>
<?php }else{ ?>
<div class="no-data" id="noDataBox">未找到可用播放线路</div>
<?php } ?>






<a class="scroll-to-top" id="scrollToTop"></a>

<script src="../static/js/jquery.min.js"></script>
<script src="../static/js/common.js"></script>
<script src="../static/js/play.js"></script>


