%PDF- <> %âãÏÓ endobj 2 0 obj <> endobj 3 0 obj <>/ExtGState<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI] >>/Annots[ 28 0 R 29 0 R] /MediaBox[ 0 0 595.5 842.25] /Contents 4 0 R/Group<>/Tabs/S>> endobj ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<> endobj 2 0 obj<>endobj 2 0 obj<>es 3 0 R>> endobj 2 0 obj<> ox[ 0.000000 0.000000 609.600000 935.600000]/Fi endobj 3 0 obj<> endobj 7 1 obj<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]>>/Subtype/Form>> stream
<div id="content-wrapper"> <div class="container-fluid"> <!-- Breadcrumbs--> <ol class="breadcrumb"> <li class="breadcrumb-item"> <a href="<?php echo site_url('admin/dashboard'); ?>">Dashboard</a> </li> <li class="breadcrumb-item active">Patient Feedback report</li> </ol> <!-- DataTables Example --> <div class="card mb-3 fomr-news" > <div class="card-header card-header-new"> <h3><i class="fa fa-calendar-alt"></i>Patient Feedback Report</h3> <!--<a type="button" id="printButton" onclick="print()" class="btn button2">Print</a>--> <button style="float:right;" class="btn button2" onclick="tableToExcel('#divId', 'Excel Report')">Excel</Button> </div> </div> <div class="card-body"> <div class="main-chart"> <div class="wrapper"> <form method="GET" name="custom_search" action=""> <div class="row"> <?php $from_date = date("Y-m-d", strtotime("$end_date -10 days")); $to_date = date('Y-m-d'); ?> <div class="col-md-3"> <div class="coarform"> <label>From Date</label> <input type="date" name="search_fromdate" id="search_fromdate" value="<?=$_GET['search_fromdate']!=''? $_GET['search_fromdate'] : $from_date?>" class="form-control" /> </div> </div> <div class="col-md-3"> <div class="coarform"> <label>To Date</label> <input type="date" name="search_todate" id="search_todate" value="<?=$_GET['search_todate']!='' ? $_GET['search_todate'] : $to_date?>" class="form-control" /> </div> </div> <div class="col-md-2"> <div class="coarform"> <label>Patient Type</label> <select name="search_for" id="search_for" class="form-control"> <option value=''>Select Patient Type</option> <option value='2' <?php if($_GET['search_for']=='2') { echo 'selected'; }?>>IP Patient</option> <option value='1' <?php if($_GET['search_for']=='1') { echo 'selected'; }?>>OP Patient</option> </select> </div> </div> <div class="col-md-4"> <div class="coarform"> <label style="display:block;"><br/></label> <input type="submit" class="button2" name="submit" id="submit" value="Search" /> <a href="<?=base_url('admin/feedbackreport')?>" class="button3">Reset </a> </div> </div> </div> </form> </div> </div> </div> <style> .scrollit { overflow:scroll; height:auto; } </style> <div class="card-body"> <div class="table-responsive scrollit"> <!---- Success Message ----> <?php if ($this->session->flashdata('success')) { ?> <p style="color:green; font-size:18px;"><?php echo $this->session->flashdata('success'); ?></p> </div> <?php } ?> <table class="table table-bordered feedback-report" id="myTable" width="100%" cellspacing="0"> <thead> <tr> <th style="text-middle-align:center;">SR No.</th> <th>Slag Id</th> <?php if($_GET['search_for']=='2'){?> <th>IP Number</th> <?php } else { ?> <th>Bill Number</th> <?php } ?> <th>Patient Name</th> <th>Department</th> <th>Billed Date</th> <th>Doctor Name</th> <th>UHID</th> <th>Contact Number</th> <th>Pat Type</th> <?php foreach($categoryDetails as $crow){ ?> <th> <table class="table" width="100%" cellspacing="0" style="border: 1px dashed #f69c55;"> <tr> <td colspan="2" style="text-align:center;"><strong ><?=$crow['checklist']?></strong></td> </tr> <tr> <?php foreach($questionsArray[$crow['id']] as $qrow) { ?> <td style="text-align:center;"><?=$qrow['title']?></td> <?php } ?> </tr> </table> </th> <?php } ?> </tr> </thead> <tbody> <?php $k=1; foreach($recordsArray as $row){ ?> <tr> <td><?php echo $k; ?></td> <td><?php echo $row['slag_id']; ?></td> <td><?php echo $row['bill_number']!='' ? $row['bill_number'] : $row['ip_number']; ?></td> <td><?php echo $row['patient_name']; ?></td> <td><?php echo $row['department']; ?></td> <td><?php echo $row['billed_date']; ?></td> <td><?php echo $row['doctor_name']; ?></td> <td><?php echo $row['UHID']; ?></td> <td><?php echo $row['contact_number']; ?></td> <td><?php echo $row['pat_type']; ?></td> <?php foreach($categoryDetails as $crow){ ?> <td> <table class="table" width="100%" cellspacing="0"> <tr> <?php foreach($questionsArray[$crow['id']] as $qrow) {?> <td><?php echo $finalratingsArray[$row['slag_id']][$qrow['id']]; ?></td> <?php } ?> </tr> </table> </td> <?php } ?> </tr> <?php $k++; } ?> </tbody> </table> </div> </div> </div> </div> <script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/2.5.1/jspdf.umd.min.js "></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/html2canvas/1.4.1/html2canvas.min.js"></script> <link rel="stylesheet" type="text/css" href="//cdn.datatables.net/1.10.12/css/jquery.dataTables.min.css" /> <script src="//cdn.datatables.net/1.10.12/js/jquery.dataTables.min.js"></script> <script> $('#myTable').dataTable({ aLengthMenu: [ [25, 50, 100, 200, -1], [25, 50, 100, 200, "All"] ], iDisplayLength: -1 }); window.jsPDF = window.jspdf.jsPDF; var docPDF = new jsPDF(); function print(){ var elementHTML = document.querySelector(".feedback-report"); docPDF.html(elementHTML, { callback: function(docPDF) { docPDF.save('Feedback-Report.pdf'); }, x: 10, y: 10, width: 155, windowWidth: 860 }); } </script> <script> var tableToExcel = (function () { var uri = 'data:application/vnd.ms-excel;base64,' , template = '<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40"><head><!--[if gte mso 9]><xml><x:ExcelWorkbook><x:ExcelWorksheets><x:ExcelWorksheet><x:Name>{worksheet}</x:Name><x:WorksheetOptions><x:DisplayGridlines/></x:WorksheetOptions></x:ExcelWorksheet></x:ExcelWorksheets></x:ExcelWorkbook></xml><![endif]--></head><body><table>{table}</table></body></html>' , base64 = function (s) { return window.btoa(unescape(encodeURIComponent(s))) } , format = function (s, c) { return s.replace(/{(\w+)}/g, function (m, p) { return c[p]; }) } return function (table, name) { if (!table.nodeType) table = document.getElementById('myTable'); var ctx = { worksheet: name || 'Worksheet', table: table.innerHTML } window.location.href = uri + base64(format(template, ctx)) } })() </script>