<?php
//$GetMb_id
//$GetMb_page


$MYSQLVODS = json_decode(file_get_contents('./PPQSQL/Home/'.$GetMb_page.'.txt'),true);

$VideoTypeName=$vodtype[$GetMb_page];
$VideoTypeName=$VideoTypeName['name'];
$tpl->assign('VideoTypePPQSQL', $MYSQLVODS);
$tpl->assign('VideoType', $GetMb_page);
$tpl->assign('ListName', $VideoTypeName);
$tpl->assign('ListUrl',$Host1.'video_list'.$Host2.$GetMb_page.$Host3.'1'.$Host4);
$tpl->assign('DUrl', $Host1.$GetMb_tmp.$Host2.$GetMb_id.$Host3.$GetMb_page.$Host4);
$tpl->assign('CUrl', $Host1.'video_conter'.$Host2.$GetMb_id.$Host3.$GetMb_page.$Host4);
$count=count($MYSQLVODS)-1;
$FFCZ =null;
for ($x=0; $x<=$count; $x++) {

  $MYSQLVODSs=$MYSQLVODS[$x];
  if($MYSQLVODSs['d_id'] ==$GetMb_id ){
	  $tpl->assign('Id', $MYSQLVODSs['d_id']);
	  $tpl->assign('Name', $MYSQLVODSs['d_name']);
	  $tpl->assign('Pic', $MYSQLVODSs['d_pic']);
	  $tpl->assign('VideoPlayurl', $MYSQLVODSs['d_playurl']);
	  $tpl->assign('Time', $MYSQLVODSs['d_time']);
	  $FFCZ='4';
	  $_ppqVod = $MYSQLVODSs;
  }
} 
if($FFCZ ==null){ Header("Location:?");  }

// === PPQCMS SEO: 视频详情页增强（VideoObject + 封面/标题） ===
if (function_exists('ppq_seo_head')) {
    $_ppqV = isset($_ppqVod) ? $_ppqVod : array();
    $_ppqSeoUrl = ppq_canonical_url('video_detail', $GetMb_id, $GetMb_page);
    $_ppqSeoTitle = (isset($_ppqV['d_name']) ? $_ppqV['d_name'] : $WebTitle)
        . (isset($VideoTypeName) ? ' - ' . $VideoTypeName : '')
        . ' - ' . $WebTitle;
    $_ppqSeoDesc = isset($_ppqV['d_name']) ? $_ppqV['d_name'] : $WebDescription;
    $_ppqVideo = array(
        'date' => isset($_ppqV['d_time']) ? $_ppqV['d_time'] : '',
        'playurl' => isset($_ppqV['d_playurl']) ? $_ppqV['d_playurl'] : '',
    );
    $tpl->assign('SeoExtra', ppq_seo_head('detail', array(
        'title' => $_ppqSeoTitle,
        'description' => $_ppqSeoDesc,
        'image' => isset($_ppqV['d_pic']) ? $_ppqV['d_pic'] : '',
        'url' => $_ppqSeoUrl,
        'video' => $_ppqVideo,
    )));
}
$tpl->show($this_WebMoban.'/html/'.$GetMb_tmp);

?>