HOME


sh-3ll 1.0
DIR:/proc/self/cwd/application/views/report/report_pages/
Upload File :
Current File : //proc/self/cwd/application/views/report/report_pages/testReport.php
 <div class="container-fluid">
    <!-- ============================================================== -->
    <!-- Start Page Content -->
    <!-- ============================================================== -->
    <div class="row">
        <div class="col-md-12">
            <button type="button" class="btn btn-info" onclick="printReport()" style="overflow: hidden">Print</button>
            <div class="card card-body" id="printableArea">
                <h3 class="text-center"><?php echo $report_head?></h3>
                <h6 class="text-center">Report of: <?php echo $report_date?> | Result Type: <?php echo $result_type?></h6>
                <hr class="report_title_hr">
                <div class="row">
                    <div class="col-md-12">
                        <table class="table table-bordered custom_report_table">
                            <thead>
                                <tr class="text-center">
                                    <th width="3%">#</th>
                                    <th width="7%">Test Date</th>
                                    <th width="7%">Test Type</th>
                                    <th width="4%">Patient No</th>
                                    <th width="20%">Patient Name</th>
                                    <th width="6%">Gender</th>
                                    <th width="8%">E-mail</th>
                                    <th width="5%">Mobile</th>
                                    <th width="10%">Address</th>
                                    <th width="5%">Result</th>
                                    <th width="5%">Confirmed Case</th>
                                    <th width="5%">Speciment</th>
                                    <th width="5%">Self Isolation Recomanded</th>
                                    <th width="10%">PCR-Test</th>
                                    <th width="5%">Re-Test</th>
                                    <th width="5%">Re-Test Date</th>
                                </tr>
                            </thead>
                            <tbody>
                                <?php
                                    if($report){
                                        $i=1;
                                        foreach ($report as $data) {
                                            
                                            if($data['retest']=='No'){
                                                $retest_date='N/A';
                                            }
                                            else{
                                                $retest_date=$data['retest_date'];
                                            }
                                                ?>
                                                    <tr class="text-center">
                                                        <td><?php echo $i;?></td>
                                                        <td><?php echo $data['test_date'];?></td>
                                                        <td><?php echo $data['test_type'];?></td>
                                                        <td><?php echo $data['patient_tracking_no'];?></td>
                                                        <td><?php echo $data['name'];?></td>
                                                        <td><?php echo $data['gender'];?></td>
                                                        <td><?php echo $data['email'];?></td>
                                                        <td><?php echo $data['contact_no'];?></td>
                                                        <td><?php echo $data['address'];?></td>
                                                        <td><?php echo $data['result'];?></td>
                                                        <td><?php echo $data['confirmed_case'];?></td>
                                                        <td><?php echo $data['specimen'];?></td>
                                                        <td><?php echo $data['self_isolation_recomanded'];?></td>
                                                        <td><?php echo $data['rt_pcr'];?></td>
                                                        <td><?php echo $data['retest'];?></td>
                                                        <td><?php echo $retest_date;?></td>
                                                    </tr>
                                                <?php
                                            $i++;
                                        }
                                    }
                                    else{
                                        ?>
                                        <tr>
                                            <td colspan="15" class="text-center">There is no test data for: <strong><?php echo $report_date?></strong> | Result Type: <strong><?php echo $result_type?></strong></td>
                                        </tr>
                                        <?php
                                    }
                                ?>
                                
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>