-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.php
53 lines (47 loc) · 1.4 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
<?php
/*
File Name: index.php
Authors Name: Scott Montgomery and Nolan Knill
Web Site Name: Survey Site
File Description: The index / home page of the site which displays an introduction and links to other
sections of the site.
*/
$page_name = "Home";
include "functions/functions.php";
include 'partials/html_header.php';
?>
<body>
<?php include 'partials/header.php'; ?>
<div class="row">
<div class="large-9 columns" role="content">
<h3>
<?php echo $page_name;?>
</h3>
<?php include 'partials/messages.php'; ?>
<ul>
<?php if (isset($logged_in_profile)) : ?>
<li><a href="create_survey.php">Create a Survey</a></li>
<li><a href="my_surveys.php">View your Surveys</a></li>
<li><a href="list_surveys.php">Take a Survey</a></li>
<li><a href="profile.php">View your Profile</a></li>
<?php
else : ?>
<li>
<a href="list_surveys.php">Take a Survey</a>
</li>
<li>
<a href="login.php">Login</a> to Create and Manage Surveys
</li>
<li>
<a href="register.php">Register</a> if you are new
and want to to Create and Manage Surveys
</li>
<?php
endif;?>
</ul>
</div>
<?php include 'partials/sidebar.php' ?>
</div>
<?php include 'partials/footer.php'; ?>
</body>
</html>