-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnew_equipment.php
More file actions
121 lines (105 loc) · 4.46 KB
/
new_equipment.php
File metadata and controls
121 lines (105 loc) · 4.46 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
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
<?php
include("connect.php");
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>About - Tech2Check</title>
<meta content="width=device-width, initial-scale=1.0" name="viewport">
<meta content="" name="keywords">
<meta content="" name="description">
<!-- Fav and touch icons -->
<link rel="shortcut icon" href="img/logo.png" type="image/png">
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="img/icons/114x114.png">
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="img/icons/72x72.png">
<link rel="apple-touch-icon-precomposed" href="img/icons/default.png">
<!-- Google Fonts -->
<link href="https://fonts.googleapis.com/css?family=Roboto:400,100,300,500,700,900" rel="stylesheet">
<!-- Bootstrap CSS File -->
<link href="lib/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<!-- Libraries CSS Files -->
<link href="lib/font-awesome/css/font-awesome.min.css" rel="stylesheet">
<link href="lib/owlcarousel/owl.carousel.min.css" rel="stylesheet">
<link href="lib/owlcarousel/owl.theme.min.css" rel="stylesheet">
<link href="lib/owlcarousel/owl.transitions.min.css" rel="stylesheet">
<!-- Main Stylesheet File -->
<link href="css/style.css" rel="stylesheet">
</head>
<!-- ======== @Region: body ======== -->
<body>
<div id="background-wrapper" class="buildings" data-stellar-background-ratio="0.8">
<!-- ======== @Region: header ======== -->
<?php
include("navbar.php");
?>
</div>
<!-- ======== @Region: #content ======== -->
<div class="content">
<div class="container">
<div class="row">
<div class="col-xs-12">
<h2 class="page-header">
<center>
Add New Equipment
</center>
</h2>
</div>
</div>
<form action="push/newequipmentpush.php" method="post">
<div class="form-group row">
<label class="col-xs-2 col-form-label">Model</label>
<div class="col-xs-10 selectContainer">
<select class="form-control" type="text" id="model" name="model" required>
<option value="" selected disabled>Please select Model</option>
<?php
// $ModelList = "SELECT model
// FROM model
// ORDER BY model";
// //"SELECT *
// //FROM model JOIN make
// //ON make_id";
// //ORDER BY make, model";
$sql = "SELECT * FROM model a LEFT JOIN make b ON a.make_id = b.make_id ORDER BY make, model";
$Model = mysql_query($sql);
while($row = mysql_fetch_array($Model)){
echo "<option>" . $row['make'] . " " . $row['model'] . "</option>";
}
?>
</select>
</div>
</div>
<div class="form-group row">
<label for="model" class="col-xs-2 col-form-label">Serial Number</label>
<div class="col-xs-10">
<input class="form-control" type="text" value="" id="serialnumber" name="serialnumber" placeholder="Please enter the serial number" required>
</div>
</div>
<input type = "submit" value="SUBMIT" class ="btn btn-default"/><br />
</form>
</div>
</div>
<br>
<br>
<!-- ======== @Region: #footer ======== -->
<?php
include("footer.php");
?>
<!-- Required JavaScript Libraries -->
<script src="lib/jquery/jquery.min.js"></script>
<script src="lib/bootstrap/js/bootstrap.min.js"></script>
<script src="lib/owlcarousel/owl.carousel.min.js"></script>
<script src="lib/stellar/stellar.min.js"></script>
<script src="lib/waypoints/waypoints.min.js"></script>
<script src="lib/counterup/counterup.min.js"></script>
<script src="contactform/contactform.js"></script>
<!-- Template Specisifc Custom Javascript File -->
<script src="js/custom.js"></script>
<script src="/Project/js/freelancer.min.js"></script>
<script src="/Project/lib/jquery-easing/jquery.easing.min.js"></script>
<!--Custom scripts demo background & colour switcher - OPTIONAL -->
<script src="js/color-switcher.js"></script>
<!--Contactform script -->
<script src="contactform/contactform.js"></script>
</body>
</html>