<!DOCTYPE html>

<html>

<head>

<title>Where doctors are</title>

<link rel="stylesheet" type="text/css" href="css/bootstrap.css">

  <link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">

  <link rel="stylesheet" type="text/css" href="css/bootstrap-responsive.css">

  <link rel="stylesheet" type="text/css" href="css/prettify.css">

  <link rel="stylesheet" type="text/css" href="css/style.css">

  <link rel="stylesheet" type="text/css" href="css/tablecloth.css">

  <link href='http://fonts.googleapis.com/css?family=Roboto' rel='stylesheet' type='text/css'>

  <link href='http://fonts.googleapis.com/css?family=Arimo' rel='stylesheet' type='text/css'>

  

  <!--[if !IE]><!-->

	<style>

	

	/* 

	Max width before this PARTICULAR table gets nasty

	This query will take effect for any screen smaller than 760px

	and also iPads specifically.

	*/

	@media 

	only screen and (max-width: 760px),

	(min-device-width: 768px) and (max-device-width: 1024px)  {

	

		/* Force table to not be like tables anymore */

		table, thead, tbody, th, td, tr { 

			display: block; 

		}

		

		/* Hide table headers (but not display: none;, for accessibility) */

		thead tr { 

			position: absolute;

			top: -9999px;

			left: -9999px;

		}

		

		tr { border: 1px solid #ccc; }

		

		td { 

			/* Behave  like a "row" */

			border: none;

			border-bottom: 1px solid #eee; 

			position: relative;

			padding-left: 50%; 

		}

		

		td:before { 

			/* Now like a table header */

			position: absolute;

			/* Top/left values mimic padding */

			top: 6px;

			left: 6px;

			width: 45%; 

			padding-right: 10px; 

			white-space: nowrap;

		}

		

		/*

		Label the data

		*/

		td:nth-of-type(1):before { content: "Name"; }

		td:nth-of-type(2):before { content: "Reg. no"; }

		td:nth-of-type(3):before { content: "Address"; }

		td:nth-of-type(4):before { content: "Qualifications"; }

		td:nth-of-type(5):before { content: "Specialty"; }

		td:nth-of-type(6):before { content: "Sub-specialty"; }

	}

	

	/* Smartphones (portrait and landscape) ----------- */

	@media only screen

	and (min-device-width : 320px)

	and (max-device-width : 480px) {

		body { 

			padding: 0; 

			margin: 0; 

			width: 320px; }

		}

	

	/* iPads (portrait and landscape) ----------- */

	@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) {

		body { 

			width: 495px; 

		}

	}

	

	</style>

	<!--<![endif]-->

  

</head>

<body>

<?php

include 'config.php';

$id=$_GET['id'];

//$id=1;

$result = mysqli_query($conDB,"select * from retaineddoctors where id='".$id."'");

//$row = mysqli_fetch_array($result);

 $rowcount=mysqli_num_rows($result);

 if ($rowcount==0) {

  echo "Record does not exist";

}

else {

  $row = mysqli_fetch_array($result);

  $name=$row['name'];

  $regdate=$row['reg_date'];

  $regno=$row['reg_no'];

  $address=$row['address'];

  $qualifications=$row['qualifications'];

  $specialty=$row['specialty'];

  $subspecialty=$row['sub_specialty'];

}

include 'closedb.php';

?>

<div id="detailsdiv">

<form class="form-horizontal">

<fieldset>



<!-- Form Name -->

<legend>Doctor details</legend>



<!-- Text input-->

<div class="control-group">

  <label class="control-label" for="txtname">Name:</label>

  <div class="controls">

    <input id="txtname" name="txtname" placeholder="" class="input-large" type="text" readonly value="<?php echo $name; ?>">

    

  </div>

</div>



<!-- Text input-->

<div class="control-group">

  <label class="control-label" for="txtregdate">Reg. date:</label>

  <div class="controls">

    <input id="txtregdate" name="txtregdate" placeholder="" class="input-large" type="text" readonly value="<?php echo $regdate; ?>">

    

  </div>

</div>



<!-- Text input-->

<div class="control-group">

  <label class="control-label" for="txtregno">Reg No:</label>

  <div class="controls">

    <input id="txtregno" name="txtregno" placeholder="" class="input-large" type="text" readonly value="<?php echo $regno; ?>">

    

  </div>

</div>



<!-- Textarea -->

<div class="control-group">

  <label class="control-label" for="txtadress">Address:</label>

  <div class="controls">                     

    <textarea id="txtadress" name="txtadress" rows="3" readonly><?php echo $address; ?></textarea>

  </div>

</div>







<!-- Textarea -->

<div class="control-group">

  <label class="control-label" for="txtqualifications">Qualifications:</label>

  <div class="controls">                     

    <textarea id="txtqualifications" name="txtqualifications" readonly rows="3"><?php echo $qualifications; ?></textarea>

  </div>

</div>



<!-- Text input-->

<div class="control-group">

  <label class="control-label" for="txtspecialty">Specialty</label>

  <div class="controls">

    <input id="txtspecialty" name="txtspecialty" placeholder="" class="input-large" type="text" readonly value="<?php echo $specialty; ?>">

    

  </div>

</div>



<!-- Text input-->

<div class="control-group">

  <label class="control-label" for="txtsubspecialty">Sub-specialty:</label>

  <div class="controls">

    <input id="txtsubspecialty" name="txtsubspecialty" placeholder="" class="input-large" type="text" readonly value="<?php echo $subspecialty; ?>">

    

  </div>

</div>







</fieldset>

</form>

</div>

</body>

</html>