<?php /* Smarty version Smarty-3.1.11, created on 2024-08-20 21:50:28
         compiled from "../views/obgy/adddevices/externals.html" */ ?>
<?php /*%%SmartyHeaderCode:30262450566c4e574b63616-00647345%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '2613f06ae7c0f39642ace8a157830fa87dad7adb' => 
    array (
      0 => '../views/obgy/adddevices/externals.html',
      1 => 1660702922,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '30262450566c4e574b63616-00647345',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'id' => 0,
    'external_labs' => 0,
    'row' => 0,
    'external_lab' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_66c4e574ca6157_80857856',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_66c4e574ca6157_80857856')) {function content_66c4e574ca6157_80857856($_smarty_tpl) {?>
<select class="form-control updateElement "   id="exLabs<?php echo $_smarty_tpl->tpl_vars['id']->value;?>
"   data-id="<?php echo $_smarty_tpl->tpl_vars['id']->value;?>
" data-colName="external_lab" 
        data-tableName="investigationresults" >
    <option value=""> اختر معمل </option>
    <?php  $_smarty_tpl->tpl_vars['row'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['row']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['external_labs']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['row']->key => $_smarty_tpl->tpl_vars['row']->value){
$_smarty_tpl->tpl_vars['row']->_loop = true;
?>
    <option value="<?php echo $_smarty_tpl->tpl_vars['row']->value->id;?>
"  <?php if ($_smarty_tpl->tpl_vars['row']->value->id==$_smarty_tpl->tpl_vars['external_lab']->value){?> } selected <?php }?>  ><?php echo $_smarty_tpl->tpl_vars['row']->value->name;?>
</option>
    <?php } ?>
    <option value="-2" class="deleteoptincompo">حذف</option>
</select> <?php }} ?>