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


PHP Inventory::getReagentById方法代码示例

本文整理汇总了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 '-';
        }
        ?>
开发者ID:caseyi,项目名称:BLIS,代码行数:31,代码来源:reports_user_stats_individual.php

示例2: foreach

					<td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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>
						&nbsp;<?php 
echo LangUtil::$pageTerms['Units'];
?>
					</td>
					<td></td>
开发者ID:jfurlong,项目名称:BLIS,代码行数:31,代码来源:use_stock.php

示例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();
	});

 
开发者ID:caseyi,项目名称:BLIS,代码行数:28,代码来源:stock_lots.php


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