/Admin/updatedoctor.php
PHP | 148 lines | 116 code | 32 blank | 0 comment | 1 complexity | 84b62411409bbea153aefcab192a8438 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
- $DocID = $_REQUEST['docid'];
- include "../config/config.php";
-
- $sql = "SELECT * FROM doctor where ID = '" . $DocID . "'";
-
- $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>Edit Doctor Detail For <?php echo $clinic_Name; ?></h2>
- <br /></td></tr></table>
-
- <?php
- $DocID = $_REQUEST['docid'];
- if(isset($_POST['btn_Submit']))
- {
-
- include "../functions.php";
- $clinicname = $_POST['clinicname'];
- $address_1 = $_POST['address_1'];
- $address_2 = $_POST['address_2'];
- $town = $_POST['town'];
- $state = $_POST['state'];
- $postcode = $_POST['postcode'];
- $phone = $_POST['phone'];
-
- update_doctor_table($clinicname,$address_1,$address_2,$town,$state,$postcode,$phone,$DocID);
-
-
- ?>
- <script>
- window.close();
- </script>
- <?php
-
- }
- else
- {
- }
-
- ?>
- <?php
- $DocID = $_REQUEST['docid'];
- include "../config/config.php";
-
- $sql = "SELECT * FROM doctor where ID = '" . $DocID . "'";
-
- $result = mysql_query($sql);
- $count =0;
-
- while($row = mysql_fetch_array($result))
- {
- $clinic_name=$row['strClinicName'];
- $address1=$row['strAddress1'];
- $address2=$row['strAddress2'];
- $town=$row['strTownName'];
- $state=$row['strStateName'];
- $postcode=$row['strPostcode'];
- $phone=$row['strPhone'];
- }
-
- include "../config/con_close.php";
- ?>
-
- <div>
- <form method="post">
- <table >
- <tr>
- <td>Clinic Name</td>
- <td>:</td>
- <td><input name="clinicname" type="text" value="<?php echo $clinic_name; ?>" size="40" /></td>
-
- </tr>
- <tr>
- <td>Address</td>
- <td>:</td>
- <td>
- <table>
- <tr><td><input name="address_1" type="text" value="<?php echo $address1; ?>" size="40" /></td></tr>
- <tr><td><input name="address_2" type="text" value="<?php echo $address2; ?>" size="40" /></td></tr>
- </table>
- </td>
- </tr>
-
- <tr>
- <td>Town</td>
- <td>:</td>
- <td><input name="town" type="text" value="<?php echo $town; ?>" size="40" /></td>
- </tr>
-
- <tr>
- <td>State</td>
- <td>:</td>
- <td><input name="state" type="text" value="<?php echo $state; ?>" size="40" /></td>
- </tr>
-
- <tr>
- <td>Post Code</td>
- <td>:</td>
- <td>
- <input name="postcode" type="text" value="<?php echo $postcode; ?>" size="40" />
- </td>
- </tr>
-
- <tr>
- <td>Phone</td>
- <td>:</td>
- <td>
- <input name="phone" type="text" value="<?php echo $phone; ?>" size="40" />
- </td>
- </tr>
-
- <tr>
- <td colspan="3" style="padding-left:230px;">
- <input name="btn_Submit" id="btn_Submit" type="submit" value="Update" />
- <!--<input name="btn_Back" type="button" value='Previous' onclick="window.location='test.php'" />-->
- </td>
- </tr>
-
- </table>
- </form>
-
-
-
-
- </div>
- </body>
- </html>