<?php if (!defined('THINK_PATH')) exit();?>﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><?php echo ($webtitle); ?></title>
<meta name="keywords" content="<?php echo ($keywords); ?>">
<meta name="description" content="<?php echo ($description); ?>">
<link rel='stylesheet' type='text/css' href='<?php echo ($tplpath); ?>template.css'>
</head>
<body>
<div class="wrap">
<div class="topleft">
    <h3 class="logo"><a href="<?php echo ($webpath); ?>"><img src="<?php echo ($tplpath); ?>images/logo.png" alt="<?php echo ($webname); ?>"></a></h3>
</div>
<div class="topright">
    <div class="toptool"><span></span><font>如果你觉得本站不错，请行举手之劳推荐给你的朋友，或在博客/空间里做上<?php echo ($webname); ?>的链接，谢谢！</font></div><form id="form" name="form" method="post" action="<?php echo ($webpath); ?>index.php?s=video/search" onSubmit="return search();"><input type="text" name="wd" id="wd" onFocus="this.value='';this.focus()" value="输入影视名称或主演名称" class="searchword"/><input type="submit" value="搜索" class="searchsub"/></form><script type="text/javascript" src="<?php echo ($tplpath); ?>template.js" charset="utf-8"></script>
    <p><strong>热门搜索：</strong><script type="text/javascript" src="<?php echo ($tplpath); ?>hot.js" charset="utf-8"></script></p>
</div>
<div class="nav">
    <a href="<?php echo ($webpath); ?>" <?php if($model == 'index'): ?>class="cur"<?php endif; ?>>首页</a>  
    <?php $tag['name'] = 'menu'; $__LIST__ = get_tag_gxmenu($tag); if(is_array($__LIST__)): $i = 0;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$menu): ++$i;$mod = ($i % 2 );?><?php if(($menu["mid"])  ==  "1"): ?><?php if(get_channel_son($menu['id']) == 1): ?><a onfocus="this.blur();" href="<?php echo ($menu["showurl"]); ?>" <?php if(($menu['id'] == $cid) or ($menu['id'] == $pid)): ?>class="cur"<?php endif; ?>><?php echo ($menu["cname"]); ?></a>
    <?php else: ?>
        <?php if(is_array($menu["son"])): $i = 0; $__LIST__ = $menu["son"];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$menuson): ++$i;$mod = ($i % 2 )?><a onfocus="this.blur();" href="<?php echo ($menuson["showurl"]); ?>" <?php if(($menuson['id'] == $cid) or ($menuson['id'] == $pid)): ?>class="cur"<?php endif; ?>><?php echo ($menuson["cname"]); ?></a><?php endforeach; endif; else: echo "" ;endif; ?><?php endif; ?><?php endif; ?><?php endforeach; endif; else: echo "" ;endif;unset($__LIST__);unset($tag);?>    
