Move <style> to <head>, and make a meaningful page title.
							parent
							
								
									e455355da1
								
							
						
					
					
						commit
						9424794cb3
					
				
							
								
								
									
										105
									
								
								Header.php
								
								
								
								
							
							
						
						
									
										105
									
								
								Header.php
								
								
								
								
							|  | @ -19,6 +19,7 @@ if (mysqli_connect_errno()) { | |||
| 
 | ||||
| <head> | ||||
| 
 | ||||
|   <title>LRR - Lab Report Repository</title> | ||||
|   <link href="./css/bootstrap.min.css" rel="stylesheet" type="text/css" /> | ||||
|   <link href="./font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css" /> | ||||
|   <!-- *this css file can be used across all the websites  | ||||
|  | @ -32,57 +33,6 @@ if (mysqli_connect_errno()) { | |||
|   <script src="./css/bootsrap.min.js" type="text/javascript"></script> | ||||
|   <script src="./css/jquery.datetimepicker.min.js" type="text/javascript"></script> | ||||
| 
 | ||||
| </head> | ||||
| 
 | ||||
| <body> | ||||
| 
 | ||||
|   <nav class="navbar navbar-expand-lg navbar-dark bg-dark" style="padding-left:150px;padding-right:150px;margin:auto;"> | ||||
|     <a class="navbar-brand" href="~\..\index.php"> <img src="logo.png" style="width:30px;height:30px;"> LRR </a> | ||||
|     <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarColor02" aria-controls="navbarColor02" aria-expanded="false" aria-label="Toggle navigation"> | ||||
|       <span class="navbar-toggler-icon"></span> | ||||
|     </button> | ||||
| 
 | ||||
|     <div class="collapse navbar-collapse" id="navbarColor02"> | ||||
|       <ul class="navbar-nav mr-auto"> | ||||
|         <li class="nav-item active"> | ||||
| 
 | ||||
|         <li class="nav-item active"> | ||||
|           <!-- <a class='nav-link' href='~\..\Visitors.php'>     <i class='fa fa-globe'></i>  Visitor Portal <span class='sr-only'>(current)</span></a> --> | ||||
|         </li> | ||||
|         <?php | ||||
|         if (isset($_SESSION["user_fullname"])) { | ||||
| 
 | ||||
|           echo "       <a class='nav-link' href='~\..\Courses.php'><i class='fa fa-book'></i> Courses <span class='sr-only'>(current)</span></a>"; | ||||
|         ?>
 | ||||
|           </li> | ||||
|       </ul> | ||||
|       <form class="form-inline my-2 my-lg-0" style="color:#fff;"> | ||||
|         Welcome   <b> <?php echo $_SESSION['user_fullname']; ?> </b>  
 | ||||
| 
 | ||||
|         <?php | ||||
|           $c_date =  date("Y-m-d H:i"); | ||||
|           if (isset($_SESSION['user_student_id'])) | ||||
|             echo "(" . $_SESSION['user_type'] . " - " . $_SESSION['user_student_id'] . ")   "; | ||||
|           else | ||||
|             echo "(" . $_SESSION['user_type'] . ")   "; | ||||
|         ?>
 | ||||
| 
 | ||||
|         <?php | ||||
|           if ($_SESSION['user_type'] == "Lecturer") { | ||||
|             echo  "     <i class=\"fa fa-cog\" style=\"color:#fff;\"> </i>  <a style='color:#fff !important' href=\"~\..\Admin.php\" id=\"admin_tab\">Admin </a>"; | ||||
|           } | ||||
|         ?>
 | ||||
| 
 | ||||
|             <i class="fa fa-user" style="color:#fff;"> </i> | ||||
|          <a href="#" style='color:#fff !important' onclick="updatePass(<?php echo $_SESSION['user_id']; ?>)">Update password</a> | ||||
|             <i class="fa fa-lock" style="color:#fff;"> </i>  <a style='color:#fff !important' href="~\..\logout.php">Logout </a> | ||||
| 
 | ||||
|       <?php | ||||
|         } | ||||
|       ?>
 | ||||
|       </form> | ||||
|     </div> | ||||
|   </nav> | ||||
| 
 | ||||
|   <style> | ||||
|     .nav-item { | ||||
|  | @ -155,6 +105,59 @@ if (mysqli_connect_errno()) { | |||
|     } | ||||
|   </style> | ||||
| 
 | ||||
| </head> | ||||
| 
 | ||||
| <body> | ||||
| 
 | ||||
|   <nav class="navbar navbar-expand-lg navbar-dark bg-dark" style="padding-left:150px;padding-right:150px;margin:auto;"> | ||||
|     <a class="navbar-brand" href="~\..\index.php"> <img src="logo.png" style="width:30px;height:30px;"> LRR </a> | ||||
|     <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarColor02" aria-controls="navbarColor02" aria-expanded="false" aria-label="Toggle navigation"> | ||||
|       <span class="navbar-toggler-icon"></span> | ||||
|     </button> | ||||
| 
 | ||||
|     <div class="collapse navbar-collapse" id="navbarColor02"> | ||||
|       <ul class="navbar-nav mr-auto"> | ||||
|         <li class="nav-item active"> | ||||
| 
 | ||||
|         <li class="nav-item active"> | ||||
|           <!-- <a class='nav-link' href='~\..\Visitors.php'>     < i class='fa fa-globe'></i>  Visitor Portal <span class='sr-only'>(current)</span></a> --> | ||||
|         </li> | ||||
|         <?php | ||||
|         if (isset($_SESSION["user_fullname"])) { | ||||
| 
 | ||||
|           echo "       <a class='nav-link' href='~\..\Courses.php'><i class='fa fa-book'></i> Courses <span class='sr-only'>(current)</span></a>"; | ||||
|         ?>
 | ||||
|           </li> | ||||
|       </ul> | ||||
|       <form class="form-inline my-2 my-lg-0" style="color:#fff;"> | ||||
|         Welcome   <b> <?php echo $_SESSION['user_fullname']; ?> </b>  
 | ||||
| 
 | ||||
|         <?php | ||||
|           $c_date =  date("Y-m-d H:i"); | ||||
|           if (isset($_SESSION['user_student_id'])) | ||||
|             echo "(" . $_SESSION['user_type'] . " - " . $_SESSION['user_student_id'] . ")   "; | ||||
|           else | ||||
|             echo "(" . $_SESSION['user_type'] . ")   "; | ||||
|         ?>
 | ||||
| 
 | ||||
|         <?php | ||||
|           if ($_SESSION['user_type'] == "Lecturer") { | ||||
|             echo  "     <i class=\"fa fa-cog\" style=\"color:#fff;\"> </i>  <a style='color:#fff !important' href=\"~\..\Admin.php\" id=\"admin_tab\">Admin </a>"; | ||||
|           } | ||||
|         ?>
 | ||||
| 
 | ||||
|             <i class="fa fa-user" style="color:#fff;"> </i> | ||||
|          <a href="#" style='color:#fff !important' onclick="updatePass(<?php echo $_SESSION['user_id']; ?>)">Update password</a> | ||||
|             <i class="fa fa-lock" style="color:#fff;"> </i>  <a style='color:#fff !important' href="~\..\logout.php">Logout </a> | ||||
| 
 | ||||
|       <?php | ||||
|         } | ||||
|       ?>
 | ||||
|       </form> | ||||
|     </div> | ||||
|   </nav> | ||||
| 
 | ||||
| 
 | ||||
|   <script> | ||||
|     function updatePass(id) { | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue