-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrecipe_home.php
64 lines (61 loc) · 1.6 KB
/
recipe_home.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<?php
/*
Title: Easy Dinner Project
Purpose: Methods to render Common Site Header and Footer
Author: Rick Faulkner
Date: January 2016
*/
//Home Page to Easy Dinner
//session_start();
include_once 'siteCommon.php';
include_once 'projectSQL.php';
displayPageHeader('Recipe Home');
$logFName = (isset($_SESSION['userInfo']))? $_SESSION['userInfo']['username'] : "";
if(!empty($logFName))
{
echo "<p>Welcome back to Easy Dinner, $logFName!</p>";
}
else
{
echo "<p>Hello, and welcome to the home of Easy Dinner, it's dinner made easy!</p>";
}
//echo "These are the last recipies added, try them out!";
//$recipeList = nulll; // mostRecentPublic();
//echo "$recipeList";
//$recipeNum = 0;
//$output = '<h1> These are the most recent recipes added, check them out!</h1> <br>';
// if ($recipeList != null)
// {
// foreach ($recipeList as $recipe)
// {
// extract($recipe);
// $recipeNum ++;
// $dateAdded = date_format(new DateTime($dateAdded), "F j, Y");
// $output .= <<<ABC
// <tr id='recipename'>
// <td>
// $recipeNum: $RecipeName
// </td>
// </tr>
// <tr>
// <td>
// Cook Time: $Cooktime
// </td>
// <td>
// Released: $dateAdded
// </td>
// <td>
// Time of Year: $TimeOfYear
// </td>
// <td>
// Time of Day: $TimeOfDay
// </td>
// </tr>
// <br>
// <br>
// ABC;
// }
// }
//echo "$output";
displayPageFooter();
?>