-
Notifications
You must be signed in to change notification settings - Fork 0
/
display_product.php
43 lines (36 loc) · 1.13 KB
/
display_product.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php
/**
* $Header$
*
* 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();
} else {
$gProduct = new Product();
}
$gProduct->getStockList($gProduct->mProductId);
$gProduct->getPalletMoveList($gProduct->mProductId);
$gProduct->getBatchList($gProduct->mProductId);
$gBitSmarty->assign_by_ref( 'productInfo', $gProduct->mInfo );
//if ( $gClient->isValid() ) {
$gBitSystem->setBrowserTitle("Product Details Record");
$gBitSystem->display( 'bitpackage:warehouse/show_product.tpl');
//} else {
// header ("location: ".WAREHOUSE_PKG_URL."index.php");
// die;
//}
?>