survey_seahorse

Software Engineering Project - Fall 2018
Log | Files | Refs | README

commit ae0df00f40e59417a41007a1da3db635f9614ef3
parent eb8475bc69003a9408dc5a126a5a9ba9c47e8b88
Author: David Liotta <liottad6@students.rowan.edu>
Date:   Sun, 16 Dec 2018 17:14:37 -0500

Navbar that can be included in any page
Diffstat:
Awebsite/res/navbar.php | 46++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 46 insertions(+), 0 deletions(-)

diff --git a/website/res/navbar.php b/website/res/navbar.php @@ -0,0 +1,46 @@ +<?php +if (isset($_SESSION['username'])) { + $user = $_SESSION['username']; + $profile = $user . "'s Profile"; + } else { + $profile = "Profile"; +} +?> + +<style> +.navbox{ + margin: 0; + padding: 10px; + background-color: lightblue; +} + +.nav { + display: inline; + overflow: hidden; + font-family: Arial; +} + +.nav a { + float: left; + font-size: 16px; + color: #000; + background-color: lightblue; + text-align: center; + padding: 10px 16px; + text-decoration: none; +} + +.nav a:hover, .drop:hover .dropbtn { + background-color: blue; +} +</style> +<div class=navbox> + <div class= nav> + <a href="index.php" target="_blank"> Home </a> + <a href="directory.php" target="_blank"> Surveys </a> + <a href="createsurvey.php" target="_blank"> Create a Survey </a> + <a href="profile.php" target="_blank"> <?php echo $user; ?>'s Profile </a> + <b href="profile.php" target="_blank"> Find a survey </b> + </div> + <br><br> +</div>