<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 '-'; } ?>
<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>
# # 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(); });