<?php /* Smarty version Smarty-3.1.11, created on 2025-06-29 11:30:16
         compiled from "../views/obgy/patients/siglemodeltodelete/wifetypes.html" */ ?>
<?php /*%%SmartyHeaderCode:17018060766860f998539766-66594103%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '88ad384f9cc8eb4acfb03b05fad623bd795db5f9' => 
    array (
      0 => '../views/obgy/patients/siglemodeltodelete/wifetypes.html',
      1 => 1477471866,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '17018060766860f998539766-66594103',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'allWifeTypes' => 0,
    'row' => 0,
    'i' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_6860f9985bd245_11265366',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_6860f9985bd245_11265366')) {function content_6860f9985bd245_11265366($_smarty_tpl) {?>

<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"> صفة الزوجة </h4>
        </div>
        <div class="modal-body">
            <div class="portlet-body form">
                <input type="hidden" id="controllName" value="111"/>
                <button type="button" class="btn btn-xs blue fright addwtRow" id="addwtRow" data-selectClass="wTypes" data-fun="delwifetype" data-tableName="wifetypes"><i class="fa fa-plus"></i> إضافة</button></td>
                <table cellspacing="10" width="100%" id="ptAddTbl" class="ptAddTbl">
                    <thead>
                        <tr >
                            <th class="">حذف</th>
                            <th class="textcenter"><center>الصفة</center></th>

                    </tr>
                    </thead>
                    <tbody id="loaddetectionnew">
                    <input type="hidden" id="dtcount" value="<?php echo count($_smarty_tpl->tpl_vars['allWifeTypes']->value);?>
">
                    <?php $_smarty_tpl->tpl_vars['i'] = new Smarty_variable(1, null, 0);?>
                    <?php  $_smarty_tpl->tpl_vars['row'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['row']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['allWifeTypes']->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;
?>                    
                    <tr class="textcenter" >

                        <td>
                            <a class="deleteelement fa fa-times btn red fleft"  data-selectClass="wTypes"  data-select2="yes" data-id="<?php echo $_smarty_tpl->tpl_vars['row']->value->id;?>
" data-link="patients"  data-fun="delwifetype"></a>
                        </td>
                        <td style="width: 100%">
                            <input type="text" class="form-control updateElementSelect" data-selectClass="wTypes"  data-select2="yes" data-id="<?php echo $_smarty_tpl->tpl_vars['row']->value->id;?>
" data-colName="title" data-tableName="wifetypes" value="<?php echo $_smarty_tpl->tpl_vars['row']->value->title;?>
"/>
                        </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" class="btn default" data-dismiss="modal">إغلاق</button>
        </div>
        <!-- /.modal-content -->
    </div>
</div>
<?php }} ?>