Server IP : 162.240.98.243 / Your IP : 18.118.24.106 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/www/login.easenup.in/ |
Upload File : |
<?php session_start(); include("dbconnection.php"); include("dashboarddocument.php"); require_once('../DBManager.php'); require_once("../LoginManager.php"); require_once('../patientmanager.php'); if(isset($_POST[ordermedicine])) { PatientManager::Medicineorder("$_GET[prescriptionid]","$_GET[patientid]","$_POST[DRUGS]","$_POST[Dose]","$_POST[Frequency]","$_POST[days]","$_POST[entered_by]"); } ?> <?php include("dbconnection.php"); include("header.php"); $sql1 ="SELECT * FROM medicinede WHERE id='$_GET[id]' "; $qsql1 = mysqli_query($con,$sql1); while($rs1 = mysqli_fetch_array($qsql1)) { echo " <form name='ordermedicine' method='post'><div class='content-wrapper'> <label> Name Of Medicine</label> <input type='text' value='$rs1[DRUGS]' placeholder='Name' name='DRUGS' id='drug' class='form-control' readonly> <label>Dose</label> <input type='text' value='$rs1[Dose]' name='Dose' id='dose' class='form-control' readonly> <label> Frequency</label> <select name='Frequency'> <option value='$rs1[Frequency]'>$rs1[Frequency] </option> </select> "; switch ($rs1[Frequency]) { case 'OD (Once Daily)': echo "<input type='number' value='1 *$rs1[days]'>"; break; case 'DP_General_ward': echo ' <td> General ward Nursing Station</td>'; break; case 'DP_Doctors_Notepad': echo ' <td> Doctors Notepad</td>'; break; case 'DP_reception': echo ' <td> Reception</td>'; break; case 'OPD_Front_desk': echo ' <td> OPD Front desk</td>'; break; case 'DP_SEMI_Pvt_ward': echo ' <td> SEMI Pvt ward</td>'; break; case 'DP_Pvt_Ward': echo ' <td> Pvt Ward Nursing station</td>'; break; case 'DP_OT_complex': echo ' <td> OT complex Nursing station</td>'; break; case 'DP_Pharmacy': echo ' <td> Pharmacy</td>'; break; case 'DP_Laboratory': echo ' <td> Laboratory</td>'; break; case 'DP_Diagnostic': echo ' <td> Diagnostic</td>'; break; case 'DP_Accounts': echo ' <td> Accounts</td>'; break; default: echo ''; } } ?> <button type="submit" name='ordermedicine'> Submit</button> </form>