<?php /* Smarty version Smarty-3.1.11, created on 2024-08-15 15:23:32
         compiled from "../views/obgy/searchresult.html" */ ?>
<?php /*%%SmartyHeaderCode:213376371966bdf34489b080-77106179%%*/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 => 1672818872,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '213376371966bdf34489b080-77106179',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'patientResult' => 0,
    'pSetting' => 0,
    'row' => 0,
    'hosturl' => 0,
    'isHospital' => 0,
    'withDept' => 0,
    'intIs' => 0,
    'searchValue' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_66bdf3449429f9_89133088',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_66bdf3449429f9_89133088')) {function content_66bdf3449429f9_89133088($_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>
        <th>اسم الحالة</th>
        <?php if ($_smarty_tpl->tpl_vars['pSetting']->value->system_lang!=2){?> 
        <th style=" width: 18%; ">اسم الزوج</th>
        <?php }?>
        <th style=" width: 20%; ">الطبيب المعالج1</th>
        <th style=" width: 20%; ">رقم التليفون</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  <?php if ($_smarty_tpl->tpl_vars['row']->value['status']==1){?> class="suspendedTr"  <?php }?>>
            <!--<td><?php echo $_smarty_tpl->tpl_vars['row']->value['id'];?>
</td>-->

            <td>
                <?php if ($_smarty_tpl->tpl_vars['row']->value['status']==1||$_smarty_tpl->tpl_vars['row']->value['link']==-1||$_smarty_tpl->tpl_vars['row']->value['link']==''){?>
                <?php echo $_smarty_tpl->tpl_vars['row']->value['statusno'];?>

                <?php }else{ ?>
                <a class="bluex" href="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/controllers/<?php echo $_smarty_tpl->tpl_vars['row']->value['link'];?>
"><?php echo $_smarty_tpl->tpl_vars['row']->value['statusno'];?>
</a>
                <?php }?>
            </td>
            <td  class="bold txtr">
                <?php if ($_smarty_tpl->tpl_vars['row']->value['status']==1||$_smarty_tpl->tpl_vars['row']->value['link']==-1||$_smarty_tpl->tpl_vars['row']->value['link']==''){?>
                <?php echo $_smarty_tpl->tpl_vars['row']->value['wifename'];?>

                <?php }else{ ?>
                <a class="bluex" href="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/controllers/<?php echo $_smarty_tpl->tpl_vars['row']->value['link'];?>
"><?php echo $_smarty_tpl->tpl_vars['row']->value['wifename'];?>
</a>
                <?php }?>
            </td>

            <?php if ($_smarty_tpl->tpl_vars['pSetting']->value->system_lang!=2){?> 
            <td class="txtr">
                <?php if ($_smarty_tpl->tpl_vars['row']->value['status']==1||$_smarty_tpl->tpl_vars['row']->value['link']==-1||$_smarty_tpl->tpl_vars['row']->value['link']==''){?>
                <?php echo $_smarty_tpl->tpl_vars['row']->value['husdandname'];?>

                <?php }else{ ?>
                <a class="bluex" href="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/controllers/<?php echo $_smarty_tpl->tpl_vars['row']->value['link'];?>
"><?php echo $_smarty_tpl->tpl_vars['row']->value['husdandname'];?>
</a>
                <?php }?>
            </td>
            <?php }?>

            <td><?php if ($_smarty_tpl->tpl_vars['row']->value['doctor1']>0){?><?php echo $_smarty_tpl->tpl_vars['row']->value['d1'];?>
<?php }elseif($_smarty_tpl->tpl_vars['row']->value['h_doctor1']>0){?> <?php echo $_smarty_tpl->tpl_vars['row']->value['hd1'];?>
 <?php }else{ ?>   <?php }?> </td>
            <td><?php echo $_smarty_tpl->tpl_vars['row']->value['phone'];?>
</td>
            <td><?php echo $_smarty_tpl->tpl_vars['row']->value['address'];?>
</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 }} ?>