vip_id;
// input validation
if (!isset($_REQUEST["product_id"]))
{
nexus_product_details_exit();
}
$product_id = $_REQUEST["product_id"];
settype($product_id, "integer");
if ($product_id < 1)
{
nexus_product_details_exit();
}
if (!isset($_REQUEST["page"]))
{
$page = 1;
}
else
{
$page = $_REQUEST["page"];
}
settype($page, "integer");
if ($page < 1)
{
$page = 1;
}
// get product information
$product_row = nexus_product_get_row($product_id);
if ($product_row->status != 'live')
{
nexus_product_details_exit();
}
if ($product_row === false)
{
nexus_product_details_exit();
}
// get product vip
nexus_product_properties_vip_get_relation($product_id, $tmp_product_vip_ids);
$product_vip_ids = array();
foreach ($tmp_product_vip_ids as $tmp_product_vip_id)
{
$product_vip_ids[] = $tmp_product_vip_id->vip_id;
}
if (!in_array($vip_id, $product_vip_ids) && count($product_vip_ids) > 0)
{
nexus_product_details_exit();
}
// get product eshopping platform
nexus_product_properties_eshop_get_relation($product_id, $product_eshopping_platforms);
// get eshopping platform
$search_info = array();
nexus_product_properties_eshop_get_list($search_info, $eshop_result_total, $tmp_eshop_result);
$eshop_result = array();
foreach ($tmp_eshop_result as $tmp_eshop_row)
{
$eshop_result[$tmp_eshop_row->platform_id] = $tmp_eshop_row;
}
// get photos
$search_info = array(
"product_id" => $product_id
);
nexus_product_photo_get_list($search_info, $product_photo_total, $product_photo_result, "");
// construct back url
$back_url = "./viparea.php?page=%s";
$back_url = sprintf($back_url, $page);
?>
/js/galleria/galleria.css" rel="stylesheet" type="text/css" media="screen">
/download-o.gif','/submit-o.gif','/cancel-o.gif')">
| VIP area |
/greyline.gif" width="670" height="3" /> |
/blank.gif" width="20" height="5" /> |
Welcome |
< Back |
title_en; ?>
desc_en; ?>
%s;", $uploaded_file_type));
if (trim($uploaded_file_path) != "")
{
$uploaded_file_path_index = count($uploaded_file_paths) + 1;
$uploaded_file_paths[$uploaded_file_path_index] = $uploaded_file_path;
}
}
if (count($uploaded_file_paths) > 0)
{
?>
Instruction manual: /download.gif" alt="Download" name="download" width="67" height="25" border="0" align="absmiddle" id="download" /> $uploaded_file_path)
{
echo sprintf("%s ", $uploaded_file_path, $uploaded_file_path_index);
}
?>
0)
{
$eshop_icon_width = 67;
$eshop_icon_height = 25;
?>
Product available at:
platform_id];
?>
 |
}
?>
|
- ">

|
|
|
|
|