Example #1
0
* Updated: 
* By: Mike Rogers
* Notes
* Basic page for displaying body info.
*****************************/
//include files
include_once "getStocks.php";
include_once "navbar.php";
include_once "controller/forms.php";
include_once "time.php";
//DEBUG MODE
// Report all PHP errors (see changelog)
error_reporting(E_ALL);
//import the navbar
$navObj = new NavBar();
$navBar = $navObj->generateMenu('body');
//get the wallpaper synced up
$time = new Time();
$wallpaperOverride = $time->wallpaperCss();
////create the form
$form = new Form();
$BPForm = $form->generateFormHTML("BloodPressure.json");
//generate the form HTML
?>
<html>
  
<head>
  <META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE"> 
  <meta http-equiv="refresh" content="60">
  <title>Body Stats (Release 6)</title>
  <!-- Inserting web fonts -->
Example #2
0
//pull in the weather class
$weather = new weather();
$weatherWidget = $weather->weatherWidgetHTML();
$currentWeather = $weather->todaysWeather();
$tomorrowsWeather = $weather->tomorrowsWeather();
//extract the stocks
$stocks = new stockPrices();
$currentPrices = $stocks->getStocksDiv();
//pull in the time object and provide weather info
$time = new Time();
$welcomeWidget = $time->welcomeWidget($currentWeather, $tomorrowsWeather);
$timeNatLangWidget = $time->timeNaturalLanguage(1);
$wallpaperOverride = $time->wallpaperCss();
//import the navbar
$navObj = new NavBar();
$navBar = $navObj->generateMenu('home');
?>
<html>
  
<head>
  <META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE"> 
  <meta http-equiv="refresh" content="60">
  <title>Welcome Screen! (Release 6)</title>
  <!-- Inserting web fonts -->
<link href='https://fonts.googleapis.com/css?family=Maven+Pro|Poiret+One|Fredericka+the+Great|Cabin+Sketch|Poller+One|Chelsea+Market|Londrina+Solid|Lilita+One|Codystar|Raleway+Dots' rel='stylesheet' type='text/css'>
<link rel="stylesheet" type="text/css" href="./css/main.css">
<?php 
echo $wallpaperOverride;
?>

</head>