PageRenderTime 44ms CodeModel.GetById 24ms RepoModel.GetById 0ms app.codeStats 0ms

/Admin/deletedoctor.php

https://bitbucket.org/kenzone/hairloss
PHP | 57 lines | 47 code | 10 blank | 0 comment | 1 complexity | 9adec0a6ecf26fa9378f05e158bb0d4b MD5 | raw file
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <title>Untitled Document</title>
  6. </head>
  7. <body>
  8. <div>
  9. <?php
  10. $doctorid = $_REQUEST['docid'];
  11. include "../config/config.php";
  12. $sql = "SELECT * FROM doctor where ID = '" . $doctorid . "'";
  13. $result = mysql_query($sql);
  14. $count =0;
  15. while($row = mysql_fetch_array($result))
  16. {
  17. $clinic_Name=$row['strClinicName'];
  18. }
  19. include "../config/con_close.php";
  20. ?>
  21. <table><tr><td style="padding-top:0px;"><h2>Are you sure you want to delete <?php echo $clinic_Name; ?> ?</h2>
  22. <br /></td></tr></table>
  23. <?php
  24. $doctorID = $_REQUEST['docid'];
  25. if(isset($_POST['yes_btn']))
  26. {
  27. include "../functions.php";
  28. delete_doctor($doctorID);
  29. ?>
  30. <script>
  31. window.close();
  32. </script>
  33. <?php
  34. }
  35. else
  36. {
  37. }
  38. ?>
  39. <form method="post">
  40. <table><tr>
  41. <td><input name="yes_btn" id="yes_btn" type="submit" value='Yes' /></td>
  42. <td><input name="no_btn" type="button" value='No' onclick="window.location=''" /></td>
  43. </tr></table>
  44. </form>
  45. </div>
  46. </body>
  47. </html>