-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.php
241 lines (137 loc) · 5.55 KB
/
main.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
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
<html>
<head>
<title>Pets Home</title>
<link href="style.css" rel="stylesheet" type="text/css">
<style>
img{
height: 200px;
width: 300px;
margin-top: 20px;
}
.searhdivPost{
background-color: #edb5bfa3;
width: 400px;
height: 660px;
color: aliceblue;
margin-top:40px;
border:none;
border-radius:30px;
text-align:center ;
}
table{
margin-left:20px;
margin-top:20px;
border-color:white;
border-radius:30px;
}
.howWorksMain{
height: auto;
background-color: white;
text-align:center;
display:grid;
grid-auto-flow:column;
grid-auto-columns:28%;
overflow-x:auto;
}
.SearchDiv{
margin-top: 10px;
height: auto;
background-color: white;
text-align:center ;
}
.logo{
width: 150px;
height: 90px;
margin-top:2px;
}
</style>
</head>
<body>
<div class="header">
<video autoplay loop class="video" muted plays-inline >
<source src="FullSizeRender.mp4" type="video/mp4">
</video>
<nav>
<img src="IMG_5874[3364].PNG" class="logo">
<ul class="nav-link">
<li>
<a href="main.php"><ion-icon name="home-outline" style="margin: 5px 5px -1.5px 5px;"></ion-icon>Home</a>
</li>
<li>
<a href="pass.html" ><ion-icon name="log-in-outline" style="margin: 5px 5px -1.5px 5px;"></ion-icon>LogIn</a>
</li>
<li>
<a href="report.php"><ion-icon name="reader-outline" style="margin: 5px 5px -1.5px 5px;"></ion-icon>Report Pet</a>
</li>
<li>
<a href="search.php"><ion-icon name="search-outline" style="margin: 5px 5px -1.5px 5px;"></ion-icon>Search for lost/found</a>
</li>
</ul>
</nav>
</div>
<div class="content">
<h1>
<strong> IS YOUR PET <span style="color:#EDB5BF;">LOST</span>?</strong>
</h1>
<br> <h2 class="a1"><ion-icon name="document-text-outline" style="margin: 5px 5px -1.5px 5px;" ></ion-icon> Create Free Listing</h2>
<br> <h2 class="a2"><ion-icon name="paper-plane-outline" style="margin: 5px 5px -1.5px 5px;"></ion-icon>Send Free Alert Instantly</h2>
<br> <h2 class="a3"><ion-icon name="add-circle-outline" style="margin: 5px 5px -1.5px 5px;"></ion-icon>Create Free Lost/Found Flyer</h2>
<br> <h2 class="a4"><ion-icon name="people-outline" style="margin: 5px 5px -2px 10px;"></ion-icon>Reach More People In Your Local Area</h2>
<br><br>
<button type="submit" class="buttonMain" onclick=" window.location.href='report.php';" >Report Now !
</button>
<br><br><br><br><br><br><br><br><br><br><br><br>
<br><br>
</div>
<div class="howWorks">
<br> Featured Posts </div>
<div class="howWorksMain">
<?php
error_reporting(E_ERROR | E_PARSE);
$host= "localhost";
$dbusername="root";
$dbpassword="123456";
$dbname="test";
$conn= new mysqli($host , $dbusername ,$dbpassword ,$dbname ,3308);
$getid="SELECT * FROM `petsinfo` ";
$getid_run=mysqli_query($conn,$getid);
while ( $row = mysqli_fetch_array( $getid_run))
{
$iimg=$row['image'];
echo"
<div class='searhdivPost'><b><h1 style='color: #47648d;'>".$row['petName']."</h1></b><br><img src='$iimg' style='border-radius:15px;'>
<br> <h2 style='background-color: #47648d; width: 200px; text-align: center; margin-left:100px; border-radius: 15px;' >".$row['petStat']."</h2>
<br><h2 style=' color : #99CED3 ;'> ID : </h2><h3>".$row['petId']."</h3>
<br><h2 style=' color : #99CED3 ;'> Last Seen Area : </h2><h3> <a href='https://www.google.com/maps/place/".$row['addres']."'>".$row['addres']."</a></h3>
<br><h2 style=' color : #99CED3 ;'>lost/found Since : </h2><br><h3>".$row['date']."</h3>
<br><h2 style=' color : #99CED3 ;'> Owner Contact info : </h2><br><h3> Phone : <a href='tel:".$row['phone']."'>".$row['phone']."</a><br> Email: <a href='mailto:".$row['email']."'>".$row['email']."</a></h3></div>
";
}
$conn->close();
?>
</div>
<!-- Div of footer -------------------------------->
<div class="footer-c">
<h3>Pets Home</h3>
<p class="main">
Pets Home is actively helping to search for your lost pets in your local area.
<br>Report your lost/found pets here and send a free alert instantly.
</p>
<ul class="social">
<li><a href="" class="fa fa-twitter" ><ion-icon name="logo-twitter"></ion-icon></a></li>
<li><a href="" class="fa fa-google"><ion-icon name="logo-google"></ion-icon></a></li>
<li><a href="" class="fa fa-youtube"><ion-icon name="logo-youtube"></ion-icon></a></li>
<li><a href="" class="fa fa-instagram"><ion-icon name="logo-instagram"></ion-icon></a></li>
</ul>
</div>
<!-- Div of copy right-------------------------------->
<div class="copy">
<p>
Terms of our Service | Copyright ©2023 Pets Home
<br>
</p>
</div>
<script type="module" src="https://unpkg.com/[email protected]/dist/ionicons/ionicons.esm.js"></script>
<script nomodule src="https://unpkg.com/[email protected]/dist/ionicons/ionicons.js"></script>
</body>
</html>