예제 #1
0
<?php

require_once '../../lib/defination.class.php';
include '../../lib/supplier.class.php';
include '../../lib/stock.class.php';
include '../../lib/purchaseOrder.class.php';
include '../../lib/mrr.class.php';
$stock = new Stock();
$MRR = new MRR();
$output = options_for_select($stock->retriveStockItem(), 'stock_item_id', 'stock_item_name');
// get suppliers info for combo box;
$Supplier = new Supplier();
$outputSupplierItem = options_for_select($Supplier->retriveSupplierInfo(), 'sup_id', 'sup_name', true);
$Purchase = new Purchaseorder();
$outputPurchaseorder = options_for_select($Purchase->RetrivePurchaseOrder(), 'pm_id', 'pm_no', true);
$locations = options_for_select($stock->retriveLocation(), 'stock_location_id', 'stock_location_name');
$num = $MRR->getNewId();
?>
<link href="../../css/stylesheet.css" rel="stylesheet" type="text/css" />
<div id="note"> </div>
<form id="mrrForm" name="mrrForm" method="post"  action="includes/model/mrr_order_actions.php" >
	
	<div class='morelabel'>
		
		<p>
			
				<label>MRR # </label>
			<input type="text" disabled value="<?php 
echo generate_timestamp('MRR', $num);
?>
"  />