-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
140 lines (125 loc) · 5.32 KB
/
index.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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
<link rel="stylesheet" href="css/style.css">
<!-- Favicon -->
<link rel="icon" type="image/png" href="./img/logo.png">
<title>X Corp - Home</title>
<style>
body {
background: url("./img/2.jpg") no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
.footer {
position: fixed;
left: 0;
bottom: 0;
width: 100%;
background-color: transparent;
color: black;
text-align: center;
}
form {
margin: 0 auto;
}
</style>
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<a class="navbar-brand" href="#">
<img src="img/logo.png" width="30" height="30" class="d-inline-block align-top" alt="">
X CORP
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
</ul>
<a class="btn btn-primary btn-sm" href="register.php" role="button">Register</a>
</div>
</nav>
<?php
if ( isset($_GET['logout']) && $_GET['logout'] == 'success') {
echo '
<div class="alert alert-success alert-dismissible fade show" role="alert">
<strong>You have been logout.</strong> You can login again by using your credentials.
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>';
} else if (isset($_GET['regSuccess']) && $_GET['regSuccess'] == 'true') {
echo '
<div class="alert alert-success alert-dismissible fade show" role="alert">
<strong>Your Account Has Been Created Successfully.</strong>
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>';
}
?>
<div class=".container-fluid">
<div class="container">
<div class="py-5 text-center">
<img src="img/logo.png" alt="Smiley face" height="130" width="130"><br><br>
<h2>Welcome to X CORP</h2>
<p class="lead">Here you can login to your account</p>
</div>
<?php
if (isset($_GET['error']) && ($_GET['error'] == 'wrongpass' || $_GET['error'] == 'nouser') ) {
echo "<p class='text-danger text-center font-weight-bold' id='errorBanner'>Incorect Password or Email</p>";
}
?>
<form class="w-50" action="./php/Auth/login.php" method="POST">
<!-- Select Your Specialty -->
<label for="exampleFormControlSelect1">Select your Specialty</label>
<div class="form-group">
<select id="inputState" name="specialty" class="form-control" onclick="myFunction()">
<option disabled selected></option>
<option>Doctor</option>
<option>Radiology Center Staff</option>
<option>Radiologist</option>
</select>
</div>
<div class="form-group">
<h3 id="demo"></h3>
</div>
<div class="form-row">
<div class="form-group col-md-6">
<label for="inputEmail4">E-mail</label>
<input type="email" name="email" class="form-control" id="email">
</div>
<div class="form-group col-md-6">
<label for="inputPassword4">Password</label>
<input type="password" name="password" class="form-control" id="password">
</div>
</div>
<!-- Submit -->
<button type="submit" class="btn btn-primary w-100">Login</button><br><br>
<!-- Forgot My Password -->
<div>
<div class="form-group d-flex justify-content-center">
<p>Not a member yet? Create an account <a href="register.php">here</a>.</p>
</div>
</div>
</form>
</div>
</div>
<div class="footer">
<p><small>Copyright © 2020 X CORP</small></p>
</div>
<!-- CDN Scripts -->
<script src="https://code.jquery.com/jquery-3.4.1.slim.min.js" integrity="sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js" integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6" crossorigin="anonymous"></script>
<script src="./js/index.js"></script>
</body>
</html>