-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
193 lines (171 loc) · 6.57 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
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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
<?php
include('db/db.php');
$name;
session_start();
// if (isset($_SESSION['email'])) {
// $name = $_SESSION['name'];
// }
?>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="landing/styles/styles.css" />
<!--Boxicons CDN Links-->
<link href='https://unpkg.com/[email protected]/css/boxicons.min.css' rel='stylesheet'>
<title>"Govi Sewana"</title>
</head>
<body>
<div class="landing_page">
<!--sidebar -->
<div class="left">
<?php include_once("landing/sidebar.php");?>
</div>
<!--end of side bar-->
<div class="right">
<!--slideshow images-->
<div class ="slideshow">
<div class="slideshow-container">
<!--<div class="mySlides fade">
<img class="land_image" src="./images/landing1.jpg" style="width:100%">
<div class="text">Caption Text</div>
</div>
<div class="mySlides fade">
<img class="land_image" src="./images/landing2.jpg" style="width:100%">
<div class="text">Caption Two</div>
</div>
<div class="mySlides fade">
<img class="land_image" src="./images/landing3.jpg" style="width:100%">
<div class="text">Caption Three</div>
</div>
<a class="prev" onclick="plusSlides(-1)">❮</a>
<a class="next" onclick="plusSlides(1)">❯</a>
-->
</div>
<br>
<!--<div style="text-align:center">
<span class="dot" onclick="currentSlide(1)"></span>
<span class="dot" onclick="currentSlide(2)"></span>
<span class="dot" onclick="currentSlide(3)"></span>
</div>
<script>
var slideIndex = 1;
showSlides(slideIndex);
function plusSlides(n) {
showSlides(slideIndex += n);
}
function currentSlide(n) {
showSlides(slideIndex = n);
}
function showSlides(n) {
var i;
var slides = document.getElementsByClassName("mySlides");
var dots = document.getElementsByClassName("dot");
if (n > slides.length) {slideIndex = 1}
if (n < 1) {slideIndex = slides.length}
for (i = 0; i < slides.length; i++) {
slides[i].style.display = "none";
}
for (i = 0; i < dots.length; i++) {
dots[i].className = dots[i].className.replace(" active", "");
}
slides[slideIndex-1].style.display = "block";
dots[slideIndex-1].className += " active";
}
</script>-->
</div>
<!--end of slideshow-->
<!--stock from best selling farmers text-->
<div class="topic">
<?php if (isset($_SESSION['email'])) { ?>
<span class="main-topic">welcome <?php echo $_SESSION['name']; ?></span>
<?php } ?>
<br>
<span class="main-topic">Stocks From Best Selling Farmers</span>
</div>
<!--stock from best selling farmers-->
<div class="farmer-stock">
<!--row 1 start-->
<?php for( $j = 0; $j<2; $j++ ){ ?>
<div class="row">
<?php for( $i = 0; $i<4; $i++ ){ ?>
<div class="column">
<a href="stockManagement/SelectStock.php" style="text-decoration:none">
<div class="card">
<div class="stock-img">
<img class="stock-img-1" src="landing/images/carrot.jpg" alt="Jane" style="width:100%">
</div>
<div class="container">
<div class="line-1">
<div class="text1">
<p>Carrot 20KG</p>
</div>
<div class="text2">
<p>Rs.3000.00</p>
</div>
</div>
<div class="line-2">
<div class="text1">
<p class="title">Farmer : Nimal</p>
</div>
<div class="text2">
<i class='bx bx-star'></i>
<i class='bx bx-star'></i>
</div>
</div>
</div>
</div>
</div>
</a>
<?php } ?>
<!--end of the card1-->
</div>
<?php } ?>
<!--end of a row1-->
<!--For you text-->
<div class="topic">
<span class="main-topic">FOR YOU</span>
</div>
<!--for you stock posts-->
<!--row 1 start-->
<?php for( $j = 0; $j<2; $j++ ){ ?>
<div class="row">
<?php for( $i = 0; $i<4; $i++ ){ ?>
<div class="column">
<a href="stockManagement/SelectStock.php" style="text-decoration:none">
<div class="card">
<div class="stock-img">
<img class="stock-img-1" src="landing/images/carrot.jpg" alt="Jane" style="width:100%">
</div>
<div class="container">
<div class="line-1">
<div class="text1">
<p>Carrot 20KG</p>
</div>
<div class="text2">
<p>Rs.3000.00</p>
</div>
</div>
<div class="line-2">
<div class="text1">
<p class="title">Farmer : Nimal</p>
</div>
<div class="text2">
<i class='bx bx-star'></i>
<i class='bx bx-star'></i>
</div>
</div>
</div>
</div>
</div>
</a>
<?php } ?>
<!--end of the card1-->
</div>
<?php } ?>
<!--end of for you stocks-->
</div><!--end of right div-->
</div>
</body>
</html>