<?php /* Smarty version Smarty-3.1.11, created on 2026-04-27 23:04:48
         compiled from "../views/obgy/visits/periodeditmodel.html" */ ?>
<?php /*%%SmartyHeaderCode:120235342369f04e00b6ac26-40615324%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'a291b1c270ea04d4b815c7f7a12dc2715d981ad2' => 
    array (
      0 => '../views/obgy/visits/periodeditmodel.html',
      1 => 1624833582,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '120235342369f04e00b6ac26-40615324',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'alldata' => 0,
    'mydata' => 0,
    'i' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_69f04e00b8ef17_15343299',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_69f04e00b8ef17_15343299')) {function content_69f04e00b8ef17_15343299($_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="addnewPeriod"> 
                                        <i class="fa fa-plus"></i> Add</button>
                                </div>
                                <div class="col-md-12">
                                    <table cellspacing="10" width="100%" class="rtl" >
                                        <thead>
                                            <tr>
                                                <th class="wds35 txtc">اسم الفترة</th>
                                                <th class="wds40 txtc">التوقيت </th>
                                                <th class="wds15 txtc">الحد الأقصى</th>
                                                <th class="wds10"></th>
                                            </tr>
                                        </thead>
                                        <tbody id="editTableP">
                                            <?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 newitemP" 
                                                           data-id="<?php echo $_smarty_tpl->tpl_vars['mydata']->value['id'];?>
"  data-tableName="visit_periods"
                                                           data-colName="name"   value='<?php echo $_smarty_tpl->tpl_vars['mydata']->value['name'];?>
'>
                                                </td>
                                                <td>
                                                    <input type="text" class="form-control newitemP" 
                                                           data-id="<?php echo $_smarty_tpl->tpl_vars['mydata']->value['id'];?>
"  data-tableName="visit_periods"
                                                           data-colName="timing"   value='<?php echo $_smarty_tpl->tpl_vars['mydata']->value['timing'];?>
'>
                                                </td>
                                                <td>
                                                    <input type="text" class="form-control newitemP positiveNo" 
                                                           data-id="<?php echo $_smarty_tpl->tpl_vars['mydata']->value['id'];?>
"  data-tableName="visit_periods"
                                                           data-colName="max_no"   value='<?php echo $_smarty_tpl->tpl_vars['mydata']->value['max_no'];?>
'>
                                                </td>
                                                <td>
                                                    <a href="#" class="btn btn-xs red fleft deleteModalP wds100" 
                                                       data-id="<?php echo $_smarty_tpl->tpl_vars['mydata']->value['id'];?>
"   data-tableName="visit_periods"  >
                                                        <i class="fa fa-times" ></i>
                                                    </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 } ?>
                                        </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>
    $(".positiveNo").forcepositiveNum();

</script>


<?php }} ?>