Server IP : 162.240.98.243 / Your IP : 3.147.126.211 Web Server : Apache System : Linux server.bti.yaw.mybluehostin.me 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 User : btiyawmy ( 1003) PHP Version : 7.2.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/btiyawmy/public_html/login.easenup.in/ |
Upload File : |
<?php session_start(); require_once("../LoginManager.php"); require_once("../DBManager.php"); include("workdeskmenu.php"); include("header.php"); $Patient_Refferal ="SELECT * FROM patient_referral WHERE id='$_GET[id]'"; $qsql1 = mysqli_query($con,$Patient_Refferal); if($rs12 = mysqli_fetch_array($qsql1)) if(isset($_POST['update'])){ $PatientReferred="UPDATE `patient_referral` SET `hs_referral`='$_GET[hs_referral]',`location`='$_POST[location]',`Phone`='$_POST[Phone]',`Email`='$_POST[Email]',`Accompanied`='$_POST[Accompanied]',`Primary_Diagnosis`='$_POST[Primary_Diagnosis]',`Treatments_initiated`='$_POST[Treatments_initiated]',`Types_Patient`='$_POST[Types_Patient]',`Transportation_needs`='$_POST[Transportation_needs]',`Follow_up_requirements`='$_POST[Follow_up_requirements]',`Mobility`='$_POST[Mobility]',`Self_care`='$_POST[Self_care]',`Cognitive_impairment`='$_POST[Cognitive_impairment]',`Assistive_devices_provide`='$_POST[Assistive_devices_provide]',`Assistive_required`='$_POST[Assistive_required]' WHERE id='$_GET[id]'"; if($qsql = mysqli_query($con,$PatientReferred)) { echo "<script>alert('Update successfully..');</script> <script> window.history.go(-1)</script>;</script>"; } else { echo "Sorry, there was an error uploading your file."; } } ?> <style> .switch { position: relative; display: inline-block; width: 90px; height: 34px; } .switch input {display:none;} .slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ca2222; -webkit-transition: .4s; transition: .4s; border-radius: 34px; } .slider:before { position: absolute; content: ""; height: 26px; width: 26px; left: 4px; bottom: 4px; background-color: white; -webkit-transition: .4s; transition: .4s; border-radius: 50%; } input:checked + .slider { background-color: #2ab934; } input:focus + .slider { box-shadow: 0 0 1px #2196F3; } input:checked + .slider:before { -webkit-transform: translateX(26px); -ms-transform: translateX(26px); transform: translateX(55px); } /*------ ADDED CSS ---------*/ .slider:after { content:'No'; color: white; display: block; position: absolute; transform: translate(-50%,-50%); top: 50%; left: 50%; font-size: 10px; font-family: Verdana, sans-serif; } input:checked + .slider:after { content:'Yes'; } .center { border: 1px solid grey; text-align:; } </style> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css"> <title>Document</title> <script> function myFunction() { var checkBox = document.getElementById("myCheck"); var text = document.getElementById("text"); if (checkBox.checked == true){ text.style.display = "block"; } else { text.style.display = "none"; } } function myFunction2() { var checkBox = document.getElementById("myCheck2"); var text = document.getElementById("text2"); if (checkBox.checked == true){ text.style.display = "block"; } else { text.style.display = "none"; } } function myFunction3() { var checkBox = document.getElementById("myCheck3"); var text = document.getElementById("text3"); if (checkBox.checked == true){ text.style.display = "block"; } else { text.style.display = "none"; } } function myFunction4() { var checkBox = document.getElementById("myCheck4"); var text = document.getElementById("text4"); if (checkBox.checked == true){ text.style.display = "block"; } else { text.style.display = "none"; } } function myFunction102() { var checkBox = document.getElementById("myCheck102"); var text = document.getElementById("text102"); if (checkBox.checked == true){ text.style.display = "block"; } else { text.style.display = "none"; } } </script> <style> .center { border: 1px solid grey; text-align:; } </style> <?php include 'fileheader.php'; ?> <div class=container> <form method="post"> <table id='example2' class='table table-bordered table-hover' width='100%'><tr> <th>Personal Details</th></tr> </table> <div class="row"> <!-- <div class="col-sm-6"><table id='example2' class='table table-bordered table-hover' width='50%'><tr>--> <!-- <td width='50%'> Patient Id:</td><td><?php echo $rs12[patientid]?></td></tr>--> <!-- <tr> <td width='50%'> Prescription Id:</td><td><?php echo $rs12[prescriptionid]?></td>--> <!--</tr></table></div>--> <div class="col-sm-12"> <table id='example2' class='table table-bordered table-hover' width='50%'> <?php $sql ="SELECT * FROM patient WHERE patientid='$rs12[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { echo " <tr> <td width='50%'> Full Name : </td> <td width='50%'>$rs[patientname]</td> </tr> <tr> <td width='50%'> Phone : </td> <td width='50%'>$rs[numbers]</td> </tr> <tr> <td width='50%'> DOB: </td> <td width='50%'>$rs[dob]</td> </tr> <tr> <td width='50%'> Sex : </td> <td width='50%'>$rs[gendor]</td> </tr> "; echo "</td></tr>"; } ?> <tr> </table></div> <div class=''> <!-- Content Header (Page header) --> <section class=''> <div class=''> <table id='example2' class='table table-bordered table-hover' width='100%'><tr> <th> Referral to</th></tr> </table> <table id='example2' class='table table-bordered table-hover' width='100%'> <?php echo"<tr> <td width='50%'> Referral To: </td> <td width='50%'><input type='text' name='hs_referral' value='$rs12[hs_referral]'></td></tr> <tr> <td width='50%'> Location: </td> <td width='50%'> <input type='text' name='location' value='$rs12[location]'> </td></tr> <tr> <td width='50%'> Phone: </td> <td width='50%'> <input type='text' name='Phone' value='$rs12[Phone]'></td></tr> <tr> <td width='50%'> Email Id: </td> <td width='50%'> <input type='text' name='Email' value='$rs12[Email]'></td></tr> "; ?> </table> </div> <table id='example2' class='table table-bordered table-hover' width='100%'><tr> <th>Reffered From</th></tr> </table> <table id='example2' class='table table-bordered table-hover' width='100%'> <?php $narayan=LoginManager::currentUser(); $usertype=LoginManager::getUserTypeByuname("$narayan"); $sql ="SELECT * FROM site_users WHERE userno='$usertype'"; $qsql = mysqli_query($con,$sql); if($rs = mysqli_fetch_array($qsql)) { $sql ="SELECT * FROM hco WHERE adminid='$rs[entered_by]'"; $qsql = mysqli_query($con,$sql); if($rs = mysqli_fetch_array($qsql)) { $sql ="SELECT * FROM admin WHERE id='$rs[adminid]'"; $qsql = mysqli_query($con,$sql); if($ra = mysqli_fetch_array($qsql)) { echo"<tr> <td width='50%'> Referring from: </td> <td width='50%'> $ra[hsname]</td></tr> <tr> <td width='50%'> Location: </td> <td width='50%'> $rs[Street] | $rs[Locality]</td></tr> <tr> <td width='50%'> Phone: </td> <td width='50%'> $ra[numbers]</td></tr> <tr> <td width='50%'> Email Id: </td> <td width='50%'> $ra[EmailID]</td></tr> "; } } } ?> </table> <table id='example2' class='table table-bordered table-hover' width='100%'><tr> <th>Functional Status</th></tr> </table> <table id='example2' class='table table-bordered table-hover' width='100%'> <?php $sql ="SELECT * FROM patient WHERE patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { echo " <tr> <td width='50%'> Full Name : </td> <td width='50%'><input type='text' name='patientname' value='$rs[patientname]'></td> </tr> <tr> <td width='50%'> Phone : </td> <td width='50%'><input type='text' name='numbers' value='$rs[numbers]'></td> </tr> <tr> <td width='50%'> DOB: </td> <td width='50%'><input type='text' name='dob' value='$rs[dob]'></td> </tr> <tr> <td width='50%'> Sex : </td> <td width='50%'><input type='text' name='gendor' value='$rs[gendor]'></td> </tr> "; echo "</td></tr>"; } ?> <tr> <td width='50%'> Accompanied by care provider : </td> <td width='50%'> <label class='switch'> <input name='Accompanied' type='checkbox' <?php echo ($rs12['Accompanied']=='on')?'Checked':''; ?>> <span class='slider'></span> </label> </td> </tr> <tr> <td width='50%'> Primary Diagnosis : </td> <td width='50%'><input type='text' name='Primary_Diagnosis' value='<?php echo $rs12['Primary_Diagnosis']; ?>'> </td> </tr> <tr> <td width='50%'> Treatments initiated : </td> <td width='50%'><input type='text' name='Treatments_initiated' value='<?php echo $rs12['Treatments_initiated']; ?>'> </td> </tr> <tr> <td width='50%'> Types of Patient : </td> <td width='50%'><input type='text' name='Types_Patient' value='<?php echo $rs12['Types_Patient']; ?>'> </td> </tr> <tr> <td width='50%'> Transportation needs : </td> <td width='50%'><input type='text' name='Transportation_needs' value='<?php echo $rs12['Transportation_needs']; ?>'></td> </tr> <tr> <td width='50%'> Follow_up_requirements : </td> <td width='50%'><input type='text' name='Follow_up_requirements' value='<?php echo $rs12['Follow_up_requirements']; ?>'> </td> </tr> </table> <table id='example2' class='table table-bordered table-hover' width='100%'> <tr> <td width='50%'> Mobility : </td> <td width='50%'><select name='Mobility'> <option disabled selected>Mobility</option> <option value='Bed bound'>Bed bound</option> <option value='Wheelchair'>Wheelchair</option> <option value='Crutches'>Crutches</option> <option value='Walking frame'>Walking frame</option> <option value='Requires assistance'>Requires assistance</option> <option value='Independent'>Independent</option> </select></td> </tr> <tr> <td width='50%'> Self-care : </td> <td width='50%'><select name='Self_care'> <option disabled selected>Self-care</option> <option value='Carer dependent'>Carer dependent</option> <option value='Requires commode'>Requires commode</option> <option value='Requires modified latrine/washroom'>Requires modified latrine/washroom</option> <option value='Independent'>Independent</option> </select></td> </tr> <tr> <td width='50%'> Cognitive impairment : </td> <td width='50%'> <label class='switch'> <input name='Cognitive_impairment' type='checkbox' <?php echo ($rs12['Cognitive_impairment']=='on')?'Checked':''; ?>> <span class='slider'></span> </label> </td> </tr> <tr> <td width='50%'> Assistive devices(s) provided : </td> <td width='50%'><input type='text' name='Assistive_devices_provide' value='<?php echo $rs12['Assistive_devices_provide']; ?>'> </td> </tr> <tr> <td width='50%'> Assistive device(s) required: </td> <td width='50%'><input type='text' name='Assistive_required' value='<?php echo $rs12['Assistive_required']; ?>'> </td> </tr> </table> <?php $sql ="SELECT * FROM patient_referral WHERE id='$_GET[id]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $sql1 ="SELECT * FROM site_users WHERE userno='$rs[entered_by]'"; $qsql1 = mysqli_query($con,$sql1); if($rs1 = mysqli_fetch_array($qsql1)) { echo"<h5><b> Created & Updated </b><h5> <table id='example2' class='table table-bordered table-hover'> <tr><td width=50%><b>By :</b>$rs1[name] </b><td width='50%'><b>At :</b> $rs[created_at] </tr>"; } } ?> </table> <input type='submit' class='btn btn-info' name='update' value="Update"> </form>