本文整理汇总了PHP中Inventory::getReagentById方法的典型用法代码示例。如果您正苦于以下问题:PHP Inventory::getReagentById方法的具体用法?PHP Inventory::getReagentById怎么用?PHP Inventory::getReagentById使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Inventory
的用法示例。
在下文中一共展示了Inventory::getReagentById方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: foreach
<tbody>
<?php
$all_entries = Inventory::get_inv_usage_by_user($lab_config_id, $user_id);
foreach ($all_entries as $entry) {
?>
<tr>
<td>
<?php
$count++;
echo $count;
?>
</td>
<td>
<?php
$dat = Inventory::getReagentById($lab_config_id, $entry['reagent_id']);
if ($dat[name] != '') {
echo $dat[name];
} else {
echo '-';
}
?>
</td>
<td>
<?php
if ($entry[lot] != '') {
echo $entry[lot];
} else {
echo '-';
}
?>
示例2: foreach
<td> </td>
<td>
<?php
/*$reagents_list = Inventory::getAllReagents($lid);
echo "<select id='reagent' name='reagent' style='width: 205px' onchange='javascript:display_unit()'>";
foreach($reagents_list as $reagent)
{
$r_id = $reagent['id'];
$r_name = $reagent['name'];
if($r_id != $selected_id)
echo "<option value='$r_id'>$r_name</option>";
else
echo "<option value='$r_id' selected='selected'>$r_name</option>";
}
echo "</select>";*/
$reag = Inventory::getReagentById($lid, $selected_id);
echo $reag['name'];
?>
<input type="hidden" name="reagent" id="reagent" value="<?php
echo $selected_id;
?>
"/>
</td>
</tr>
<tr>
<td>
<?php
echo LangUtil::$pageTerms['Units'];
?>
</td>
<td></td>
示例3: basename
#
# Adds a new test type to catalog in DB
#
include "redirect.php";
include "includes/header.php";
include "includes/stats_lib.php";
include "lang/lang_xml2php.php";
include "barcode/barcode_lib.php";
LangUtil::setPageId("stocks");
$script_elems->enableFlotBasic();
$script_elems->enableFlipV();
$script_elems->enableTableSorter();
$r_id = $_REQUEST['id'];
$lid = $_SESSION['$lab_config_id'];
$reag = Inventory::getReagentById($lid, $r_id);
$view_use = 1;
putUILog('stock_lots', 'X', basename($_SERVER['REQUEST_URI'], ".php"), 'X', 'X', 'X');
$barcode_seperator = '$';
$code_type = "code39";
$bar_width = 2;
$bar_height = 40;
$font_size = 11;
?>
<script type='text/javascript'>
$(document).ready(function(){
$('#current_inventory').tablesorter();
});