| 
									
										
										
										
											2020-03-16 15:23:14 +08:00
										 |  |  | <?php | 
					
						
							| 
									
										
										
										
											2021-01-29 17:25:59 +08:00
										 |  |  |   $page='Home'; | 
					
						
							|  |  |  |   require 'Header.php'; | 
					
						
							|  |  |  |   session_start(); | 
					
						
							| 
									
										
										
										
											2020-03-16 15:23:14 +08:00
										 |  |  | ?>
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-10-02 17:02:20 +08:00
										 |  |  | <?php | 
					
						
							| 
									
										
										
										
											2021-01-29 17:25:59 +08:00
										 |  |  |   // if the user has already logged in, then clicking the LRRS icon should not display the login page (i.e., index.php).
 | 
					
						
							| 
									
										
										
										
											2020-10-02 17:02:20 +08:00
										 |  |  | if (isset($_SESSION["user_fullname"])) { | 
					
						
							|  |  |  |     header("Location: Courses.php"); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | ?>
 | 
					
						
							| 
									
										
										
										
											2020-03-16 15:23:14 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-01-29 17:25:59 +08:00
										 |  |  | <br><br><br> | 
					
						
							| 
									
										
										
										
											2020-03-16 15:23:14 +08:00
										 |  |  | <br><br><br> | 
					
						
							|  |  |  | <div class="row" style="width:80%;margin:auto;"> | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-01-29 17:25:59 +08:00
										 |  |  |   <div class="col-md-4"> | 
					
						
							| 
									
										
										
										
											2020-10-02 17:02:20 +08:00
										 |  |  |     <br><br> | 
					
						
							|  |  |  |     <img src="logo_text.png" style="width"> | 
					
						
							|  |  |  |     <h1> Lab Report Repository  </h1> | 
					
						
							|  |  |  |     <br><br> | 
					
						
							| 
									
										
										
										
											2021-01-29 17:25:59 +08:00
										 |  |  |   </div> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   <div class="col-md-4 list-group"> | 
					
						
							| 
									
										
										
										
											2020-03-16 15:23:14 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  |     <br> | 
					
						
							| 
									
										
										
										
											2021-01-29 17:25:59 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-10-02 17:02:20 +08:00
										 |  |  |     <h4 class="list-group-item active"> Sign in </h4> | 
					
						
							| 
									
										
										
										
											2021-01-29 17:25:59 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-10-02 17:02:20 +08:00
										 |  |  |     <div class="list-group-item"> | 
					
						
							| 
									
										
										
										
											2020-03-16 15:23:14 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-01-29 17:25:59 +08:00
										 |  |  |       <div class="panel-body"> | 
					
						
							| 
									
										
										
										
											2020-03-16 15:23:14 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-01-29 17:25:59 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	<form method="post" action="Script.php" name="frm_login"> | 
					
						
							|  |  |  | 	  <input type="hidden" name="frm_login" value="true"/> | 
					
						
							|  |  |  | 	  Student ID / Email | 
					
						
							|  |  |  | 	  <input type="text" name="user" placeholder="Email / Student Number" class="form-control" required="required" /> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	  Password | 
					
						
							|  |  |  | 	  <input type="password" class="form-control"  name="password" placeholder="password" required="required" /> | 
					
						
							|  |  |  | 	  <br>  | 
					
						
							|  |  |  | 	  <input type="submit" class="btn btn-primary" value="Login"><br> <a href="recover_password.php" style="font-weight:normal;color:gray">Reset my password</a> | 
					
						
							| 
									
										
										
										
											2020-03-16 15:23:14 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-10-02 17:02:20 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-01-29 17:25:59 +08:00
										 |  |  | 	  <?php  | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	    error_reporting(E_ALL); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	    if(isset($_SESSION['info_login'])) { | 
					
						
							|  |  |  |             echo  '<hr><div class="alert alert-danger" role="alert">'.$_SESSION['info_login'].'</div>'; | 
					
						
							|  |  |  |             $_SESSION['info_login'] = null; | 
					
						
							|  |  |  | 	    } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	    // wrong password
 | 
					
						
							|  |  |  | 	    if(isset($_SESSION['wrong_pass'])) { | 
					
						
							|  |  |  |             echo  '<hr><div class="alert alert-danger" role="alert">'.$_SESSION['wrong_pass'].'</div>'; | 
					
						
							|  |  |  |             $_SESSION['wrong_pass'] = null; | 
					
						
							|  |  |  | 	    } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	    if(isset($_SESSION['infoChangePassword'])) { | 
					
						
							|  |  |  |             echo  '<hr><div class="alert alert-danger" role="alert">'.$_SESSION['infoChangePassword'].'</div>'; | 
					
						
							|  |  |  |             $_SESSION['infoChangePassword'] = null; | 
					
						
							|  |  |  | 	    } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	    ?>
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	</form> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |       </div> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     </div> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   </div> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   <div class="col-md-4 list-group"> | 
					
						
							| 
									
										
										
										
											2020-03-16 15:23:14 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  |     <br> | 
					
						
							| 
									
										
										
										
											2020-10-02 17:02:20 +08:00
										 |  |  |     <h4 class="list-group-item active"> Sign up </h4> | 
					
						
							| 
									
										
										
										
											2021-01-29 17:25:59 +08:00
										 |  |  |     <div class="list-group-item" style="height:235px"> | 
					
						
							| 
									
										
										
										
											2020-03-16 15:23:14 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-10-02 17:02:20 +08:00
										 |  |  |     <form method="post" action="Script.php" name="frm_signup_1"> | 
					
						
							| 
									
										
										
										
											2020-03-16 15:23:14 +08:00
										 |  |  |     <input type="hidden" name="frm_signup_1" value="true"/> | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-01-29 17:25:59 +08:00
										 |  |  | 	Student ID | 
					
						
							|  |  |  | 	<input type="text" name="student_id" placeholder="Entre your student ID" class="form-control" required=""> | 
					
						
							|  |  |  | 	<br> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	<div class="btnsignup" style="padding-top:58px"> | 
					
						
							|  |  |  | 	  <input type="submit" name="frm_signup_1" class="btn btn-primary" value="Next"> <br> Click Next to set up password | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	  <?php  | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	    error_reporting(E_ALL); | 
					
						
							|  |  |  | 	    if(isset($_SESSION['info_signup1'])) { | 
					
						
							|  |  |  |             echo  '<div class="alert alert-danger" role="alert">'.$_SESSION['info_signup1'].'</div>'; | 
					
						
							|  |  |  |             $_SESSION['info_signup1'] = null; | 
					
						
							|  |  |  | 	    } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |       ?>
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	</div> | 
					
						
							|  |  |  |       </form> | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-10-02 17:02:20 +08:00
										 |  |  |     </div> | 
					
						
							| 
									
										
										
										
											2020-03-16 15:23:14 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-01-29 17:25:59 +08:00
										 |  |  |   </div> | 
					
						
							| 
									
										
										
										
											2020-03-16 15:23:14 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-01-29 17:25:59 +08:00
										 |  |  | </div> | 
					
						
							| 
									
										
										
										
											2020-03-16 15:23:14 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | <div style="" id="footer"> | 
					
						
							| 
									
										
										
										
											2021-01-29 17:25:59 +08:00
										 |  |  |   LRRS was originally developed as a <a href="http://lanlab.org/course/2018f/se/homepage.html" style="color:white;">software engineering course project</a> by Mohamed Nor and Elmahdi Houzi. | 
					
						
							|  |  |  |   Please submit your suggestions or bug reports to  lanhui _at_ zjnu.edu.cn. | 
					
						
							|  |  |  |   Last updated on 18/04/2020 by Ashly. <a href="./homepage" style="color:white;">More information ...</a> | 
					
						
							|  |  |  | </div> | 
					
						
							| 
									
										
										
										
											2020-03-16 15:23:14 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-01-29 17:25:59 +08:00
										 |  |  | </body> | 
					
						
							| 
									
										
										
										
											2020-03-16 15:23:14 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | <style> | 
					
						
							| 
									
										
										
										
											2021-01-29 17:25:59 +08:00
										 |  |  |   #footer {
 | 
					
						
							|  |  |  |     position:fixed; | 
					
						
							|  |  |  |     bottom:0; | 
					
						
							|  |  |  |     left:0; | 
					
						
							|  |  |  |     background-color:#03417C;
 | 
					
						
							|  |  |  |     color:#e0e0e0;
 | 
					
						
							|  |  |  |     text-align:center; | 
					
						
							|  |  |  |     width:100%; | 
					
						
							|  |  |  |   } | 
					
						
							| 
									
										
										
										
											2020-03-16 15:23:14 +08:00
										 |  |  | </style> | 
					
						
							| 
									
										
										
										
											2021-01-29 17:25:59 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-03-16 15:23:14 +08:00
										 |  |  | </html> |