* Copyright (c) 2006 bitweaver.org * All Rights Reserved. See below for details and a complete list of authors. * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See http://www.gnu.org/copyleft/lesser.html for details. * * @package warehouse * @subpackage functions */ /** * required setup */ require_once '../kernel/setup_inc.php'; include_once WAREHOUSE_PKG_PATH . 'Product.php'; $gBitSystem->verifyPackage('warehouse'); $gBitSystem->verifyPermission('p_warehouse_view'); if (!empty($_REQUEST['product_id'])) { $gProduct = new Product($_REQUEST['product_id'], $_REQUEST['content_id']); $gProduct->load(); if (!empty($_REQUEST['batch_id'])) { $gProduct->getBatch($_REQUEST['product_id'], $_REQUEST['batch_id']); } } else { $gProduct = new Product(); } $gBitSmarty->assign_by_ref('productInfo', $gProduct->mInfo); //if ( $gClient->isValid() ) { $gBitSystem->setBrowserTitle("Product Batch Details"); $gBitSystem->display('bitpackage:warehouse/show_batch.tpl'); //} else { // header ("location: ".WAREHOUSE_PKG_URL."index.php"); // die; //}