-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtransfer.php
91 lines (83 loc) · 2.37 KB
/
transfer.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
<?php
session_start();
if(!isset($_SESSION["loggedin"]) || $_SESSION["loggedin"] !== true){
header("location: login.php");
exit;
}
?>
<?php require "template/header.php" ?>
<body>
<?php require "template/navbar.php" ?>
<br><br>
<div class="container">
<h2 class="display-8" style="color: #3a95d6;">Transfer Asset</h2>
<br />
<div class="row">
<div class="col">
<div class="row">
<div class="col">
<input
type="number"
name="id"
class="form-control"
placeholder="Id of the asset"
/>
<br />
<div id="searchResult"></div>
</div>
<div class="col">
<button onclick="searchAsset()" class="btn btn-primary">
Search
</button>
</div>
</div>
</div>
<div class="col">
<div id="transferFrom" style="display: none">
<div class="form-group">
<h5>Enter the new details below</h5>
</div>
<div class="form-group">
<input
type="text"
name="newOwner"
class="form-control"
placeholder="New Owner"
/>
</div>
<div class="form-group">
<input
type="text"
name="newStatus"
class="form-control"
placeholder="New status of the asset"
/>
</div>
<div class="form-group">
<input
type="text"
name="newLong"
class="form-control"
placeholder="New longitude of the asset"
/>
</div>
<div class="form-group">
<input
type="text"
name="newLat"
class="form-control"
placeholder="New latitude of the asset"
/>
</div>
<div class="form-group">
<button onclick="transferAsset()" class="btn btn-success">
Transfer
</button>
</div>
</div>
</div>
</div>
</div>
<script src="./js/transfer.js" type="text/javascript"></script>
</body>
<?php require "template/footer.php" ?>