<?php /* Smarty version Smarty-3.1.11, created on 2024-08-26 07:28:04
         compiled from "../views/obgy/searchresult.html" */ ?>
<?php /*%%SmartyHeaderCode:119367444866cc90f4543b90-73549944%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'b5bfb180483c8e3cef4270ce3ee97542ec615c86' => 
    array (
      0 => '../views/obgy/searchresult.html',
      1 => 1624479388,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '119367444866cc90f4543b90-73549944',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'patientResult' => 0,
    'programesetting' => 0,
    'row' => 0,
    'pSetting' => 0,
    'hosturl' => 0,
    'arrLinkType' => 0,
    'loginPosition' => 0,
    'isHospital' => 0,
    'withDept' => 0,
    'intIs' => 0,
    'searchValue' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_66cc90f45b7420_77424151',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_66cc90f45b7420_77424151')) {function content_66cc90f45b7420_77424151($_smarty_tpl) {?><table class="table table-striped table-hover rtl" style=" width: 970px; font-size: 17px;">
    <?php if (!empty($_smarty_tpl->tpl_vars['patientResult']->value)){?>
    <tr>
        <!--<th>#</th>-->
        <th style=" width: 2%; ">رقم</th>
        <?php if ($_smarty_tpl->tpl_vars['programesetting']->value->programview==1){?> 
        <th>اسم المريضة</th>
        <th style=" width: 22%; ">اسم الزوج</th>
        <?php }else{ ?>
        <th>اسم المريض</th>
        <?php }?>

        <th style=" width: 27%; ">العنوان</th>
        <th style=" width: 20%; ">الهاتف</th>

    </tr>
    <tbody>
        <?php  $_smarty_tpl->tpl_vars['row'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['row']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['patientResult']->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>
            <!--<td><?php echo $_smarty_tpl->tpl_vars['row']->value['id'];?>
</td>-->

            <td><?php echo $_smarty_tpl->tpl_vars['row']->value['statusno'];?>
</td>
            <td  class="bold txtr">
                <?php if ($_smarty_tpl->tpl_vars['pSetting']->value->simpleview==1){?>
                <a class="bluex" href="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/controllers/<?php if (empty($_smarty_tpl->tpl_vars['arrLinkType']->value[$_smarty_tpl->tpl_vars['row']->value['id']])){?>patienthistory.php?ac=show&<?php }else{ ?><?php echo $_smarty_tpl->tpl_vars['arrLinkType']->value[$_smarty_tpl->tpl_vars['row']->value['id']];?>
.php?ac=index&<?php }?>patientid=<?php echo $_smarty_tpl->tpl_vars['row']->value['id'];?>
"><?php echo $_smarty_tpl->tpl_vars['row']->value['wifename'];?>
</a>
                <?php }else{ ?>
                <?php if ($_smarty_tpl->tpl_vars['loginPosition']->value==3){?>
                <a class="bluex" href="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/controllers/patients.php?ac=edit&id=<?php echo $_smarty_tpl->tpl_vars['row']->value['id'];?>
&patientid=<?php echo $_smarty_tpl->tpl_vars['row']->value['id'];?>
"><?php echo $_smarty_tpl->tpl_vars['row']->value['wifename'];?>
</a>
                <?php }else{ ?>
                <a class="bluex" href="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/controllers/<?php if (empty($_smarty_tpl->tpl_vars['arrLinkType']->value[$_smarty_tpl->tpl_vars['row']->value['id']])){?>patienthistory.php?ac=show&<?php }else{ ?><?php echo $_smarty_tpl->tpl_vars['arrLinkType']->value[$_smarty_tpl->tpl_vars['row']->value['id']];?>
.php?ac=index&<?php }?>patientid=<?php echo $_smarty_tpl->tpl_vars['row']->value['id'];?>
"><?php echo $_smarty_tpl->tpl_vars['row']->value['wifename'];?>
</a>
                <?php }?>
                <?php }?>
            </td>
            <?php if ($_smarty_tpl->tpl_vars['programesetting']->value->programview==1){?> 
            <td class="txtr"><?php echo $_smarty_tpl->tpl_vars['row']->value['husdandname'];?>
</td>
            <?php }?>

            <td><?php echo $_smarty_tpl->tpl_vars['row']->value['address'];?>
</td>
            <td><?php echo $_smarty_tpl->tpl_vars['row']->value['phone'];?>
</td>
        </tr>
        <?php } ?>
        <?php }else{ ?>

        <?php if ($_smarty_tpl->tpl_vars['isHospital']->value==1&&$_smarty_tpl->tpl_vars['withDept']->value!=1){?>
    <h2  style="text-align: center;color: red; font-weight: bold">
        <a href="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/controllers/patients.php?intIs=<?php echo $_smarty_tpl->tpl_vars['intIs']->value;?>
&searchValue=<?php echo $_smarty_tpl->tpl_vars['searchValue']->value;?>
"   style="background-color: #E60017 ; color: white ;border-radius: 110px; font-size: 20px;"
           id="addregnew1" data-id="2" data-itr="1" class="btn btn-default">إضافة</a>
        لا يوجد بيانات  متاحة
    </h2>

    <?php }else{ ?>
    <h2 style="text-align: center;color: red;"> No Data Available Now.</h2>
    <?php }?>



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