-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.php
executable file
·91 lines (87 loc) · 3.5 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
<?php
session_start();
//include or require takes the code from *.php files to this file
include 'navbar.php';
require 'model/db.php';
?>
<section class="section">
<div class="container">
<h5><i class="fas fa-box blue-text"></i> Equipment List</h5>
<div class="divider"></div><br>
<div class="row">
<!-- Equipment icon with number -->
<div class="col s12 m9">
<div class="row">
<?php
//sql statement to select equipments
$sql = "SELECT * FROM `equipment`";
////perform query on $sql
$result = mysqli_query($conn, $sql);
//when the row is equal to the fetched row from result
while ($row = mysqli_fetch_array($result)):
?>
<div class='col s12 m6'>
<div class='card'>
<div class='card-image'>
<!-- added image -->
<img src='img/machine1.jpg' class='responsive-img' alt='equipment'>
</div>
<div class='card-action'>
<!-- input id of the equipment -->
<input type="hidden" name="id" value="<?php echo $row['equip_id']; ?>">
<div><?php echo $row['equip_id']; ?></div>
<div><?php echo $row['Equipment']; ?></div>
<div><?php echo $row['Model']; ?></div>
<br>
<div class="center">
<a href="bookslots.php?id=<?php echo $row['equip_id']; ?>" class="btn blue">Book</a>
</div>
</div>
</div>
</div>
<?php endwhile ?>
</div>
</div>
<div class="row">
<ul class="collection with-header z-depth-1">
<li class="collection-header blue white-text">
<i class="fas fa-info-circle"></i> Notification
</li>
<li>
<!-- link register.php -->
<p style="padding:0 1em;">Please <a href="register.php">register</a> before making any booking,
once booked print the receipt and bring the receipt for payment at counter receptionist.</p>
</li>
</ul>
</div>
<div class="row">
<ul class="collection with-header z-depth-1">
<li class="collection-header blue white-text">
<i class="fas fa-map-marker"></i> Contact us
</li>
<li>
<img class="responsive-img" src="img/contact_us.jpg" width="200" height="200" alt="contact">
</li>
<li>
<p style="padding:0 1em;">
<br><br>
<i class="fas fa-phone"></i> 01905 267841<br>
<!-- email id for C4dfed -->
<i class="fas fa-envelope"></i> <a href="mailto:c4dfed@iitmandi.ac.in">C4DFED@iitmandi.ac.in</a> <br>
<i> <a href="contactus.php"> Contact Us </a> </i><br>
Account Details: <br>
1) NAME OF ACCOUNT HOLDER: Director, Indian Institute of Technology, MANDI – SRIC, (IIT MANDI – SRIC)<br>
2) BANK NAME: PUNJAB NATIONAL BANK, IIT KAMAND, MANDI, HP PIN – 175005, Ph. 01905-267094<br>
3) BANK ACCOUNT NUMBER: 0311000100958570 4) IFS CODE OF THE BRANCH: PUNB0731500<br>
5) MICR CODE OF BANK: 175024138 6) SWIFT CODE: PUNBINBBPAR
</p>
</li>
</ul>
</div>
</div>
</div>
</div>
</section>
<?php
include 'footer.php';
?>