<?php /* Smarty version Smarty-3.1.11, created on 2024-08-17 15:26:38
         compiled from "../views/obgy/lab/editmodel.html" */ ?>
<?php /*%%SmartyHeaderCode:117811983666c096fe004106-01141004%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '7b58aff8a96825164e4090fd565af37565386edd' => 
    array (
      0 => '../views/obgy/lab/editmodel.html',
      1 => 1644288938,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '117811983666c096fe004106-01141004',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'colName' => 0,
    'selectClass' => 0,
    'tableName' => 0,
    'defaultValue' => 0,
    'alldata' => 0,
    'mydata' => 0,
    'i' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_66c096fe22ccc2_56078854',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_66c096fe22ccc2_56078854')) {function content_66c096fe22ccc2_56078854($_smarty_tpl) {?><div class="bootbox modal fade bootbox-alert in" tabindex="-1" role="dialog" aria-hidden="false"  id="edit_model">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
                <h4 class="modal-title"> Edit </h4>
            </div>
            <div class="modal-body">
                <div class="portlet-body form">
                    <form  method="post" class="form-horizontal  emptyform" >
                        <div class="form-body all" >
                            <!------===========================================------->
                            <div class="form-group">
                                <div class="col-md-12">
                                    <button type="button" class="btn btn-xs blue fright" id="addnewH"  data-colName="<?php echo $_smarty_tpl->tpl_vars['colName']->value;?>
"
                                            data-selectClass="<?php echo $_smarty_tpl->tpl_vars['selectClass']->value;?>
" data-tableName="<?php echo $_smarty_tpl->tpl_vars['tableName']->value;?>
"> 
                                        <i class="fa fa-plus"></i> Add</button>
                                </div>
                                <div class="col-md-12">
                                    <input type="hidden" id="defaultValue" value="<?php echo $_smarty_tpl->tpl_vars['defaultValue']->value;?>
">
                                    <table cellspacing="10" width="100%">
                                        <thead>
                                            <tr>
                                                <th>Name</th>
                                                <th class="wds10">Delete</th>
                                                <?php if ($_smarty_tpl->tpl_vars['defaultValue']->value==1){?>
                                                <th class="wds10">Default</th>
                                                <?php }?>
                                            </tr>
                                        </thead>
                                        <tbody id="editTableH">
                                            <?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>
                                                    <input type="text" class="form-control newitemH" 
                                                           data-id="<?php echo $_smarty_tpl->tpl_vars['mydata']->value['id'];?>
"  data-tableName="<?php echo $_smarty_tpl->tpl_vars['tableName']->value;?>
"
                                                           data-colName="<?php echo $_smarty_tpl->tpl_vars['colName']->value;?>
"   value='<?php echo $_smarty_tpl->tpl_vars['mydata']->value['name'];?>
'>
                                                </td>
                                                <td>
                                                    <a href="#" class="btn btn-xs red fleft deleteModalH wds100" data-id="<?php echo $_smarty_tpl->tpl_vars['mydata']->value['id'];?>
" 
                                                       data-tableName="<?php echo $_smarty_tpl->tpl_vars['tableName']->value;?>
"  >
                                                        <i class="fa fa-times" ></i>
                                                    </a>
                                                </td>
                                                <?php if ($_smarty_tpl->tpl_vars['defaultValue']->value==1){?>
                                                <td class="txtc">
                                                    <input type="radio" id="radio<?php echo $_smarty_tpl->tpl_vars['mydata']->value['id'];?>
" name="defaultValue" class="md-radiobtn"
                                                           data-id="<?php echo $_smarty_tpl->tpl_vars['mydata']->value['id'];?>
"  data-tableName="<?php echo $_smarty_tpl->tpl_vars['tableName']->value;?>
"
                                                           data-colName="default_value"   value='1'  
                                                           <?php if ($_smarty_tpl->tpl_vars['mydata']->value['default_value']==1){?> checked <?php }?>>
                                                    <label for="radio<?php echo $_smarty_tpl->tpl_vars['mydata']->value['id'];?>
">
                                                        <span></span>
                                                        <span class="check"></span>
                                                        <span class="box"></span>
                                                    </label>
                                                    </div>

                                                </td>
                                                <?php }?>
                                            </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 } ?>
                                        </tbody>
                                    </table>
                                </div>
                            </div>
                            <div class="modal-footer">
                                <button type="button" id="amountcloseinput"   class="btn default" data-dismiss="modal">Close</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
            <!-- /.modal-content -->
        </div>
    </div>
</div>



<script>


</script>


<?php }} ?>