<?php /* Smarty version Smarty-3.1.11, created on 2024-08-15 12:58:10
         compiled from "../views/obgy/labdevices/show.html" */ ?>
<?php /*%%SmartyHeaderCode:27763679966bdd13236e624-07947965%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'd0ddddff627c7b3f2298fd8ef431bc07022d1977' => 
    array (
      0 => '../views/obgy/labdevices/show.html',
      1 => 1709796238,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '27763679966bdd13236e624-07947965',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'hosturl' => 0,
    'controllname' => 0,
    'devices' => 0,
    'device' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_66bdd1323d0f53_17747955',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_66bdd1323d0f53_17747955')) {function content_66bdd1323d0f53_17747955($_smarty_tpl) {?>
<div class="page-content-wrapper">
    <div class="page-content all">
        <div class="row">
            <div class="col-md-12">
                <div class="portlet box blue">
                    <div class="portlet-title" style="height: 5px">
                        <div class="caption">
                            <i class="fa fa-edit"></i> Analysis Devices
                        </div>
                        <div class="actions">

                            <a href="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/controllers/<?php echo $_smarty_tpl->tpl_vars['controllname']->value;?>
.php"  accesskey=""class="btn btn-default btn-sm" id="labDeviceAdd">
                                <i class="fa fa-plus"></i> Add New  </a>


                        </div>

                    </div>
                    <div class="portlet-body" >
                        <div class="table-toolbar">

                        </div>
                        <table class="table table-striped table-hover table-bordered">
                            <thead>
                                <tr>
                                    <th>     Device Name     </th>
                                    <th class="wds9">  Edit</th>
                                    <th class="wds9">     Delete   </th>
                                </tr>
                            </thead>
                            <tbody  id="devicesContainer" >

                                <?php  $_smarty_tpl->tpl_vars['device'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['device']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['devices']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['device']->key => $_smarty_tpl->tpl_vars['device']->value){
$_smarty_tpl->tpl_vars['device']->_loop = true;
?>
                                <tr>
                                    <td><?php echo $_smarty_tpl->tpl_vars['device']->value->name;?>
 </td>
                                    <td>
                                        <a href="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/controllers/<?php echo $_smarty_tpl->tpl_vars['controllname']->value;?>
.php?ac=edit&id=<?php echo $_smarty_tpl->tpl_vars['device']->value->id;?>
" 
                                           class="btn green btn-block btn-xs"><i class="fa fa-pencil"></i> Edit</a>
                                    </td>
                                    <td>
                                        <a class="btn grey-cascade btn-xs deletemsgEX" data-id="<?php echo $_smarty_tpl->tpl_vars['device']->value->id;?>
" 
                                           style=" float: left;" href="#" data-link="<?php echo $_smarty_tpl->tpl_vars['controllname']->value;?>
" 
                                           data-fn="del" data-tableName="labdevices">
                                            <i class="fa fa-close"></i>
                                        </a>
                                    </td>
                                </tr> 

                                <?php } ?>
                            </tbody>
                        </table>



                    </div>
                </div>
            </div>
        </div>
    </div>

</div>

<input type="hidden" id="controllName" value="adddevices"/>



<?php }} ?>