<?php
/*
  $Id: popup_image.php,v 1.5  02.09.2009 21:47:46 oscim Exp $
// kate: replace-trailing-space-save true; space-indent on; indent-width 2; mixedindent off; indent-mode cstyle; word-wrap-marker-color #41C2A4
+-----------------------------------------------------------------------+
|                  osCSS Open Source E-commerce                         |
+-----------------------------------------------------------------------+
| Copyright (c) 2005-2009  The osCSS developers                         |
|                                                                       |
| http://www.oscss.org                                                  |
|                                                                       |
| Portions Copyright (c) 2003-2009 osCommerce                           |
+-----------------------------------------------------------------------+
| This source file is subject to version 2.0 of the GPL license,        |
| available at the following url:                                       |
| http://www.oscss.org/license/2_0.txt.                                 |
+-----------------------------------------------------------------------+

	ENCODE UTF-8
*/
/**
* @package oscss-Rv
* @date 02.09.2009 ACCEPT RV_COMPATIBILITY a ON
    modifie pour RV_COMPATIBILITY
*/
  require('includes/application_top.php');
  $page->init(basename(__FILE__),$language);
  $navigation->remove_current_page();

  if (isset($_GET['products_id'])) {
    //! PRODUCT
    $type='product';

    $product_info_query = tep_db_query("select p.products_id, pd.products_name, pd.products_description, p.products_model, p.products_quantity, p.products_image, pd.products_url, p.products_price, p.products_tax_class_id, p.products_date_added, p.products_date_available, p.manufacturers_id, pd.products_viewed from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = '" . (int)$_GET['products_id'] . "' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "'");

    /** Control ok products */
    $product_info = tep_db_fetch_array($product_info_query);

    $page->new_class($type,$product_info);
//     $page->new_class('product_portfolio');
//     $page->new_class('customer_is',$customer_id);
//     $module=$page->_call('product','ret_modules');


  } else {
    //! HOME
    $type='home';

    $page->new_class($type);
  }

  $module=$page->_call($type,'ret_modules');
?>
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html <?php echo HTML_PARAMS; ?>>
<head>
<title><?php echo STORE_NAME ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
<!-- <title><?php echo $products['products_name']; ?></title> -->
<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">
<script language="javascript" type="text/javascript"><!--
var i=0;
var s=0;
function resize() {
 if (navigator.appName == 'Netscape') i=40;
 if (window.navigator.userAgent.indexOf("rv") != -1) i=-40;  //For Firefox
 if (window.navigator.userAgent.indexOf("SV1") != -1) s=50; //This browser is Internet Explorer in SP2.
 if (document.images[0]) window.resizeTo(document.images[0].width +30+s/2, document.images[0].height+60-i+s);
 self.focus();
}
//-->
</script>
<?php echo $page->_call($type,'get_header_js',@$_GET['action']); //$module->get_header_js(); ?>
</head>
<body onload="resize();">
 <?php $module['portfolio']->$_GET['method'](); //draw_list('son'); ?>
</body>
</html>
<?php require('includes/application_bottom.php'); ?>