Server IP : 162.240.98.243 / Your IP : 3.141.4.179 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(); require_once('../DBManager.php'); require_once('../LoginManager.php'); include 'ComImgupload.php'; if(isset($_GET['Del'])){ $GCDel=$con->query("DELETE FROM GeneralConsent WHERE id='$_GET[Del]'"); if($GCDel==1){ echo "<script>alert('Delete successfully..');</script><script>window.location='RequestforAdmissionset.php?prescriptionid=$_GET[prescriptionid]&patientid=$_GET[patientid]'</script>;</script>"; } } ?> <style> .center { border: 1px solid grey; text-align:; } .center2 { border: 5px solid grey; text-align:; } </style> <?php $sql ="SELECT * FROM GeneralConsent WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); if($rs = mysqli_fetch_array($qsql)) { echo " <h3 align='center'>General Consent Signed</h3> <table id='example2' class='table table-bordered table-hover'> <tr><td></td><td><a href=''>Edit</a></td></tr> <tr> <td width='50%'> Towords : </td><td>$rs[towords]</td></tr> <tr> <td width='50%'> General Consent Signed Copy : </td> <td width='50%'>"; echo "<div class='row'><div class='col-sm-12'> <a href='Add_Gen_Con_Sign_Img.php?prescriptionid=$_GET[prescriptionid]&patientid=$_GET[patientid]' style='float:right;' class='btn btn-info'>Add Image</a> </div></div>"; echo"<div class='row'>"; $GeneralConsent=$con->query("SELECT * FROM GeneralConsent WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"); while($GC=$GeneralConsent->fetch_assoc()){ echo "<div class='col-sm-3'> <a target='_blank' href='uploads/$GC[Upload_Consent]'><image src='uploads/$GC[Upload_Consent]' alt='img' class='img-thumbnail' style='width:150px; height:150px;'></a> <center><a href='RequestforAdmissionset.php?prescriptionid=$_GET[prescriptionid]&patientid=$_GET[patientid]&Del=$GC[id]'>Delete</a></center> </div>"; } echo"</td><td></td> </tr> </table> "; } ?>