/Admin/deletedoctor.php
PHP | 57 lines | 47 code | 10 blank | 0 comment | 1 complexity | 9adec0a6ecf26fa9378f05e158bb0d4b MD5 | raw file
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>Untitled Document</title>
- </head>
- <body>
- <div>
- <?php
- $doctorid = $_REQUEST['docid'];
- include "../config/config.php";
-
- $sql = "SELECT * FROM doctor where ID = '" . $doctorid . "'";
-
- $result = mysql_query($sql);
- $count =0;
-
- while($row = mysql_fetch_array($result))
- {
- $clinic_Name=$row['strClinicName'];
- }
- include "../config/con_close.php";
- ?>
-
- <table><tr><td style="padding-top:0px;"><h2>Are you sure you want to delete <?php echo $clinic_Name; ?> ?</h2>
- <br /></td></tr></table>
-
- <?php
- $doctorID = $_REQUEST['docid'];
- if(isset($_POST['yes_btn']))
- {
- include "../functions.php";
-
- delete_doctor($doctorID);
-
- ?>
- <script>
- window.close();
- </script>
- <?php
-
- }
- else
- {
- }
-
- ?>
- <form method="post">
- <table><tr>
- <td><input name="yes_btn" id="yes_btn" type="submit" value='Yes' /></td>
- <td><input name="no_btn" type="button" value='No' onclick="window.location=''" /></td>
- </tr></table>
- </form>
-
- </div>
- </body>
- </html>