-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.php
More file actions
52 lines (45 loc) · 1.95 KB
/
index.php
File metadata and controls
52 lines (45 loc) · 1.95 KB
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
<?php require_once 'includes/header.php';
require_once 'bootstrap.php';
?>
<nav class="nav">
<div class="container-fluid">
<h1 class="text-center"> STOCK MANAGEMENT SYSTEM </h1>
</div>
</nav><hr>
<div class="row"> <br></div>
<div class="row">
<div class=" col-md-6 col-sm-12 mx-auto col-md-offset-3">
<div class=" jumbotron card card-body bg-light mt-5">
<h2>Login</h2>
<p>Please fill in your credentials to log in</p>
<form action="<?php echo URLROOT; ?>/actions/__login.php" method="post">
<!--div class="form-group">
<label for="email">Email: <sup>*</sup></label>
<input type="email" name="email" class="form-control form-control-lg" placeholder="enter email">
</div-->
<!--place for error message flashing-->
<div>
<?php
//this will display any kind of error/success message
flash();
?>
</div>
<!--end flashing-->
<div class="form-group">
<label for="id">ID: <sup>*</sup></label>
<input type="text" name="id" class="form-control form-control-lg" placeholder="Enter Your ID" required>
</div>
<div class="form-group">
<label for="password">Password: <sup>*</sup></label>
<input type="password" name="password" class="form-control form-control-lg"
placeholder=" Password" required>
</div>
<input type="hidden" name="token" value="<?php echo Token::generate();?>">
<div class="form-group">
<input type="submit" name="submit" value="LOGIN" class="btn btn-primary">
</div>
</form>
</div>
</div>
</div>
<?php require_once './includes/footer.php'; ?>