function __construct($db) { parent::__construct($db); }
<?php include_once './generics.php'; include_once './content_extractor.php'; include_once './models/doctors.php'; include_once './models/ambulatories.php'; $db = new Database($lang); $ambulatory_id = array_key_exists('ID', $_GET) ? $_GET['ID'] : 1; $ambulatory = new Ambulatory($db); $ambulatory->get_by_id($ambulatory_id); $content_extractor = new ContentExtractor("content/{$lang}/ambulatories/" . strtolower($ambulatory->acronim) . ".xml"); ?> <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <link href='https://fonts.googleapis.com/css?family=Antic+Slab:400,600' rel='stylesheet' type='text/css'> <link href='https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,600' rel='stylesheet' type='text/css'> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css"> <link rel="stylesheet" type="text/css" href="./css/bootstrap.min.css"> <link rel="stylesheet" type="text/css" href="./css/layout.css"> <link rel="stylesheet" type="text/css" href="./css/ambulatory.css"> <?php echo "<link rel='stylesheet' type='text/css' href='./css/" . strtolower($ambulatory->acronim) . ".css'>\n\t<title> {$ambulatory->name}</title>"; ?> </head> <body> <?php echo "<div id='header_bg_image' data-image='{$ambulatory->image}'>";