<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>
                              <th rowspan="2" > الطبيب المعالج  </th>
                              {if $organizations != 1 }   <th rowspan="2" > الجهة    </th>   {/if}
                              <th rowspan="2" > الحالة  </th>
                              <th colspan="4"> مكان المريض  </th>
                           </tr>

                           <tr>
                              <th> التحضير </th>
                              <th> القسطرة </th>
                              <th> عناية مركزة     </th>
                              <th> خروج   </th>
                           </tr>
                        </thead>
                        <tbody id="casesOpContainer">
                           {assign var="i" value="1"}
                           {foreach $operations as $data}
                           <tr>  
                              <td>{$i}</td>
                              <td>{if $data.for_husband == 1 }{$data.husdandname} {else} {$data.wifename}{/if}</td>
                              <td> {$data.visitdate}</td>
                              <td> {$data.doctorName}  </td>
                              {if $organizations != 1 }   <td> {$data.organizationName}  </td>   {/if}
                              <td>  {$data.type}</td>

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

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

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

                              <td {if $data.place== 4  } style="background-color: #83a3e4 ;"  {/if}>
                                  {if $data.place== 4  }
                                 <input type="checkbox"     checked disabled >
                                 {/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=casesOpReload', function (res) {
                if (res != -1) {
                    $("#casesOpContainer").html('');
                    $("#casesOpContainer").html(res);
                }
            });
        }, 30000);
</script>
{/literal}
