<div class="page-content-wrapper">
   <div class="page-content">
      <div class="row">
         <div class="col-md-12">
            <!-- BEGIN EXAMPLE TABLE PORTLET-->
            <div class="portlet box blue">
               <div class="portlet-title">
                  <div class="caption">
                     <i class="fa fa-users"></i>Cases  Screen
                  </div>
               </div>
               <div class="portlet-body all">
                  <div class="row">
                     <div>
                              <h3 class="text-center bold" style="direction: rtl;"> عيادة  مركز جلوري لقسطرة القلب</h3>
                              <h3 class="text-center bold" style="direction: rtl;">  عن يوم   {$dayName}  الموافق  {$dayDate} </h3>
                           </div>


                           <table class="table table-hover portlet light bg-inverse wds100 rtl" id="repTable" style="text-align: center;">
                              <thead>
                                 <tr>
                                    <th rowspan="2" > م </th>
                                    <th rowspan="2" > اسم الحالة </th>
                                    <th rowspan="2" > الطبيب المعالج  </th>
                                    {if $organizations != 1 }   <th rowspan="2" > الجهة    </th>   {/if}
                                    <th colspan="6"> الإجراء   </th>
                                 </tr>

                                 <tr>
                                    <th> كشف </th>
                                    <th> رسم قلب </th>
                                    <th>  رسم قلب بالمجهود     </th>
                                    <th> ايكو   </th>
                                    <th> ايكو بالمجهود   </th>
                                    <th> مغادرة   </th>
                                 </tr>
                              </thead>
                              <tbody id="casesOpContainer">
                                 {assign var="i" value="1"}
                                 {foreach $clinics as $data}
                                 <tr>  
                                    <td>{$i}</td>
                                    <td>{if $data.for_husband == 1 }{$data.husdandname} {else} {$data.wifename}{/if}</td>
                                    <td> {$data.doctorName}  </td>
                                    {if $organizations != 1 }   <td> {$data.organizationName}  </td>   {/if}

                                    <td {if $data.detectionid== 2 || $data.detectionid== 3  }  style="background-color: #ffb87d ;" {/if}>
                                        {if $data.detectionid == 2 || $data.detectionid == 3 }
                                        <input type="checkbox"     checked disabled >
                                       {/if}
                                    </td>

                                    <td {if $data.detectionid== 7  }  style="background-color: #c2e49f ;" {/if}>
                                        {if $data.detectionid== 7  }
                                        <input type="checkbox"     checked disabled >
                                       {/if}
                                    </td>

                                    <td {if $data.detectionid== 8  } style="background-color: #892727 ;" {/if}>
                                        {if $data.detectionid== 8  }
                                        <input type="checkbox"     checked disabled >
                                       {/if}
                                    </td>

                                    <td {if $data.detectionid== 9  } style="background-color: #83a3e4 ;"  {/if}>
                                        {if $data.detectionid== 9  }
                                        <input type="checkbox"     checked disabled >
                                       {/if}
                                    </td>

                                    <td {if $data.detectionid== 11  } style="background-color: #8775a7 ;"  {/if}>
                                        {if $data.detectionid== 11  }
                                        <input type="checkbox"     checked disabled >
                                       {/if}
                                    </td>

                                    <td {if $data.leave== 1  } style="background-color: #dce254 ;"  {/if}> </td>
                                 </tr>
                                 {assign var="i" value={$i+1}}
                                 {/foreach}

                              </tbody>
                           </table>
                        </div>
                     </div>

               <div class="clearfix"></div>

            </div>
         </div>
      </div>
   </div>
</div>

<div class="clearfix"></div>
<div id="financialPrint"></div>



{literal}
<script type="text/javascript" >
   setInterval(function () {
      $.post(hosturl + '/controllers/operationreport.php?ac=casesClinicReload', function (res) {
         if (res != -1) {
            $("#casesOpContainer").html('');
            $("#casesOpContainer").html(res);
         }
      });
   }, 30000);
</script>
{/literal}
