<?php !defined('IN_REGINX') && die('Access Denied'); ?>
<!--{include common/header.php}-->
<body>
    <!--{include common/topbar.php}-->
    <div id="wapper" style="padding:0">
        <div id="main" class="common" style="padding-top:1px;">
            <div id="player">
                <div class="player_title"><span class="gray">正在播放 : </span>
                    <a href="{url:'@view-%s' , $vod['sname']}" style="color:#f9f9f9;text-decoration:none" title="{$vod['name']}">{$vod['name']}</a>
                    <a href="javascript:void(0);" ajaxurl="{url:'player-error-vid-%d-pid-%d', $vod['id'] , $cur['player']['uid']}" class="playerr">影片报错</a>
                </div>
                {if $cur['player'] == '0' || $cur['player'] == 'default' }
                <div id="player_box">
                    <!--{if empty($sconf['hooks'][1])}-->
                        &nbsp;&nbsp;&nbsp;&nbsp;<span style="color:#fff;font-size:12px;" >请后台开启默认播放器插件</span>
                        <br/>&nbsp;
                    <!--{/if}-->
                    <!--{hook:1 , array_merge($cur , $vod) , $ads}-->
                </div>
                {else}
                <script src="{__DATA_URL__}js/player.js"></script>
                <div id="player_box">
                     <script>
                            play('{$cur['player']}' , '{$cur['url']}' , 638 , 475 
                                , '{url:'@ad-load'}' , '{url:'@ad-pause'}' , '{url:'@ad-end'}' 
                                ,'{if !empty($vod['next'])}{url:('@player-%s' , ($sconf['utype'] ? $vod['sname'] : $vod['id'] ) .'__' . $vod['next']['playid'])}{/if}'
                                ,'{if !empty($vod['prev'])}{url:('@player-%s' , ($sconf['utype'] ? $vod['sname'] : $vod['id'] ) .'__' . $vod['prev']['playid'])}{/if}'
                            );
                     </script>
                 </div>
                 {/if}
            </div>
            <div id="player_right">
                <div class="ad_7">
                    <!--{if !empty($ads[7])}-->
                        <!--{foreach $ads[7] $k $v}-->
                            <!--{if $v['ctype'] == '3'}-->
                     <script src="{$v['desc']}"></script>
                            <!--{else}-->
                     <!--{$v['desc']|html}-->
                            <!--{/if}-->
                        <!--{/foreach}-->
                    <!--{/if}-->
                </div>
            </div>
            <div class="clear"></div>
            <br/>
            <div class="ad_12">
                <!--{if !empty($ads[12])}-->
                    <!--{foreach $ads[12] $k $v}-->
                        <!--{if $v['ctype'] == '3'}-->
                 <script src="{$v['desc']}"></script>
                        <!--{else}-->
                 <!--{$v['desc']|html}-->
                        <!--{/if}-->
                    <!--{/foreach}-->
                <!--{/if}-->
            </div>

            <div class="player_tips common">
               【电影观看小贴士】： [DVD：标准清晰版]    [BD：1024高清版]    [HD：1280高清版]    [TS：抢先版，不清晰] - 其中，BD和HD版本不太适合网速过慢的用户观看
            </div>
            <br class="clear" />
            <div class="player_wapper common">
                <h3>[&nbsp;{$players[$cur['player']]['name']}&nbsp;]&nbsp;{if $v == 'thunder' || $v == 'qqdl' || $v == 'Flashget'}下载{else}点播{/if}列表</h3>
                <div class="drama_list">
                {foreach $url $pk $pv}
                {if $pv['player'] == $cur['player']}
                    <a href="{url:('@player-%s__%s' , $vod['sname'] , $pv['playid'])}"  class=" drama_btn {if $pv['name'] == $cur['name']}drama_btn_active{/if}">{$pv['name']}</a>
                {/if}
                {/foreach}
                    <div class="clear"></div>
                </div>
                <div class="clear"></div>
            </div>
            <div class="clear"></div>
            
           <h3 class="title">热播影片</h3>
           <div class="v_hot">
           <!--{foreach $hotlist $k $v}-->
                <div class="v_hot_block">
                    <div class="v_image">
                        <a href="{url:'@view-%s' , $v['sname']}" title="{$v['key']}" target="_blank"><img  src="{__UPLOAD_URL__}{$v['cover']|thumb}" alt="{$v['name']}"/></a>
                    </div>
                    <p><a href="{url:'@view-%s' , $v['sname']}" title="{$v['key']}" target="_blank">{$v['name']|10}</a></p>
                </div>
            <!--{/foreach}-->
                <div class="clear"></div>
            </div>
            
            <div class="ad_8">
                <!--{if !empty($ads[8])}-->
                    <!--{foreach $ads[8] $k $v}-->
                        <!--{if $v['ctype'] == '3'}-->
                 <script src="{$v['desc']}"></script>
                        <!--{else}-->
                 <!--{$v['desc']|html}-->
                        <!--{/if}-->
                    <!--{/foreach}-->
                <!--{/if}-->
            </div>
            <div class="clear"></div>
            <!--{include common/footer.php}-->
        </div>
    </div>
</body>
</html>