| 
									
										
										
										
											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
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-04-09 14:52:08 +08:00
										 |  |  | <div class="row" style="width:85%;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> | 
					
						
							| 
									
										
										
										
											2021-04-09 15:03:10 +08:00
										 |  |  |     <img src="logo.png" style="width:40%; position:relative; right:-95px; top:1px;"> | 
					
						
							| 
									
										
										
										
											2020-12-25 21:30:34 +08:00
										 |  |  |     <br><br> | 
					
						
							| 
									
										
										
										
											2021-04-09 15:03:10 +08:00
										 |  |  |     <div style="width:20%; position:relative; right:-90px; font-family: Poppins-Regular;"> | 
					
						
							| 
									
										
										
										
											2020-12-25 21:30:34 +08:00
										 |  |  |     <h1>Lab Report Repository</h1> | 
					
						
							| 
									
										
										
										
											2020-10-02 17:02:20 +08:00
										 |  |  |     <br><br> | 
					
						
							| 
									
										
										
										
											2020-03-16 15:23:14 +08:00
										 |  |  |     </div> | 
					
						
							| 
									
										
										
										
											2020-12-25 21:30:34 +08:00
										 |  |  |     </div> | 
					
						
							| 
									
										
										
										
											2020-03-16 15:23:14 +08:00
										 |  |  |     <br> | 
					
						
							| 
									
										
										
										
											2020-12-25 21:30:34 +08:00
										 |  |  |     <div style = "position:relative; left:240px; top:-2px;"> | 
					
						
							|  |  |  |     <h4 class="list-group-item active" style="font-weight:normal;font-family: Poppins-Regular;"> Sign in </h4> | 
					
						
							| 
									
										
										
										
											2020-10-02 17:02:20 +08:00
										 |  |  |     <div class="list-group-item"> | 
					
						
							| 
									
										
										
										
											2020-03-16 15:23:14 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  |     <div class="panel-body"> | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-10-02 17:02:20 +08:00
										 |  |  |     <form method="post" action="Script.php" name="frm_login"> | 
					
						
							|  |  |  |     <input type="hidden" name="frm_login" value="true"/> | 
					
						
							| 
									
										
										
										
											2021-07-22 09:31:14 +08:00
										 |  |  |     Student ID / Instructor Email | 
					
						
							| 
									
										
										
										
											2021-11-27 23:02:44 +08:00
										 |  |  |     <input type="text" name="user" placeholder="Email / Student Number" class="form-control" required="required" id="uname" /> | 
					
						
							| 
									
										
										
										
											2020-03-16 15:23:14 +08:00
										 |  |  |     <br> | 
					
						
							| 
									
										
										
										
											2020-10-02 17:02:20 +08:00
										 |  |  |     Password | 
					
						
							| 
									
										
										
										
											2021-11-27 23:02:44 +08:00
										 |  |  |     <input type="password" class="form-control"  name="password" placeholder="password" required="required" id="upass" /> | 
					
						
							| 
									
										
										
										
											2020-12-25 21:30:34 +08:00
										 |  |  |     <div class="text-center"> | 
					
						
							| 
									
										
										
										
											2021-11-27 23:02:44 +08:00
										 |  |  |     <br><input type="submit" class="btn-primary" value="Login" id="log_btn"> | 
					
						
							| 
									
										
										
										
											2020-12-25 21:30:34 +08:00
										 |  |  |     </div> | 
					
						
							| 
									
										
										
										
											2021-10-20 23:18:16 +08:00
										 |  |  |     <br> <a href="recover_password.php" style="font-weight:normal;color:#2471A3; font-family: Poppins-Regular;
 | 
					
						
							| 
									
										
										
										
											2021-04-09 15:06:32 +08:00
										 |  |  |     font-size: 17px;">Reset my password</a>
 | 
					
						
							| 
									
										
										
										
											2020-12-25 21:30:34 +08:00
										 |  |  |     <div class="text-center"> | 
					
						
							|  |  |  |     <br><span class="txt1">Don't have an account?</span> | 
					
						
							| 
									
										
										
										
											2021-11-27 23:02:44 +08:00
										 |  |  |          <a class="txt2" href="signup.php" style="font-weight:normal" id="signup_btn">Sign Up</a> | 
					
						
							| 
									
										
										
										
											2020-12-25 21:30:34 +08:00
										 |  |  |         </a> | 
					
						
							| 
									
										
										
										
											2020-10-02 17:02:20 +08:00
										 |  |  |     </div> | 
					
						
							| 
									
										
										
										
											2020-03-16 15:23:14 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-10-02 17:02:20 +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 pass
 | 
					
						
							|  |  |  |     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; | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  |     ?>
 | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |     </div> | 
					
						
							|  |  |  |     </form> | 
					
						
							| 
									
										
										
										
											2020-12-25 21:30:34 +08:00
										 |  |  |     </div> | 
					
						
							| 
									
										
										
										
											2020-10-02 17:02:20 +08:00
										 |  |  | </div> | 
					
						
							|  |  |  | </div> | 
					
						
							|  |  |  | </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-10-20 23:18:16 +08:00
										 |  |  | <div id="footer"> | 
					
						
							| 
									
										
										
										
											2021-01-05 11:26:12 +08:00
										 |  |  |     LRR 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> | 
					
						
							| 
									
										
										
										
											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
										 |  |  | </body> | 
					
						
							| 
									
										
										
										
											2020-03-16 15:23:14 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | <style> | 
					
						
							| 
									
										
										
										
											2020-12-25 21:30:34 +08:00
										 |  |  |     /*------------------------------------------------------------------ | 
					
						
							|  |  |  | [ Login Button ]*/ | 
					
						
							|  |  |  | .btn-primary { | 
					
						
							|  |  |  |             color: white; | 
					
						
							|  |  |  |             border-radius: 5px; | 
					
						
							|  |  |  |             text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); | 
					
						
							|  |  |  |             background: rgb(75, 184, 240); | 
					
						
							| 
									
										
										
										
											2021-04-09 15:17:01 +08:00
										 |  |  |             padding:5px 100px; | 
					
						
							| 
									
										
										
										
											2020-12-25 21:30:34 +08:00
										 |  |  |             font-family: Poppins-Regular; | 
					
						
							|  |  |  |             font-size: 23px; | 
					
						
							|  |  |  |             line-height: 1.5; | 
					
						
							|  |  |  |         } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-03-16 15:23:14 +08:00
										 |  |  | #footer{
 | 
					
						
							| 
									
										
										
										
											2020-10-02 17:02:20 +08:00
										 |  |  | position:fixed; | 
					
						
							|  |  |  | bottom:0; | 
					
						
							|  |  |  | left:0; | 
					
						
							| 
									
										
										
										
											2020-03-16 15:23:14 +08:00
										 |  |  | background-color:#03417C;
 | 
					
						
							|  |  |  | color:#FFF;
 | 
					
						
							|  |  |  | text-align:center; | 
					
						
							|  |  |  | width:100%; | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2020-12-25 21:30:34 +08:00
										 |  |  | .txt1 { | 
					
						
							|  |  |  |   font-family: Poppins-Regular; | 
					
						
							|  |  |  |   font-size: 18px; | 
					
						
							|  |  |  |   line-height: 1.5; | 
					
						
							|  |  |  |   color: #666666;
 | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | .txt2 { | 
					
						
							|  |  |  |   font-family: Poppins-Regular; | 
					
						
							|  |  |  |   font-size: 19px; | 
					
						
							|  |  |  |   line-height: 1.5; | 
					
						
							|  |  |  |   color: #2471A3;
 | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											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> |