-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfirstpage.php
More file actions
113 lines (102 loc) · 4.61 KB
/
firstpage.php
File metadata and controls
113 lines (102 loc) · 4.61 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
<?php
require 'connconf.php';
require 'filepath.php';
$query = 'SELECT * from category';
$result = mysqli_query($connection, $query);
while ($row = mysqli_fetch_assoc($result)) {
echo $row['name'];
echo '<img src="' . $cat_img_path . $row['img'] . '" />';
}
?>
<!DOCTYPE html>
<html>
<head>
<title></title>
<link rel="stylesheet" type="text/css" href="assets/css/first page.css">
</head>
<body>
<div class="container1" id="maindiv">
<div class="inner1" id="sub1div">
WELCOME TO ELEXFLEX
</div>
<div class="inner2" id="sub2div">ELECTRONIC APPLIANCES</div>
<br><br>
<table>
<tr>
<td>
<div id="category" class="category1">
<input type="image" name="computerAPP" class="image1" src="https://api.time.com/wp-content/uploads/2017/05/laptops.jpg?quality=85">
<label for="comp" id="comp">COMPUTERS</label> <br>
<select onchange="redirect_page('s1')" id="s1">
<option>SELECT Category</option>
<option value="Laptop">Laptop</option>
<option value="Monitor">Monitor</option>
<option value="Mouse">Mouse</option>
<option value="Keyboard">Keyboard</option>
<option value="Ram">Ram</option>
<option value="Storage">Storage</option>
</select>
</div>
</td>
<td>
<div id="category" class="category2">
<input type="image" name="mobile" class="image1" src="https://i.cdn.newsbytesapp.com/images/l142_5951592045581.jpg">
<label for="mobiles" id="phone">ENTERTAINMENT</label> <br>
<select onchange="redirect_page('s2')" id="s2">
<option>SELECT Category</option>
<option value="SmartPhones">SmartPhones</option>
<option value="Television">Television</option>
</select>
</div>
</td>
</tr>
<tr>
<td>
<div id="category" class="category3">
<input type="image" name="washingmachine" class="image1" src="https://www.ledlightexpert.com/assets/templates/ledlightexpert-core/images/led-bulb-on_2_OPT.jpg">
<label for="washingmac" id="washmc">LIGHTS</label> <br>
<select onchange="redirect_page('s3')" id="s3">
<option>SELECT Category</option>
<option value="Bulb">Bulb</option>
<option value="decoratives">decoratives</option>
<option value="Led">Led</option>
<option value="Torch">Torch</option>
<option value="Lamp">Lamp</option>
</select>
</div>
</td>
<td>
<div id="category" class="category4">
<input type="image" name="fridge" class="image1" src="https://www.sathya.in/Media/Default/Thumbs/0029/0029021-lg-fridge-gld241argy.jpg">
<label for="fridge" id="ref">OTHERS</label> <br>
<select onchange="redirect_page('s4')" id="s4">
<option>SELECT Category</option>
<option value="Fridge">Fridge</option>
<option value="Fan">Fan</option>
<option value="Microwave">Microwave</option>
<option value="Mixer">Mixer</option>
<option value="Juicer">Juicer</option>
<option value="Washing+Machine">Washing Machine</option>
</select>
</div>
</td>
</tr>
<!--<tr style="text-align: left;">
<td>
<div class="extrainfo">
<a href="aboutus.html">ABOUT US</a><br>
<br>
<a href="contact.html">CONTACT</a>
</div>
<td>
</tr>-->
</table>
</div>
<script type="text/javascript">
function redirect_page(select_id) {
var select_ele = document.getElementById(select_id);
window.location.replace('listing.php?sub-category=' + select_ele.value);
}
</script>
</body>
</html>