本文整理汇总了PHP中Stock::retriveStockGroupById方法的典型用法代码示例。如果您正苦于以下问题:PHP Stock::retriveStockGroupById方法的具体用法?PHP Stock::retriveStockGroupById怎么用?PHP Stock::retriveStockGroupById使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Stock
的用法示例。
在下文中一共展示了Stock::retriveStockGroupById方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
} else {
$bgc = "#F1F1F1";
}
?>
<tr id ="stk_<?php
echo $FinishListAll["{$i}"]["stock_item_id"];
?>
" bgcolor="<?php
echo $bgc;
?>
">
<td><?php
echo $FinishListAll["{$i}"]["stock_item_name"];
$stock_item_id = $FinishListAll["{$i}"]["stock_item_id"];
$stock_item_grp_id = $FinishListAll["{$i}"]["stock_item_grp_id"];
$stock_grp_name = $objFinishGoodsList->retriveStockGroupById($stock_item_grp_id);
?>
</td>
<td>
<?php
if ($stock_item_grp_id == 0) {
echo "Primary";
} else {
echo $stock_grp_name["0"]["stock_group_name"];
}
?>
</td>
<td align="center"><a href="includes/contents/update/edit_finish.php?stc_itm_id=<?php
echo $stock_item_id;
?>
&height=550&width=600" class="thickbox">Edit</a></td>
示例2: Stock
<?php
require_once "../../../lib/stock.class.php";
$s_grp_id = $_GET['s_grp_id'];
$objStockGroupInfo = new Stock();
$StockGrpInfo = $objStockGroupInfo->retriveStockGroupUnderInfo();
$rowStockGroUnderInfo = count($StockGrpInfo);
$StockGrpById = $objStockGroupInfo->retriveStockGroupById($s_grp_id);
$rowStockGroById = count($StockGrpById);
for ($j = 0; $j < $rowStockGroById; $j++) {
$stock_group_name = $StockGrpById[$j]['stock_group_name'];
$stock_group_p_id = $StockGrpById[$j]['stock_group_parent_id'];
}
?>
<form id="CreateStockGroup" name="CreateStockGroup" method="post" action="includes/model/stock_group_update_actions.php?height=200&width=500" class="thickbox">
<div id="note"> </div>
<table width="100%" border="0" align="center" cellpadding="2" cellspacing="2">
<?php
require_once "../partials/_form_stock_group.php";
?>
<td align="center" valign="middle"><input type="hidden" value="<?php
echo $s_grp_id;
?>
" name="s_grp_id" id="s_grp_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"> </td>
<td align="center" valign="middle"> </td>
</tr>
示例3:
} else {
$bgc = "#F1F1F1";
}
?>
<tr id ="stk_<?php
echo $EngineerListAll["{$i}"]["stock_item_id"];
?>
" bgcolor="<?php
echo $bgc;
?>
">
<td><?php
echo $EngineerListAll["{$i}"]["stock_item_name"];
$stock_item_id = $EngineerListAll["{$i}"]["stock_item_id"];
$stock_item_grp_id = $EngineerListAll["{$i}"]["stock_item_grp_id"];
$stock_grp_name = $objStockEngineerInfo->retriveStockGroupById($stock_item_grp_id);
?>
</td>
<td>
<?php
if ($stock_item_grp_id == 0) {
echo "Primary";
} else {
echo $stock_grp_name["0"]["stock_group_name"];
}
?>
</td>
<td align="center"><a href="includes/contents/update/edit_engi_item.php?stc_itm_id=<?php
echo $stock_item_id;
?>
&height=550&width=600" class="thickbox">Edit</a></td>