    <div class="row">
       <?php
       $query_claim = "select * from requisition_order_details where purchase_order_no='$purchase_id' 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);

       $sql = mysql_query("SELECT order_status FROM requisition_orders WHERE purchase_order_no = '$purchase_id'", $courier) or die(mysql_error());
       $patient_row = mysql_fetch_assoc($sql);?>
       
       <div class="portlet light">
        <div class="portlet-title">
            <div class="caption">
                <span class="caption-subject bold uppercase font-dark"> LIST OF ITEMS </span>
            </div>
            <div class="actions uppercase bold" style="color: blue;">
                <b style="color:<?php if($patient_row['order_status']=='Unapproved'||$patient_row['order_status']=='Not Saved'){echo 'red;';}else{ echo 'green;';} ?>;"> Status: <?php echo $patient_row['order_status']; ?> </b>
            </div>
        </div>
        <div class="portlet-body form">
            <div class="row" style="height: 315px;overflow-y: scroll;overflow-x: hidden;">
                <div class="col-lg-12 col-md-12 col-xs-12 col-sm-12">
                    <table width="100%" border="0" align="center" cellpadding="1" cellspacing="1" class="table table-bordered">
                        <thead>
                            <tr>
                                <th class="count">Item</th>
                                <th style="text-align: right">Quantity Requested</th>
                                <th style="text-align: center"> Action </th>
                            </tr>
                        </thead>
                        <tbody>
                            <?php if ($totalRows_rsclaim > 0) { ?>   
                                <?php
                                do {
                                    $i = $i + 1;
                                    ?>
                                    <tr>
                                        <td><?php echo strtoupper($row_rsclaim['item']); ?></td>
                                        <td style="text-align: right"><input type="number" id="itemqty<?php echo $row_rsclaim['id']; ?>" name="itemqty<?php echo $row_rsclaim['id']; ?>" style="width:50px;" min="1" value="<?php echo $row_rsclaim['qty_expected']; ?>" onChange="searchItemsName('updateqty_requisition_order_details','#view_items_response_wrapper_2',<?php echo $row_rsclaim['id']; ?>,'no_field',this.value);"></td>
                                        <td style="text-align: center"><span style="font-weight:bold;"> 
                                            <span style="color:blue;cursor: pointer" href="#" onclick="searchItemsName('up_requisition_order_details','#view_items_response_wrapper_2',<?php echo $row_rsclaim['id']; ?>,'no_field');"><i class="fa fa-plus"></i></span>
                                            | <span style="color:blue;cursor: pointer" href="#" onclick="searchItemsName('down_requisition_order_details','#view_items_response_wrapper_2',<?php echo $row_rsclaim['id']; ?>,'no_field');"><i class="fa fa-minus"></i></span>
                                            | <span style="color:red;;cursor: pointer" href="#" onclick="delInformtion('del_requisition_order_details', '#view_items_response_wrapper_2', '<?php echo $row_rsclaim['id']; ?>', '<?php echo strtoupper($row_rsclaim['item']); ?> ?', 'You are about to Delete <?php echo strtoupper($row_rsclaim['item']); ?> from this Purchase Order.', '<?php echo strtoupper($row_rsclaim['item']); ?> Deleted Successfully !');"> <i id="trash_<?php echo $row_rsclaim['id']; ?>" class="icon-trash"></i> <i style="display: none;" id="spin_refresh_<?php echo $row_rsclaim['id']; ?>" class="fa fa-refresh fa-spin fa-fw"></i>  </span>
                                        </span>
                                    </td>
                                </tr>
                            <?php } while ($row_rsclaim = mysql_fetch_assoc($rsclaim)); ?>
                        <?php } else {
                            echo '<tr><td colspan="7" style="color:red;"><div class="none">No Items Found. Search Items to Add to Purchase Order.</div></td></tr>';
                        } ?>
                    </tbody>
                </table> 
            </div>
        </div>
    </div>
</div>
</div>