UnknownSec Bypass
403
:
/
var
/
www
/
zenithentcare
/
stmedicosoftware
/ [
drwxrwxr-x
]
Menu
Upload
Mass depes
Mass delete
Terminal
Info server
About
name :
print_procedure.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="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="logoimage/logoclinic.jpg" id="logoimg" name="logoimg" alt="" style="width: 150px; height:75px" /> </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">Money Receipt</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">Voucher No. :</label> <label id="voucherno" name="voucherno"></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> <tr> <td> <label id="title10" name="title10">Referedby: </label> <label id="referedby" name="referedby"> </label> </td> </tr> </table> </br> <?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) { ?> <table width="100%""> <thead> <tr> <th width=" 20%">SNo.</th> <th width="20%">Charge Name</th> <th width="20%">Qty</th> <th width="20%">Rate</th> <th width="20%">Amount</th> </tr> </thead> <tbody> <?php while ($row = mysqli_fetch_assoc($result)) { ?> <tr> <td width="20%"><?php echo $row['sno']; ?> </td> <td width="20%"><?php echo $row['subtestname']; ?> </td> <td width="20%"> <?php echo $row['qty']; ?> </td> <td width="20%"> <?php echo $row['rate']; ?> </td> <td width="20%"> <?php echo $row['totalamount']; ?> </td> </tr> <?php } } ?> </tbody> </table> <table width="100%"> <tr> <td width="75%"> <label id="lblpaymentmode" name="lblpaymentmode">payment mode :</label> <label id="lblbank" name="lblbank">Bank :</label> <label id="lbltransactionno" name="lbltransactionno">Transaction no :</label> </td> <td width="25%"> <label id="title9" name="title9">Total Amt :</label> <label id="lblTotalAmount" name="lblTotalAmount">Total Amt :</label> </td> <tr> <tr> <td width="75%"> <label id="lblAmountinwords" name="lblAmountinwords">Amount in words :</label> </td> <td width="25%"> <label id="title9" name="title9">Discount :</label> <label id="lbldiscount" name="lbldiscount">Discount :</label> </td> <tr> <tr> <td width="75%"> </td> <td width="25%"> <label id="title9" name="title9">Receive Amt :</label> <label id="lblReceiveamt" name="lblReceiveamt">Receive Amt :</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> <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; } 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; } $(document).ready(function() { gethospitaldetails(); var id = getUrlVars()['id']; getbilldetails(id) }); </script> <?php include "footer.php";?>
Copyright © 2025 - UnknownSec