Server IP : 162.240.98.243 / Your IP : 18.188.119.81 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/NewNurse/Patient/ |
Upload File : |
<?php if(@isset($_POST['DelayInva'])) { $updated_at=date("Y-m-d"); $created_at=date("F d, Y / h:i:s A"); $CheckPatient = $con->query("SELECT * FROM DelayIn WHERE prescriptionid = '$_POST[prescriptionid]' AND patientid = '$_POST[patientid]' AND DelayIn='$_POST[DelayIn]' AND DelayIn_Native='$_POST[DelayIn_Native]' AND DelayIn_Corrective='$_POST[DelayIn_Corrective]'"); $numSU=mysqli_num_rows($CheckPatient); if($numSU > 0){ echo "<script>alert('Already Exists');</script>"; }else{ $DelayIn=$con->query("INSERT INTO DelayIn(id,prescriptionid,patientid,DelayIn,DelayIn_Native,DelayIn_Corrective,entered_by,created_at,updated_at) VALUES (NULL,'$_POST[prescriptionid]','$_POST[patientid]','$_POST[DelayIn]','$_POST[DelayIn_Native]','$_POST[DelayIn_Corrective]','$_POST[entered_by]','$created_at','$updated_at')"); $last_id = mysqli_insert_id($con); $save_activity=$con->query("INSERT INTO save_activity(srno,userno,prescriptionid,discription,entered_by,link,created_at,updated_at) VALUES (NULL, '$_POST[patientid]','$_POST[prescriptionid]','Incident Report<br>Delayin','$_POST[entered_by]','showDelayIn.php?prescriptionid=$_POST[prescriptionid]&patientid=$_POST[patientid]&id=$last_id','$created_at','$updated_at')"); if($DelayIn){ echo "<script>alert('DelayIn Add successfully..');</script><script>window.history.go(-1)</script>;</script>"; } } } ?> <h3><i class="fa fa-angle-right"></i> Delay In </h3> <form name="DelayInva" method="post" id="myForm" enctype="multipart/form-data"> <input type='hidden' name='entered_by' value='<?php echo $entered_by; ?>'> <input type='hidden' name='patientid' value='<?php echo $_GET['patientid']; ?>'> <input type='hidden' name='prescriptionid' value='<?php echo $_GET['prescriptionid']; ?>'> <table class='table table-hover table-bordered'> <tr> <td><label for="address">Delay In</label></td> <td><select name="DelayIn" class='form-control'> <option value="" disabled selected>Delay In</option> <option>OPD Consultation </option> <option>Admission and Bed Allotment</option> <option>Sample Collection </option> <option>Nursing Assessment </option> <option>Doctors Visit </option> <option>Procedure of medical Record Billing </option> <option>Medicine from Pharmacy Drugs </option> <option>Scheduled Operative Procedure </option> <option>Discharge </option> </select></td> </tr> <tr> <td><label>Native description of Occurrence</label></td> <td> <input type="text" name="DelayIn_Native" placeholder="Native description of Occurrence" class='form-control'></td> </tr> <tr> <td> <label>Corrective And Preventive Action Taken</label></td> <td> <input type="text" name="DelayIn_Corrective" placeholder="Native description of Occurrence" class='form-control'></td> </tr> <tr> <td></td> <td colspan='2'><button style="float: right;" name="DelayInva" type="submit" class='btn btn-success'> Save</button></td> </tr> </table> </form>