当前位置: 首页>>代码示例>>PHP>>正文


PHP Stock::getManufacturerById方法代码示例

本文整理汇总了PHP中Stock::getManufacturerById方法的典型用法代码示例。如果您正苦于以下问题:PHP Stock::getManufacturerById方法的具体用法?PHP Stock::getManufacturerById怎么用?PHP Stock::getManufacturerById使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Stock的用法示例。


在下文中一共展示了Stock::getManufacturerById方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: Stock

<?php

require_once "../../../lib/stock.class.php";
require_once '../../../lib/defination.class.php';
$manu_id = $_GET['manu_id'];
$machine_id = $_GET['machine_id'];
$section_id = $_GET['section_id'];
$dept_id = $_GET['dept_id'];
$stock = new Stock();
$StockManufacturer = $stock->getManufacturerById($manu_id);
$stockAllManufacturer = $stock->retriveManufecturer();
$rowManuYear = count($stockAllManufacturer);
$stockMacName = $stock->retriveMachineName();
$rowMacName = count($stockMacName);
$stockDeptName = $stock->retriveStockDepartmentListAll();
$rowDeptName = count($stockDeptName);
$stockSection = $stock->retriveStockSection();
$rowStockSection = count($stockSection);
?>



	<form  id="CreateManufactureGroup" name="CreateManufactureGroup" method="post" action="includes/model/stock_manufacture_update_actions.php" >
	<div id="note"> </div>
	  <table width="100%" border="0" align="center" cellpadding="2" cellspacing="2">
	<?php 
require_once "../partials/_form_manufacture.php";
?>
	  
                  <td align="center" valign="middle"><input type="hidden" value="<?php 
echo $manu_id;
开发者ID:rajibahmed,项目名称:IIMS,代码行数:31,代码来源:ca_edit_manufacturer.php

示例2:

    ?>
  <tr id ="stk_<?php 
    echo $StockMacModelAll["{$i}"]["machine_model_id"];
    ?>
" bgcolor="<?php 
    echo $bgc;
    ?>
">
    <td><?php 
    echo $StockMacModelAll["{$i}"]["machine_model_name"];
    $macMode_id = $StockMacModelAll["{$i}"]["machine_model_id"];
    $machine_id = $StockMacModelAll["{$i}"]["machine_id"];
    $Section_p_id = $StockMacModelAll["{$i}"]["Section_p_id"];
    $stock_dept_id = $StockMacModelAll["{$i}"]["stock_dept_id"];
    $machine_mode = $StockMacModelAll["{$i}"]["manufacturer_id"];
    $StockMachineManuModeID = $objMachineModelListAll->getManufacturerById($machine_mode);
    $StockMachinenameID = $objMachineModelListAll->retriveStockMachineListByID($machine_id);
    $StockDepSecNameID = $objMachineModelListAll->retriveStockSectionName($Section_p_id);
    $StockDepNameID = $objMachineModelListAll->retriveStockDepartmentName($stock_dept_id);
    ?>
</td>
    <td><?php 
    if ($machine_id == 0) {
        echo "Primary";
    } else {
        echo $StockMachinenameID[0]["m_name"];
    }
    ?>
	</td>
    <td><?php 
    if ($machine_mode == 0) {
开发者ID:rajibahmed,项目名称:IIMS,代码行数:31,代码来源:list_all_machine_model.php


注:本文中的Stock::getManufacturerById方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。