</div>

	<div class="a-96090-index"><script type="text/javascript" src="<?php echo ($tplpath); ?>index.js" charset="utf-8"></script></div>
    <div class="box">
        <div class="top"><h3><a href="<?php echo ($root); ?>">热播节目推荐</a></h3></div>
        <ul class="imgh4 index_stars"><?php $tag['name'] = 'video';$tag['limit'] = '14';$tag['order'] = 'stars desc,hits desc'; $__LIST__ = get_tag_gxcms($tag); if(is_array($__LIST__)): $i = 0;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$video): ++$i;$mod = ($i % 2 );?><li><p><a href="<?php echo ($video["readurl"]); ?>"><img src="<?php echo ($video["picurl"]); ?>" alt="<?php echo ($video["title"]); ?>" /></a></p><h4><a href="<?php echo ($video["readurl"]); ?>" title="<?php echo ($video["title"]); ?>"><?php echo (get_replace_html($video["title"],0,8)); ?></a></h4></li><?php endforeach; endif; else: echo "" ;endif;unset($__LIST__);unset($tag);?></ul>
        </fflist></ul>
    </div>
    <div class="a-96090-index2"><script type="text/javascript" src="<?php echo ($tplpath); ?>index2.js" charset="utf-8"></script></div>
     <div class="box">
     	<div class="top"><h3><span>今天到目前已更新<strong><?php echo get_channel_count(0);?></strong>部</span>最近更新</h3></div>
        <ul class="hang1"><?php $tag['name'] = 'video';$tag['limit'] = '36';$tag['order'] = 'addtime desc';$tag['mod'] = '4'; $__LIST__ = get_tag_gxcms($tag); if(is_array($__LIST__)): $i = 0;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$video): ++$i;$mod = ($i % 4 );?><li><b><?php echo (get_color_date('m-d',$video["addtime"])); ?></b><a href="<?php echo ($video["readurl"]); ?>" title="<?php echo ($video["title"]); ?>"><?php echo (get_replace_html($video["title"],0,12)); ?></a></li>
    	<?php if(($mod)  ==  "0"): ?></ul><?php if(in_array(($i), explode(',',"8,16,24,32"))): ?><ul class="hang1"><?php else: ?><ul class="hang2"><?php endif; ?><?php endif; ?><?php endforeach; endif; else: echo "" ;endif;unset($__LIST__);unset($tag);?></ul>
    </div> 
    <div class="index_right">
        <div class="top1">
        <div class="top"><span>评分</span><h2>电视剧</h2></div>
        <ul><?php $tag['name'] = 'video';$tag['cid'] = '2';$tag['limit'] = '21';$tag['order'] = 'score desc';$tag['mod'] = '4'; $__LIST__ = get_tag_gxcms($tag); if(is_array($__LIST__)): $i = 0;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$video): ++$i;$mod = ($i % 4 );?><li><span><?php echo ($video["score"]); ?></span><h3><a href="<?php echo ($video["readurl"]); ?>"><?php echo (get_replace_html($video["title"],0,12)); ?></a></h3></li><?php endforeach; endif; else: echo "" ;endif;unset($__LIST__);unset($tag);?></ul></div>
        <!-- -->
        <div class="top2">
        <div class="top"><span>评分</span><h2>动漫</h2></div>
        <ul><?php $tag['name'] = 'video';$tag['cid'] = '3';$tag['limit'] = '10';$tag['order'] = 'score desc';$tag['mod'] = '4'; $__LIST__ = get_tag_gxcms($tag); if(is_array($__LIST__)): $i = 0;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$video): ++$i;$mod = ($i % 4 );?><li><span><?php echo ($video["score"]); ?></span><h3><a href="<?php echo ($video["readurl"]); ?>"><?php echo (get_replace_html($video["title"],0,12)); ?></a></h3></li><?php endforeach; endif; else: echo "" ;endif;unset($__LIST__);unset($tag);?></ul></div>
        <!-- -->
        <div class="top3">
        <div class="top"><span>评分</span><h2>电影</h2></div>
        <ul><?php $tag['name'] = 'video';$tag['cid'] = '1';$tag['limit'] = '10';$tag['order'] = 'score desc';$tag['mod'] = '4'; $__LIST__ = get_tag_gxcms($tag); if(is_array($__LIST__)): $i = 0;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$video): ++$i;$mod = ($i % 4 );?><li><span><?php echo ($video["score"]); ?></span><h3><a href="<?php echo ($video["readurl"]); ?>"><?php echo (get_replace_html($video["title"],0,12)); ?></a></h3></li><?php endforeach; endif; else: echo "" ;endif;unset($__LIST__);unset($tag);?></ul></div>
    </div>    
    <div class="index_left">
        <?php $cid_arr = array(12,14,15,17,3,1); ?>
        <?php if(is_array($cid_arr)): $k = 0; $__LIST__ = $cid_arr;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$gxcid): ++$k;$mod = ($k % 2 )?><?php if(in_array(($gxcid), explode(',',"1,3"))): ?><div class="news1">
            <div class="top"><span><a href="<?php echo get_channel_name($gxcid,'showurl');?>">更多>></a></span><h2><a href="<?php echo get_channel_name($gxcid,'showurl');?>"><?php echo get_channel_name($gxcid);?></a></h2></div>
            <ul><?php $tag['name'] = 'video';$tag['cid'] = ''.$gxcid.'';$tag['limit'] = '30';$tag['order'] = 'addtime desc'; $__LIST__ = get_tag_gxcms($tag); if(is_array($__LIST__)): $i = 0;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$video): ++$i;$mod = ($i % 2 );?><li><span><?php echo ($i); ?></span><a href="<?php echo ($video["readurl"]); ?>"><?php echo (get_replace_html($video["title"],0,12)); ?></a></li><?php endforeach; endif; else: echo "" ;endif;unset($__LIST__);unset($tag);?></ul>
        	</div> 
        <?php else: ?>
        	<div class="news2">
            <div class="top"><span><a href="<?php echo get_channel_name($gxcid,'showurl');?>">更多>></a></span><h2><a href="<?php echo get_channel_name($gxcid,'showurl');?>"><?php echo get_channel_name($gxcid);?></a></h2></div>
            <ul><?php $tag['name'] = 'video';$tag['cid'] = ''.$gxcid.'';$tag['limit'] = '12';$tag['order'] = 'addtime desc'; $__LIST__ = get_tag_gxcms($tag); if(is_array($__LIST__)): $i = 0;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$video): ++$i;$mod = ($i % 2 );?><li><span><?php echo ($i); ?></span><a href="<?php echo ($video["readurl"]); ?>"><?php echo (get_replace_html($video["title"],0,12)); ?></a></li><?php endforeach; endif; else: echo "" ;endif;unset($__LIST__);unset($tag);?></ul>
        	</div><?php endif; ?><?php endforeach; endif; else: echo "" ;endif; ?>
    </div>
 	<div class="links">
        <div class="title">
            <h4><span><a href="mailto:<?php echo ($webmail); ?>" target="_blank">申请友链</a></span>友情链接</h4>
        </div>
        <ul><?php $tag['name'] = 'link';$tag['limit'] = '100';$tag['order'] = 'type asc,oid asc'; $__LIST__ = get_tag_gxcms($tag); if(is_array($__LIST__)): $i = 0;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$link): ++$i;$mod = ($i % 2 );?><a href="<?php echo ($link["url"]); ?>" target="_blank"><?php echo (get_replace_html($link["title"],0,6)); ?></a><?php endforeach; endif; else: echo "" ;endif;unset($__LIST__);unset($tag);?></ul>
	</div> 
    <div class="ft">
    <div class="ft_l">
      <p>友情提示：请勿长时间观看影视，注意保护视力并预防近视，合理安排时间，享受健康生活。</p>
      <p>版权声明：本网站为非赢利性站点，本网站所有内容均来源于互联网相关站点自动搜索采集信息，相关链接已经注明来源。</p>
      <p>免责声明：本网站将逐步删除和规避程序自动搜索采集到的不提供分享的版权影视。本站仅供测试和学习交流。请大家支持正版。</p>
    </div>
    <div class="ft_r">
      <ul>
        <li><a href="http://player.baidu.com/help.html" target="_blank">常见问题</a></li>
        <li><a href="http://tieba.baidu.com/f?kw=%B0%D9%B6%C8%D3%B0%D2%F4" target="_blank">意见建议</a></li>
        <li>Email:bddyy2011@126.com</li>
      </ul>
    </div>
</div>
<span style="display:none"><?php echo ($tongji); ?></span>      
</div>
</body>
</html>