<?php
session_start();                                     /* Here session is start */
require_once("../codelibrary/inc/variables.php"); /* This file is required for database connection.  */
require_once("../codelibrary/inc/functions.php"); /* This file contain all function.  */
@extract($_REQUEST);                                 /* This is used for get the request. */
validate_user();                                     /* Validate user for open/access this page with login. */

$report= mysql_query_db("select * from health_reports_upload where uploadId='$uploadId'");
$reports= mysql_fetch_db($report);
$source="../reports/data/".$uploadId.".".$reports['extension'];
?>

<div class="full table-header">
   <?php echo $reports['details'];?>
</div>
<div id="pdfBox">
            <embed id="docId" src="<?php echo $source;?>" width="100%" height="580px"/>
</div>	