-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaddTrain.php
44 lines (37 loc) · 1.46 KB
/
addTrain.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
<?php
include 'database/init.php';
protect_page();
include('includes/header.php');
include('includes/navbar.php');
?>
<div class="container">
<div class="card o-hidden border-0 shadow-lg my-5">
<div class="card-body p-0">
<!-- Nested Row within Card Body -->
<div class="row">
<<div class="col-lg-2 d-flex"></div>
<div class="col-lg-7">
<div class="p-5">
<div class="text-center">
<h1 class="h4 text-gray-900 mb-4">Add a Train!</h1>
</div>
<form id="form" class="user" action="Manage_Train/addTrainQuery.php" method="POST">
<div class="form-group">
<input type="text" class="form-control form-control-user" name="trainId" placeholder="Train Id">
</div>
<div class="form-group">
<input type="text" class="form-control form-control-user" name="trainName" placeholder="Train Name">
</div>
<a href="#" class="btn btn-primary btn-user btn-block" name="addTrain" onclick="document.getElementById('form').submit();"> Add New Train </a>
<!-- <button type="submit" name="addTrain" class="btn btn-danger"> Add Train</button> -->
</form>
</div>
</div>
</div>
</div>
</div>
</div>
<?php
include('includes/scripts.php');
include('includes/footer.php');
?>