<?php
/**
* Encoding     :   UTF-8
* Created on   :   2009-12-19 16:18:09 by smallchicken , microji@126.com
*/
/* 蓝光机详细页面 */
require 'libs/init.php';
require 'libs/init_db.php';
require 'libs/page.php';
require_once 'config.var.php';

$tab_on = 'buy';
$bdauth = empty($_COOKIE[$cookiepre . 'logging_status']) ? '' : $_COOKIE[$cookiepre . 'logging_status'];
list($id, $name, $value) = explode("\t", dz_authcode($bdauth,'DECODE'));


if ($value == 'true') {

	$login_title = '<a href="product-user-info.php" class="on">個人賬戶</a>
	<a href="product-user-info.php?act=loginout" class="on">退出</a>';


} else {
	$login_title = '<a href="club_register.php" class="on">註冊</a>
	<a href="club_login.php" class="on">登錄</a>
	<a href="product-user-info.php" class="on">個人賬戶</a>';

}
$id = isset($_GET['id']) ? max( 0 , intval($_GET['id']) ) : 0 ;

// if(!array_key_exists($id, $siteConf['product_info']))
// {
//     alert_back($ln['not_found']);
//     exit;
// }
$player = $siteConf['product_info'][$id] ;


$product['cate'] =  $ln['cate'];
$product['name'] = $ln['player_detail'][$id]['name'];
$product['img'] = '<img src="'.$player['pic'] . '" alt="" />';

$product['price'] =  $player['price'];
$product['canbuy'] = $player['canbuy'];
$product['alertmsg'] = $player['alertmsg'] ;
$url_from = 'buy.php';


$birth_lang = BD_ROOT . './lang/birth.'. $lang_type . '.php' ;
if( file_exists($birth_lang))
{
    include $birth_lang ;
}
if($id==0)
{
    $ln['player_detail'][$id]['desc']['awards']['cont'] = $ln['know'][1]['page'];
}
else if($id==2)
{
    $ln['yuanzhuang'] = '中/英文双语版，火热销售中！';
}
else if($id==4)
{
	$ln['biaopei']= '<strong>标配：</strong> 镀金的1.8米HDMI连接线，遥控器，电池，wifi接收器，电源线，中英文说明书';
	$ln['yuanzhuang'] = '中英文操作界面';
}
else if($id==5)
{
	$ln['biaopei']= '<strong>标配：</strong>  双头镀金的1.8米HDMI连接线，遥控器，电池，wifi接收器，美标电源线，中英文说明书，中英文操作界面';
	//$ln['yuanzhuang'] = '顺丰包邮、现购即送 60年盛势大阅兵 决战豪门 3D大片塔拉星球大战';
	$ln['yuanzhuang'] = '中英文操作界面';
}



require_once BD_ROOT . 'libs/Template.php';
include Zandy_Template::outCache('player-detail', $siteConf['tplDir'], $siteConf['cacheDir']);