<div id="claim_response">
<?php
//if($_SESSION['area_specialisation'] == 'DENTIST'){
// $servicetype = 'Dental'; 
// $headings = "Tooth";
// $field = 'toothnos';
//}
//else if($_SESSION['area_specialisation'] == 'OPTICIAN'){
 $servicetype= 'Optical'; 
 $headings = "Eye";
 $field = 'eye_optical';
//}else{
// $servicetype= 'Medical';   
//}

$query_claim="select * from claims_details where process_claim_no='$process_claim_no' and item_service='$servicetype' order by id desc;";

$rsclaim=mysql_query($query_claim, $courier) or die(mysql_error());
$row_rsclaim = mysql_fetch_assoc($rsclaim);
$totalRows_rsclaim = mysql_num_rows($rsclaim); ?>                                              
             
<div class="task-content task-list">
                                        <div class="row">
                        <div class="col-md-12">
                                <div class="portlet-body flip-scroll">
                                    <table class="table table-striped table-hover flip-content">
                                        <thead class="flip-content">
                                            <tr>
                                                <th> Procedure Name </th>
                                                <?php if($servicetype=='Dental'||$servicetype== 'Optical') { ?>
                                                <th> <?php echo $headings;?> </th>
                                                <?php } ?>
                                                <th> Auth </th>
                                                <th style="text-align: center;"> Action </th>
                                            </tr>
                                        </thead>
                                    <tbody> 
                                                <tbody>
                                                <?php if ($totalRows_rsclaim> 0) { ?>   
                                                    <?php
                                                    do {
                                                        $i = $i + 1;
                                                        ?>
                                                        <tr>
                                                          <td><?php echo strtoupper($row_rsclaim['item']); ?></td>
                                                          <?php if($servicetype=='Dental'||$servicetype== 'Optical') { ?>
                                                          <td>
                                                             <?php if($servicetype=='Dental') { ?>
                                                              <input onchange="searchItemsName('update_medical_procedure_details','#claimsno_medical_procedures','<?php echo $row_rsclaim['id'];?>','<?php echo $field; ?>',this.value);" style="width:50px;text-align: right" type="text" name="tooth_no" value="<?php echo $row_rsclaim[$field];?>">
                                                             <?php } ?>
                                                             <?php if($servicetype=='Optical') { ?>
                                                              <select onchange="searchItemsName('update_medical_procedure_details','#claimsno_medical_procedures','<?php echo $row_rsclaim['id'];?>','<?php echo $field; ?>',this.value);" style="width:100px;text-align: right" type="text">
                                                                  <option value="">Select One</option>
                                                                  <option <?php if($row_rsclaim[$field] == 'Right'){echo 'selected=""';}?> value="Right">RIGHT</option>
                                                                  <option <?php if($row_rsclaim[$field] == 'Left'){echo 'selected=""';}?> value="Left">LEFT</option>
                                                                  <option <?php if($row_rsclaim[$field] == 'Both'){echo 'selected=""';}?> value="Both">BOTH</option>
                                                              </select>
                                                             <?php } ?>
                                                          </td>
                                                          <?php } ?>
                                                          <td></td>
                                                          <td style="color: red;text-align: center;">
                                                              <i id="trash_<?php echo $row_rsclaim['id']; ?>" class="icon-trash" onclick="delInformtion('del_medical_procedure_details','#claimsno_medical_procedures','<?php echo $row_rsclaim['id']; ?>','<?php echo strtoupper($row_rsclaim['item']); ?> ?', 'You are about to Delete <?php echo strtoupper($row_rsclaim['item']); ?> from this Patient.', '<?php echo strtoupper($row_rsclaim['item']); ?> Deleted Successfully !');" style="cursor: pointer;"></i>
                                                              <i style="display: none;" id="spin_refresh_<?php echo $row_rsclaim['id']; ?>" class="fa fa-refresh fa-spin fa-fw"></i>
                                                          </td>
                                                          
                   </tr>
                  <?php }  while ($row_rsclaim = mysql_fetch_assoc($rsclaim)); ?>
                  <?php }else{echo '<tr><td colspan="9" style="background: linen"><div class="none">No Procedure Found.</div></td></tr>';}?>
                  </tbody>
                </table> 
</div>                                
</div>
</div>
</div>
</div>