-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
161 lines (111 loc) · 4.6 KB
/
index.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
<?php
require_once 'app/config/config.php';
require_once 'controllers/schedule.php';
if (!(substr($authNamespace->homepage_message, -3) == 'php')) {
$messageObj = new Message();
$message = $messageObj->getMessage(DEFAULT_MESSAGE);
} else {
$message = $authNamespace->homepage_message;
}
echo '<pre>';
print_r($DEBUG);
echo '</pre>';
?>
<!DOCTYPE html>
<html>
<head>
<title>Joy Of Code: Intro To HTML - Home Room</title>
<link rel="stylesheet" href="css/bootstrap.min.css" />
<link rel="stylesheet" href="css/bootstrap-responsive.min.css" />
<link rel="stylesheet" href="styles/styles.css" />
<link rel="icon" href="images/favicon.ico" type="image/ico"/>
<link rel="icon" href="images/favicon.gif" type="image/gif"/>
<link rel="icon" href="images/favicon.png" type="image/png"/>
<style type="text/css">
section#main
{width:800px;
float:none;
margin:20px;
padding:0 50px 0 25px ;}
hr
{visibility:hidden;}
</style>
</head>
<body>
<div id="wrapper">
<header>
<img src="/images/header.png" alt="Joy Of Code Intro To HTML" />
<nav>
<ul class="nav nav-pills">
<li class="current"><a href="/"><i class="icon-home"></i><strong>Home Room</strong></span></a></li>
<li><a href="/frontoffice"><i class="icon-info-sign"></i>Front Office</a></li>
<li><a href="/code_tester.html"><i class="icon-pencil"></i>Code Tester</a></li>
<li><a href="/workspace.html"><i class="icon-cog"></i>Work Space</a></li>
<li><a href="/logout.html"><i class="icon-off"></i>Sign Out</a></li>
</ul>
</nav>
</header>
<div class="clearfix">
<section id="main">
<h1 id="home">Home Room</h1>
<div id="lessons">
<h2>Lessons</h2>
<p>Reading Material For Each Lab</p>
<ol>
<?php for ($i = 1; $i <= count($lessons); $i++) : ?>
<?php if ($progress['progression'] > ($i - 1)) : ?>
<a href="<?php echo $lessons[$i - 1]['url'] ?>"><li><?php echo $lessons[$i - 1]['lesson'] ?></li></a>
<?php else : ?>
<li><?php echo $lessons[$i - 1]['lesson'] ?></li>
<?php endif ?>
<?php endfor ?>
</ol>
</div>
<div id="labs">
<h2>Labs</h2>
<p>Hands-On Assignements</p>
<ol>
<?php for ($i = 1; $i <= count($labs); $i++) : ?>
<?php if ($progress['progression'] > ($i - 1)) : ?>
<a href="<?php echo $labs[$i - 1]['url'] ?>"><li><?php echo $labs[$i - 1]['lab'] ?></li></a>
<?php else : ?>
<li><?php echo $labs[$i - 1]['lab'] ?></li>
<?php endif ?>
<?php endfor ?>
</ol>
</div>
<div id="messages" class="thumbnail">
<h2>Messages</h2>
<?php include $message ?>
<!--<p><?php echo $firstname ?>, right now, you don't have any. But stay alert and check here for updates. </p>
<p>For once, I don't have a lot to say. :-)</p>
<p><?php echo $firstname ?>, thanks for going on with the class. Your payment has been received, appreciated and not yet spent!!</p>
<p>I will be here to make sure that this will be an enJoyable learning experience for you.</p>
<p>I think you know the drill. After you do Lab 3 you can wait for me to review your pages or just go on to Lesson 4.</p>
<hr/>
<p>Just let me know if you have questions or comments. You know where to reach me and I'll be happy to hear form you.</p>
-->
</div>
<hr style="clear:both;" />
<div id="appendices">
<h2>Appendices</h2>
<p>All the stuff that I could not fit into the Lessons</p>
<ol type="A">
<?php for ($i = 1; $i <= count($appendices); $i++) : ?>
<?php if ($progress['progression'] > ($i - 1)) : ?>
<a href="<?php echo $appendices[$i - 1]['url'] ?>"><li><?php echo $appendices[$i - 1]['appendix'] ?></li></a>
<?php else : ?>
<li><?php echo $appendices[$i - 1]['appendix'] ?></li>
<?php endif ?>
<?php endfor ?>
</ol>
</div>
<h2>And In The End</h2>
<p>This is what you are making, one lab at a time but these pages include CSS.</p>
<p><a href="project/">In My Garden</a></p>
</section>
</div> <!-- end clearfix -->
<?php include("includes/footer.php"); ?>
</div> <!-- end wrapper -->
</body>
</html>