forked from skol-1/medical-imaging
-
Notifications
You must be signed in to change notification settings - Fork 0
/
login.php
72 lines (57 loc) · 2.33 KB
/
login.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<?php
session_start();
// header.php
include ('header.php');
include "helper.php";
?>
<?php
$user = array();
require ('mysqli_connect.php');
if(isset($_SESSION['userID'])){
$user = get_user_info($con, $_SESSION['userID']);
}
if($_SERVER['REQUEST_METHOD'] == 'POST'){
require ('login-process.php');
}
?>
<!-- registration area -->
<section id="login-form" style=" padding: 5% 0;
background: url('assets/1295663.jpg') no-repeat;
background-size: cover;">
<div class="row m-0">
<div class="col-lg-4 offset-lg-2">
<div class="text-center pb-5">
<h1 class="login-title " style="color:white">Login</h1>
<p class="p-1 m-0 font-ubuntu text-black-50">Login and enjoy additional features</p>
<span class="font-ubuntu text-black-50">Create a new <a href="register.php">account</a></span>
</div>
<div class="upload-profile-image d-flex justify-content-center pb-5">
<div class="text-center">
<img src="<?php echo isset($user['profileImage']) ? $user['profileImage'] : './assets/profile/male_avatar-512.png' ; ?>" style="width: 200px; height: 200px" class="img rounded-circle" alt="profile">
</div>
</div>
<div class="d-flex justify-content-center">
<form action="login.php" method="post" enctype="multipart/form-data" id="log-form">
<div class="form-row my-4">
<div class="col">
<input type="email" required name="email" id="email" class="form-control" placeholder="Email*">
</div>
</div>
<div class="form-row my-4">
<div class="col">
<input type="password" required name="password" id="password" class="form-control" placeholder="password*">
</div>
</div>
<div class="submit-btn text-center my-5">
<button type="submit" class="btn btn-warning rounded-pill text-dark px-5">Login</button>
</div>
</form>
</div>
</div>
</div>
</section>
<!-- #registration area -->
<?php
// footer.php
include ('footer.php');
?>