%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 Suggestions/Feedback</li> </ol> <?php $from_date = date("Y-m-d", strtotime("$end_date -10 days")); $to_date = date('Y-m-d'); ?> <!-- 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 Suggestions/Feedback</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"> <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/managesuggestions')?>" 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="dataTable" width="100%" cellspacing="0"> <thead> <tr> <th>Sr. No.</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>Pat Type</th> <th>Date</th> <th>Suggestions</th> <th>Recommend</th> <th>Reason(In Any)</th> <th>Language</th> </tr> </thead> <?php if(count($recordsArray)>0) { $cnt=1; foreach($recordsArray as $row) { ?> <tr> <td><?php echo htmlentities($cnt);?></td> <td><?php echo $row['bill_number']!='' ? $row['bill_number'] : $row['ip_number']; ?> <br/><strong>Slag No:</strong> <?php echo $row['slag_id']; ?></td> <td><?php echo $row['patient_name']; ?><br/>UHID:<?=$row['UHID']?><br/>Mob:<?=$row['contact_number']?></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['pat_type']; ?></td> <td><?php echo $row['othcreatedon']!='' ? $row['othcreatedon'] : htmlentities($row['othcreatedon']); ?></td> <td><?php echo $row['suggestion']; ?></td> <td><?php echo $row['recommedation']=='1' ? 'Yes' : 'No'; ?></td> <td><?php echo $row['reason_if_no']; ?></td> <td><?php echo $row['lang_mode']=='2' ? 'Hindi' : 'Eng'; ?></td> </tr> <?php $cnt++; } } else { ?> <tr> <td>No record found</td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> </tr> <?php } ?> <tbody> </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> <script> $(document).ready(function() { $('#dataTable').DataTable({ "pageLength": 10, // Set the number of entries per page to 500 "lengthMenu": [ 10, 25, 50, 100, 200, 400 , 500 ], // Options for entries per page }); }); 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('dataTable'); var ctx = { worksheet: name || 'Worksheet', table: table.innerHTML } window.location.href = uri + base64(format(template, ctx)) } })() </script>