Make index.php look better

Bug430-Eden2
Lan Hui 2023-07-31 17:09:21 +08:00
parent f81b98e6aa
commit 24ed22e5b8
1 changed files with 15 additions and 17 deletions

View File

@ -20,10 +20,9 @@ if (isset($_SESSION["user_fullname"])) {
<br><br> <br><br>
<div style="width:20%; position:relative; right:-90px; font-family: Poppins-Regular;"> <div style="width:20%; position:relative; right:-90px; font-family: Poppins-Regular;">
<h1>Lab Report Repository</h1> <h1>Lab Report Repository</h1>
<br><br>
</div> </div>
</div> </div>
<br>
<div style = "position:relative; left:240px; top:-2px;"> <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> <h4 class="list-group-item active" style="font-weight:normal;font-family: Poppins-Regular;"> Sign in </h4>
<div class="list-group-item"> <div class="list-group-item">
@ -32,53 +31,52 @@ if (isset($_SESSION["user_fullname"])) {
<form method="post" action="Script.php" name="frm_login"> <form method="post" action="Script.php" name="frm_login">
<input type="hidden" name="frm_login" value="true"/> <input type="hidden" name="frm_login" value="true"/>
Student ID / Instructor Email Account name
<input type="text" name="user" placeholder="Email / Student Number" class="form-control" required="required" id="user_name" /> <input type="text" name="user" placeholder="Student Number / Email address" class="form-control" required="required" id="user_name" />
<br> <br>
Password Password
<input type="password" class="form-control" name="password" placeholder="password" required="required" id="user_password" /> <input type="password" class="form-control" name="password" placeholder="password" required="required" id="user_password" />
<div class="text-center"> <div class="text-left">
<br><input type="submit" class="btn-primary" value="Login" id="login_btn"> <br><input type="submit" class="btn-primary" value="Login" id="login_btn">
</div> </div>
<br> <a href="recover_password.php" style="font-weight:normal;color:#2471A3; font-family: Poppins-Regular;
font-size: 17px;">Reset my password</a> <div class="text-left">
<div class="text-center"> <span class="txt1">Don't have an account yet?</span>
<br><span class="txt1">Don't have an account?</span>
<a class="txt2" href="signup.php" style="font-weight:normal" id="signup_link">Sign Up</a> <a class="txt2" href="signup.php" style="font-weight:normal" id="signup_link">Sign Up</a>
</a>
</div> </div>
<div class="text-left">
<span class="txt1">Forget your password?</span>
<a class="txt2" href="recover_password.php" style="font-weight:normal">Reset my password</a>
</div>
<?php <?php
error_reporting(E_ALL); error_reporting(E_ALL);
if(isset($_SESSION['info_login'])) { if(isset($_SESSION['info_login'])) {
echo '<hr><div class="alert alert-danger" role="alert">'.$_SESSION['info_login'].'</div>'; echo '<hr><div class="alert alert-danger" role="alert">'.$_SESSION['info_login'].'</div>';
$_SESSION['info_login']=null; $_SESSION['info_login'] = null;
} }
// wrong pass // wrong pass
if(isset($_SESSION['wrong_pass'])) { if(isset($_SESSION['wrong_pass'])) {
echo '<hr><div class="alert alert-danger" role="alert">'.$_SESSION['wrong_pass'].'</div>'; echo '<hr><div class="alert alert-danger" role="alert">'.$_SESSION['wrong_pass'].'</div>';
$_SESSION['wrong_pass']=null; $_SESSION['wrong_pass'] = null;
} }
if(isset($_SESSION['infoChangePassword'])) { if(isset($_SESSION['infoChangePassword'])) {
echo '<hr><div class="alert alert-danger" role="alert">'.$_SESSION['infoChangePassword'].'</div>'; echo '<hr><div class="alert alert-danger" role="alert">'.$_SESSION['infoChangePassword'].'</div>';
$_SESSION['infoChangePassword']=null; $_SESSION['infoChangePassword'] = null;
} }
?> ?>
</form>
</div> </div>
</form>
</div> </div>
</div> </div>
</div> </div>
</div>
</div>
<div id="footer"> <div id="footer">