<?php /* Smarty version Smarty-3.1.11, created on 2024-03-24 12:03:58
         compiled from "../views/obgy/gyna/editmodel.html" */ ?>
<?php /*%%SmartyHeaderCode:107242994765fffa8ed54937-47617036%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '0ac60607a2cf304692c975412e85f8657dc4ad60' => 
    array (
      0 => '../views/obgy/gyna/editmodel.html',
      1 => 1638661956,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '107242994765fffa8ed54937-47617036',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'table' => 0,
    'alldata' => 0,
    'mydata' => 0,
    'i' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_65fffa8ede8d62_42956603',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_65fffa8ede8d62_42956603')) {function content_65fffa8ede8d62_42956603($_smarty_tpl) {?><button type="button" class="btn btn-xs blue fright" id="addnewRow" data-selectClass="<?php echo $_smarty_tpl->tpl_vars['table']->value;?>
" data-tableName="<?php echo $_smarty_tpl->tpl_vars['table']->value;?>
"><i class="fa fa-plus"></i> Add</button></td>
<input type="hidden" id="slctTbl" value="">
<table cellspacing="10" width="100%" id="dtAddTbl">
    <thead>
        <tr>
            <th>Name</th>
            <th>Delete</th>
        </tr>
    </thead>
    <?php $_smarty_tpl->tpl_vars['i'] = new Smarty_variable(1, null, 0);?>
    <?php  $_smarty_tpl->tpl_vars['mydata'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['mydata']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['alldata']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['mydata']->key => $_smarty_tpl->tpl_vars['mydata']->value){
$_smarty_tpl->tpl_vars['mydata']->_loop = true;
?>
    <tr>
        <td style="width: 100%">
            <a href="#" >

                <input type="text" class="form-control updateElementSelect" data-selectClass="<?php echo $_smarty_tpl->tpl_vars['table']->value;?>
" id="edtSlct" data-select2="yes" data-id="<?php echo $_smarty_tpl->tpl_vars['mydata']->value->id;?>
" data-colName="name" data-tableName="<?php echo $_smarty_tpl->tpl_vars['table']->value;?>
" value="<?php echo $_smarty_tpl->tpl_vars['mydata']->value->name;?>
"/>
            </a>
        </td>
        <td>
            <a class="delrow fa fa-times btn red fleft" data-colName="conditions" data-link="gyna" data-tableName="<?php echo $_smarty_tpl->tpl_vars['table']->value;?>
" data-fn="deldiagnosis" data-id="<?php echo $_smarty_tpl->tpl_vars['mydata']->value->id;?>
" ></a>
        </td>
    </tr>

    <?php $_smarty_tpl->_capture_stack[0][] = array('default', 'i', null); ob_start(); ?><?php echo $_smarty_tpl->tpl_vars['i']->value+1;?>
<?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
if (!empty($_capture_buffer)) {
 if (isset($_capture_assign)) $_smarty_tpl->assign($_capture_assign, ob_get_contents());
 if (isset( $_capture_append)) $_smarty_tpl->append( $_capture_append, ob_get_contents());
 Smarty::$_smarty_vars['capture'][$_capture_buffer]=ob_get_clean();
} else $_smarty_tpl->capture_error();?>
    <?php } ?>

</table>
<?php }} ?>