當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。