-
Notifications
You must be signed in to change notification settings - Fork 0
/
display_batch.php
42 lines (36 loc) · 1.09 KB
/
display_batch.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
<?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();
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;
//}
?>