示例#1
0
<?php

require_once "../../../lib/stock.class.php";
require_once '../../../lib/defination.class.php';
$m_sec_id = $_GET['m_sec_id'];
$m_dep_id = $_GET['m_dep_id'];
$m_id = $_GET['m_id'];
$stock = new Stock();
$StockMachine = $stock->retriveStockMachineListByID($m_id);
$stockDeptName = $stock->retriveStockDepartmentListAll();
$rowDeptName = count($stockDeptName);
$stockSection = $stock->retriveStockSection();
$rowStockSection = count($stockSection);
?>



	<form  id="CreateMachineGroup" name="CreateMachineGroup" method="post" action="includes/model/stock_machine_update_actions.php" >
	<div id="note"> </div>
	  <table width="100%" border="0" align="center" cellpadding="2" cellspacing="2">
	<?php 
require_once "../partials/_form_machine.php";
?>
	  
                  <td align="center" valign="middle"><input type="hidden" value="<?php 
echo $m_id;
?>
" name="s_mac_id" id="s_mac_id" /></td>
                  <td align="center" valign="right"><input name="btn_StkGrp" type="submit" class="button" id="btn_StkGrp" value="Update" /></td>
                  <td align="center" valign="middle">&nbsp;</td>
                  <td align="center" valign="middle">&nbsp;</td>
<?php

require_once "../../../lib/stock.class.php";
$objStockSectionListAll = new Stock();
$StockSectListAll = $objStockSectionListAll->retriveStockSection();
$rowStockSectListAll = count($StockSectListAll);
?>


<table width="100%" border="0">
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td align="right"><a class="thickbox" href="includes/contents/create_stock_section.php?height=200&width=500" title="Stock Group" >Back</a></td>
  </tr>
  <tr>
    <td width="177"><b>Section Name</b></td>
    <td width="254"><b>Section Parent</b></td>
    <td width="255"><b>Stock Department</b></td>
    <td width="144">&nbsp;</td>
    <td width="84">&nbsp;</td>
  </tr>
<?php 
for ($i = 0; $i < $rowStockSectListAll; $i++) {
    if ($i % 2 == 0) {
        $bgc = "#F7F7F7";
    } else {
        $bgc = "#F1F1F1";
    }
示例#3
0
require_once '../../../lib/defination.class.php';
require_once '../../../lib/stock.class.php';
//// Retrive Stock Group Name
$objStockGroupInfo = new Stock();
$stock = new Stock();
$StockGrpInfo = $objStockGroupInfo->retriveStockGroupUnderInfo();
$StockGrpInfo_options = options_for_select($StockGrpInfo, 'stock_group_id', 'stock_group_name', true);
/////////////////////////////////
//// Retrive Stock Catagory Name
$objStockCatInfo = new Stock();
$StockCatInfo = $objStockCatInfo->retriveStockCatUnderInfo();
////////////////////////////////////////////////
$StockCatInfo_options = options_for_select($StockCatInfo, 'stock_cat_id', 'stock_cat_name', true);
$stockDept = options_for_select($stock->retriveStockDepartmentInfo(), 'stock_dept_id', 'stock_dept_name', true);
$stockSection = options_for_select($stock->retriveStockSection(), 'sec_id', 'sec_name', true);
$stockMachineName = options_for_select($stock->retriveMachineName(), 'm_id', 'm_name', true);
$stockMachineModelName = options_for_select($stock->retriveMachineModelName(), 'machine_model_id', 'machine_model_name', true);
$stockManufecturer = options_for_select($stock->retriveManufecturer(), 'manu_id', 'manu_name', true);
$stockItemName = options_for_select($stock->retriveStockItem(), 'stock_item_id', 'stock_item_name', true);
/////////////////////////////////
//// Retrive Stock Unit Name
$unitName = options_for_select($stock->retriveStockUnit(), 'stock_item_unit_id', 'stock_item_unit_name', true);
/////////////////////////////////
@session_start();
$user_level = $_SESSION[user_level];
$stc_itm_id = $_GET['stc_itm_id'];
$stockItemByID = $objStockGroupInfo->retriveStockItemByid($stc_itm_id);
$allStockItem = $objStockGroupInfo->retriveStockItem();
$rowStockItem = count($allStockItem);
$stock_p_id = $stockItemByID["0"]["stock_p_id"];