UnknownSec Bypass
403
:
/
var
/
www
/
zenithentcare
/
stmedicosoftware
/ [
drwxrwxr-x
]
Menu
Upload
Mass depes
Mass delete
Terminal
Info server
About
name :
get_patientletterhead_details.php
<?php require_once "config.php"; $fileno = $_POST['fileno']; $query = "SELECT * from v_patientdetails where fileno='".$fileno."' and isdeleted=0"; $result = mysqli_query($conn, $query); while($row = mysqli_fetch_array($result)) { $data["uhid"] = $row["uhid"]; $data["suhid"] = $row["suhid"]; $data["sfileno"] = $row["sfileno"]; $data["fileno"] = $row["fileno"]; $odate=date_create( $row["opddate"]); $data["opddate"]=date_format($odate,"d-m-Y"); $data["opdtime"] = $row["opdtime"]; $data["pntpre"] = $row["pntpre"]; $data["name"] = $row["name"]; $data["garpre"] = $row["garpre"]; $data["gardian"] = $row["gardian"]; $data["mobile"] = $row["mobile"]; $data["aadharno"] = $row["aadharno"]; $data["panno"] = $row["panno"]; $data["address1"] = $row["address1"]; $data["sex"] = $row["sex"]; $data["age"] = $row["agey"]; $data["pntageyrs"] = $row["pntageyrs"]; $data["depid"] = $row["departmentid"]; $data["examid"] = $row["examinedbyid"]; $data["examinedby"] = $row["examinedby"]; $data["amount"] = $row["amount"]; $data["discount"] = $row["discount"]; $data["netamount"] = $row["netamount"]; $data["receiveamt"] = $row["receiveamt"]; $data["patienttype"] = $row["patienttype"]; $data["patientnature"] = $row["patientnature"]; $data["paymentmode"] = $row["paymentmode"]; $data["chequeno"] = $row["chequeno"]; $data["bankid"] = $row["bankid"]; $edate=date_create( $row["expirydate"]); $data["expirydate"]=date_format($edate,"d-m-Y"); } $query = "SELECT * from letterheadersettingtb"; $result = mysqli_query($conn, $query); $i=1; while($row = mysqli_fetch_array($result)) { if($i==1) { $data["fieldname1"] = $row["fieldname"]; $data["htop1"] = $row["htop"]; $data["hleft1"] = $row["hleft"]; $data["hbold1"] = $row["hbold"]; $data["htitle1"] = $row["titlevisible"]; if($row["fieldname"]=="Name :") $data["fieldvalue1"]= $data["name"]; else if($row["fieldname"]=="Age :") $data["fieldvalue1"]= $data["age"].' '.$data["pntageyrs"] ; else if($row["fieldname"]=="Gender :") $data["fieldvalue1"]= $data["sex"]; else if($row["fieldname"]=="Date :") $data["fieldvalue1"]= $data["opddate"]; else if($row["fieldname"]=="UHID :") $data["fieldvalue1"]= $data["suhid"]; else if($row["fieldname"]=="OPD No :") $data["fieldvalue1"]= $data["sfileno"]; else if($row["fieldname"]=="Mobile No :") $data["fieldvalue1"]= $data["mobile"]; else if($row["fieldname"]=="Address :") $data["fieldvalue1"]= $data["address1"]; else if($row["fieldname"]=="Consultant :") $data["fieldvalue1"]= $data["examinedby"]; else if($row["fieldname"]=="Valid Up To :") $data["fieldvalue1"]= $data["expirydate"]; } else if($i==2) { $data["fieldname2"] = $row["fieldname"]; $data["htop2"] = $row["htop"]; $data["hleft2"] = $row["hleft"]; $data["hbold2"] = $row["hbold"]; $data["htitle2"] = $row["titlevisible"]; if($row["fieldname"]=="Name :") { $data["fieldvalue2"]= $data["name"]; } else if($row["fieldname"]=="Age :") { $data["fieldvalue2"]= $data["age"].' '.$data["pntageyrs"] ; } else if($row["fieldname"]=="Gender :") { $data["fieldvalue2"]= $data["sex"]; } else if($row["fieldname"]=="Date :") { $data["fieldvalue2"]= $data["opddate"]; } else if($row["fieldname"]=="UHID :") { $data["fieldvalue2"]= $data["suhid"]; } else if($row["fieldname"]=="OPD No :") { $data["fieldvalue2"]= $data["sfileno"]; } else if($row["fieldname"]=="Mobile No :") { $data["fieldvalue2"]= $data["mobile"]; } else if($row["fieldname"]=="Address :") { $data["fieldvalue2"]= $data["address1"]; } else if($row["fieldname"]=="Consultant :") { $data["fieldvalue2"]= $data["examinedby"]; } else if($row["fieldname"]=="Valid Up To :") { $data["fieldvalue2"]= $data["expirydate"]; } } else if($i==3) { $data["fieldname3"] = $row["fieldname"]; $data["htop3"] = $row["htop"]; $data["hleft3"] = $row["hleft"]; $data["hbold3"] = $row["hbold"]; $data["htitle3"] = $row["titlevisible"]; if($row["fieldname"]=="Name :") { $data["fieldvalue3"]= $data["name"]; } else if($row["fieldname"]=="Age :") { $data["fieldvalue3"]= $data["age"].' '.$data["pntageyrs"] ; } else if($row["fieldname"]=="Gender :") { $data["fieldvalue3"]= $data["sex"]; } else if($row["fieldname"]=="Date :") { $data["fieldvalue3"]= $data["opddate"]; } else if($row["fieldname"]=="UHID :") { $data["fieldvalue3"]= $data["suhid"]; } else if($row["fieldname"]=="OPD No :") { $data["fieldvalue3"]= $data["sfileno"]; } else if($row["fieldname"]=="Mobile No :") { $data["fieldvalue3"]= $data["mobile"]; } else if($row["fieldname"]=="Address :") { $data["fieldvalue3"]= $data["address1"]; } else if($row["fieldname"]=="Consultant :") { $data["fieldvalue3"]= $data["examinedby"]; } else if($row["fieldname"]=="Valid Up To :") { $data["fieldvalue3"]= $data["expirydate"]; } } else if($i==4) { $data["fieldname4"] = $row["fieldname"]; $data["htop4"] = $row["htop"]; $data["hleft4"] = $row["hleft"]; $data["hbold4"] = $row["hbold"]; $data["htitle4"] = $row["titlevisible"]; if($row["fieldname"]=="Name :") $data["fieldvalue4"]= $data["name"]; else if($row["fieldname"]=="Age :") $data["fieldvalue4"]= $data["age"].' '.$data["pntageyrs"] ; else if($row["fieldname"]=="Gender :") $data["fieldvalue4"]= $data["sex"]; else if($row["fieldname"]=="Date :") $data["fieldvalue4"]= $data["opddate"]; else if($row["fieldname"]=="UHID :") $data["fieldvalue4"]= $data["suhid"]; else if($row["fieldname"]=="OPD No :") $data["fieldvalue4"]= $data["sfileno"]; else if($row["fieldname"]=="Mobile No :") $data["fieldvalue4"]= $data["mobile"]; else if($row["fieldname"]=="Address :") $data["fieldvalue4"]= $data["address1"]; else if($row["fieldname"]=="Consultant :") $data["fieldvalue4"]= $data["examinedby"]; else if($row["fieldname"]=="Valid Up To :") $data["fieldvalue4"]= $data["expirydate"]; } else if($i==5) { $data["fieldname5"] = $row["fieldname"]; $data["htop5"] = $row["htop"]; $data["hleft5"] = $row["hleft"]; $data["hbold5"] = $row["hbold"]; $data["htitle5"] = $row["titlevisible"]; if($row["fieldname"]=="Name :") $data["fieldvalue5"]= $data["name"]; else if($row["fieldname"]=="Age :") $data["fieldvalue5"]= $data["age"].' '.$data["pntageyrs"] ; else if($row["fieldname"]=="Gender :") $data["fieldvalue5"]= $data["sex"]; else if($row["fieldname"]=="Date :") $data["fieldvalue5"]= $data["opddate"]; else if($row["fieldname"]=="UHID :") $data["fieldvalue5"]= $data["suhid"]; else if($row["fieldname"]=="OPD No :") $data["fieldvalue5"]= $data["sfileno"]; else if($row["fieldname"]=="Mobile No :") $data["fieldvalue5"]= $data["mobile"]; else if($row["fieldname"]=="Address :") $data["fieldvalue5"]= $data["address1"]; else if($row["fieldname"]=="Consultant :") $data["fieldvalue5"]= $data["examinedby"]; else if($row["fieldname"]=="Valid Up To :") $data["fieldvalue5"]= $data["expirydate"]; } else if($i==6) { $data["fieldname6"] = $row["fieldname"]; $data["htop6"] = $row["htop"]; $data["hleft6"] = $row["hleft"]; $data["hbold6"] = $row["hbold"]; $data["htitle6"] = $row["titlevisible"]; if($row["fieldname"]=="Name :") $data["fieldvalue6"]= $data["name"]; else if($row["fieldname"]=="Age :") $data["fieldvalue6"]= $data["age"].' '.$data["pntageyrs"] ; else if($row["fieldname"]=="Gender :") $data["fieldvalue6"]= $data["sex"]; else if($row["fieldname"]=="Date :") $data["fieldvalue6"]= $data["opddate"]; else if($row["fieldname"]=="UHID :") $data["fieldvalue6"]= $data["suhid"]; else if($row["fieldname"]=="OPD No :") $data["fieldvalue6"]= $data["sfileno"]; else if($row["fieldname"]=="Mobile No :") $data["fieldvalue6"]= $data["mobile"]; else if($row["fieldname"]=="Address :") $data["fieldvalue6"]= $data["address1"]; else if($row["fieldname"]=="Consultant :") $data["fieldvalue6"]= $data["examinedby"]; else if($row["fieldname"]=="Valid Up To :") $data["fieldvalue6"]= $data["expirydate"]; } else if($i==7) { $data["fieldname7"] = $row["fieldname"]; $data["htop7"] = $row["htop"]; $data["hleft7"] = $row["hleft"]; $data["hbold7"] = $row["hbold"]; $data["htitle7"] = $row["titlevisible"]; if($row["fieldname"]=="Name :") $data["fieldvalue7"]= $data["name"]; else if($row["fieldname"]=="Age :") $data["fieldvalue7"]= $data["age"].' '.$data["pntageyrs"] ; else if($row["fieldname"]=="Gender :") $data["fieldvalue7"]= $data["sex"]; else if($row["fieldname"]=="Date :") $data["fieldvalue7"]= $data["opddate"]; else if($row["fieldname"]=="UHID :") $data["fieldvalue7"]= $data["suhid"]; else if($row["fieldname"]=="OPD No :") $data["fieldvalue7"]= $data["sfileno"]; else if($row["fieldname"]=="Mobile No :") $data["fieldvalue7"]= $data["mobile"]; else if($row["fieldname"]=="Address :") $data["fieldvalue7"]= $data["address1"]; else if($row["fieldname"]=="Consultant :") $data["fieldvalue7"]= $data["examinedby"]; else if($row["fieldname"]=="Valid Up To :") $data["fieldvalue7"]= $data["expirydate"]; } else if($i==8) { $data["fieldname8"] = $row["fieldname"]; $data["htop8"] = $row["htop"]; $data["hleft8"] = $row["hleft"]; $data["hbold8"] = $row["hbold"]; $data["htitle8"] = $row["titlevisible"]; if($row["fieldname"]=="Name :") $data["fieldvalue8"]= $data["name"]; else if($row["fieldname"]=="Age :") $data["fieldvalue8"]= $data["age"].' '.$data["pntageyrs"] ; else if($row["fieldname"]=="Gender :") $data["fieldvalue8"]= $data["sex"]; else if($row["fieldname"]=="Date :") $data["fieldvalue8"]= $data["opddate"]; else if($row["fieldname"]=="UHID :") $data["fieldvalue8"]= $data["suhid"]; else if($row["fieldname"]=="OPD No :") $data["fieldvalue8"]= $data["sfileno"]; else if($row["fieldname"]=="Mobile No :") $data["fieldvalue8"]= $data["mobile"]; else if($row["fieldname"]=="Address :") $data["fieldvalue8"]= $data["address1"]; else if($row["fieldname"]=="Consultant :") $data["fieldvalue8"]= $data["examinedby"]; else if($row["fieldname"]=="Valid Up To :") $data["fieldvalue8"]= $data["expirydate"]; } else if($i==9) { $data["fieldname9"] = $row["fieldname"]; $data["htop9"] = $row["htop"]; $data["hleft9"] = $row["hleft"]; $data["hbold9"] = $row["hbold"]; $data["htitle9"] = $row["titlevisible"]; if($row["fieldname"]=="Name :") $data["fieldvalue9"]= $data["name"]; else if($row["fieldname"]=="Age :") $data["fieldvalue9"]= $data["age"].' '.$data["pntageyrs"] ; else if($row["fieldname"]=="Gender :") $data["fieldvalue9"]= $data["sex"]; else if($row["fieldname"]=="Date :") $data["fieldvalue9"]= $data["opddate"]; else if($row["fieldname"]=="UHID :") $data["fieldvalue9"]= $data["suhid"]; else if($row["fieldname"]=="OPD No :") $data["fieldvalue9"]= $data["sfileno"]; else if($row["fieldname"]=="Mobile No :") $data["fieldvalue9"]= $data["mobile"]; else if($row["fieldname"]=="Address :") $data["fieldvalue9"]= $data["address1"]; else if($row["fieldname"]=="Consultant :") $data["fieldvalue9"]= $data["examinedby"]; else if($row["fieldname"]=="Valid Up To :") $data["fieldvalue9"]= $data["expirydate"]; } else if($i==10) { $data["fieldname10"] = $row["fieldname"]; $data["htop10"] = $row["htop"]; $data["hleft10"] = $row["hleft"]; $data["hbold10"] = $row["hbold"]; $data["htitle10"] = $row["titlevisible"]; if($row["fieldname"]=="Name :") $data["fieldvalue10"]= $data["name"]; else if($row["fieldname"]=="Age :") $data["fieldvalue10"]= $data["age"].' '.$data["pntageyrs"] ; else if($row["fieldname"]=="Gender :") $data["fieldvalue10"]= $data["sex"]; else if($row["fieldname"]=="Date :") $data["fieldvalue10"]= $data["opddate"]; else if($row["fieldname"]=="UHID :") $data["fieldvalue10"]= $data["suhid"]; else if($row["fieldname"]=="OPD No :") $data["fieldvalue10"]= $data["sfileno"]; else if($row["fieldname"]=="Mobile No :") $data["fieldvalue10"]= $data["mobile"]; else if($row["fieldname"]=="Address :") $data["fieldvalue10"]= $data["address1"]; else if($row["fieldname"]=="Consultant :") $data["fieldvalue10"]= $data["examinedby"]; else if($row["fieldname"]=="Valid Up To :") $data["fieldvalue10"]= $data["expirydate"]; } $i++; } echo json_encode($data); ?>
Copyright © 2025 - UnknownSec