Beispiel #1
0
$stc_itm_id = $_GET['stc_itm_id'];
$finishItemByID = $objStockGroupInfo->retriveFinishItemByid($stc_itm_id);
$stock_item_id = $finishItemByID[0]['stock_item_id'];
$StockGroupId = $finishItemByID[0]['stock_item_grp_id'];
$StockUnitId = $finishItemByID[0]['stock_item_unit_id'];
$StockAltUnitId = $finishItemByID[0]['stock_alt_unit'];
$count = $finishItemByID[0]['count'];
$lot = $finishItemByID[0]['lot'];
//// Retrive Stock Group Name
$StockGrpInfo = $objStockGroupInfo->retriveStockGroupUnderInfo();
$StockGrpInfo_options = options_for_select($StockGrpInfo, 'stock_group_id', 'stock_group_name', true, $StockGroupId);
//// Retrive Stock Unit Name
$unitName = options_for_select($stock->retriveStockUnit(), 'stock_item_unit_id', 'stock_item_unit_name', true, $StockUnitId);
//Retrive Count
$Count = new Count();
$countName = options_for_select($Count->retriveCountInfo(), 'count_id', 'count_name', true, $count);
//Retrive Lot
$Lot = new Lot();
$outputLot = options_for_select($Lot->retriveLotInfo(), 'lot_id', 'lot_name', true, $lot);
/////////////////////////////////
$allStockItemUnit = $objStockGroupInfo->retriveStockUnit();
$rowStockItemUnit = count($allStockItemUnit);
?>



<div id="test">

<form  id="CreateStockItem" name="CreateStockItem" method="post"   action="includes/model/finish_item_update_actions.php"><table width="100%" border="0" cellspacing="2" cellpadding="2">
  <tr>
    <td>Name</td>
Beispiel #2
0
<?php

require_once "../../../lib/count.class.php";
$objCountListAll = new Count();
$CountListAll = $objCountListAll->retriveCountInfo();
$rowCountListAll = count($CountListAll);
?>


<table width="100%" border="0">
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td align="right"><a class="thickbox" href="includes/contents/create_count.php?height=200&width=500" title="Count" >Back</a></td>
  </tr>
  <tr>
    <td width="140"><b>Count Name</b></td>
    <td width="57">&nbsp;</td>
    <td width="67">&nbsp;</td>
  </tr>
<?php 
for ($i = 0; $i < $rowCountListAll; $i++) {
    if ($i % 2 == 0) {
        $bgc = "#F7F7F7";
    } else {
        $bgc = "#F1F1F1";
    }
    ?>
  <tr id ="stk_<?php 
    echo $CountListAll["{$i}"]["count_id"];
    ?>