Server IP : 162.240.98.243 / Your IP : 18.226.164.75 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"); require_once('../DBManager.php'); require_once('../LoginManager.php'); $narayan=LoginManager::currentUser(); $usertype=LoginManager::getUserTypeByuname("$narayan"); $sql1 ="SELECT * FROM site_users WHERE userno='$usertype'"; $qsql1 = mysqli_query($con,$sql1); $re = mysqli_fetch_array($qsql1); $sql ="select * from medicine_stok where admin_id='$re[entered_by]' AND Category='$_GET[ctid]'"; $qsql = mysqli_query($con,$sql); $qsql2=mysqli_fetch_array($qsql); switch ($qsql2[Category]) { case 'Injectable': echo " <label>Dose </label> <input type='number' placeholder='In mg' name='Dose' id='dose' class='form-control' /> <label>Quantity Per Vial</label> <input type='hidden' placeholder='Quantity Per Vial' name='size' id='size' class='form-control' value='1'/> <input type='text' placeholder='Quantity Per ml' name='QtyContain' id='QtyContain' class='form-control'/> "; break; case 'IV Fluid': echo " <label>Dose </label> <input type='number' placeholder='In ML' name='Dose' id='dose' class='form-control' /> <label>Quantity Per Bottle</label> <input type='hidden' placeholder='Quantity Per Bottle' name='size' id='size' class='form-control' value='1'/> <input type='text' placeholder='Quantity Per ml' name='QtyContain' id='QtyContain' class='form-control'/> "; break; case 'Capsule': echo " <label>Dose </label> <input type='number' placeholder='In MG' name='Dose' id='dose' class='form-control' /> <label>Quantity Per Strip</label> <input type='number' placeholder='Quantity Per Strip' name='size' id='size' class='form-control' /> "; break; case 'Tablet': echo " <label>Dose </label> <input type='number' placeholder='In MG' name='Dose' id='dose' class='form-control' /> <label>Quantity Per Strip</label> <input type='number' placeholder='Quantity Per Strip' name='size' id='size' class='form-control' /> "; break; case 'Syrup': echo " <label>Dose </label> <input type='number' placeholder='In ML' name='Dose' id='dose' class='form-control'/> <label>Quantity Per Bottle</label> <input type='hidden' placeholder='Quantity Per Bottle' name='size' id='size' class='form-control' value='1'/> <input type='text' placeholder='Quantity Per ml' name='QtyContain' id='QtyContain' class='form-control'/> "; break; case 'Powder': echo " <label>Dose </label> <input type='number' placeholder='In GRAM' name='Dose' id='dose' class='form-control' /> <label>Quantity Per Bottle</label> <input type='hidden' placeholder='Quantity Per Bottle' name='size' id='size' class='form-control'value='1' /> <input type='text' placeholder='Quantity Per mg' name='QtyContain' id='QtyContain' class='form-control'/> "; break; case 'Ointment': echo " <label>Dose </label> <input type='number' placeholder='In GRAM' name='Dose' id='dose' class='form-control' /> <label>Quantity Per Tube</label> <input type='hidden' placeholder='Quantity Per Tube' name='size' id='size' class='form-control' value='1'/> <input type='text' placeholder='Quantity Per mg' name='QtyContain' id='QtyContain' class='form-control'/> "; break; case 'Drop': echo "<label>Quantity Per Box</label> <input type='text' placeholder='Quantity Per ml' name='QtyContain' id='QtyContain' class='form-control'/> <input type='hidden' placeholder='Quantity Per Box' name='size' id='size' class='form-control' value='1'/>"; break; case 'Solution': echo "<label>Quantity Per Pack</label> <input type='text' placeholder='Quantity Per ml' name='QtyContain' id='QtyContain' class='form-control'/> <input type='hidden' placeholder='Quantity Per Pack' name='size' id='size' class='form-control' value='1'/>"; break; case 'Patch': echo "<label>Quantity Per Pack</label> <input type='text' placeholder='Quantity Per Unit' name='QtyContain' id='QtyContain' class='form-control'/> <input type='hidden' placeholder='Quantity Per Pack' name='size' id='size' class='form-control' value='1'/>"; break; default: echo "Your favorite color is neither red, blue, nor green!"; } ?>