-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.php
120 lines (110 loc) · 4.02 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
<?PHP
$ip = $_SERVER['REMOTE_ADDR'];
$handle = fopen("data.txt", "a");
fwrite($handle, "<br>IP: $ip \r\n ");
fclose($handle);
?>
<?php
error_reporting(0);
include 'db/config.php';
session_start();
?>
<?php
$sql_news = "SELECT * FROM news ORDER BY date DESC LIMIT 3; ";
$news_data=mysqli_query($conn, $sql_news);
$sql_rand="SELECT * FROM apr_miss ORDER BY RAND() LIMIT 3;";
$rand_data=mysqli_query($conn, $sql_rand);
?>
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>Home</title>
<link rel="icon" type="image/x-icon" href="img/fav.ico">
<link rel="stylesheet" href="css/style.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Boxicons icons used -->
<link href="https://unpkg.com/[email protected]/css/boxicons.min.css" rel="stylesheet">
</head>
<?php
include 'codes.php';
echo $header;
?>
<script>
function gettouch(){
window.location.href = "about-us/contact.php?isScroll="+1 ;
}
</script>
<div class="home-section">
<!-- <p>hello</p> -->
<div class="home-image">
<img src="img/bg1.jpg" alt="Image" width="100%" height="400px">
<span id="quote"><h1><mark>We never stop caring</mark></h1>
<mark>We are the only 24x7 helpline for anyone <br></mark>
<mark>affected by someone going missing.<br></mark>
<mark>For support call 90XX XXXX.</mark>
</span>
</div>
<div class="btns-image-footer">
<a href="#"><button id="btn1">Emergency <i class='bx bxs-chevron-right' ></i></button></a>
<a href="contact.php"><button id="btn2">Donate <i class='bx bxs-chevron-right' ></i></button></a>
</div>
<div class="recent-display">
<span id="quote2">Have you seen<br>someone?</span>
<span id="quote3">Yes? Click the image<i class='bx bxs-chevron-right' ></i></span>
<div class="recent-images">
<?php
if(mysqli_num_rows($rand_data) > 0){
while($prls = mysqli_fetch_assoc($rand_data)){
?>
<div class="img-holder" onclick="location.href= 'search/popup/popup.php?id=<?php echo $prls['p_id']; ?>';">
<img src="uploads/reports/pimg/<?php echo $prls['pimg_newname'];?>" alt=""><br>
<a href="#">
<span><b><?php echo $prls['flname'];?></b></span><br>
<span><?php echo $prls['city'];?></span></a>
</div>
<?php
}
}
?>
</div>
</div>
<div class="our-vision">
<!-- <h2>_</h2> -->
<div id="bar"></div><br>
<span id="vision">Offering a lifeline to everyone</span><br>
<span id="quote4">Our mission is to be a lifeline to every missing person, and every family member <br>
and friend left behind.
Our vision is for every misssing child and adult, and<br>
every loved one left behind, to find help, hope and a safe way to reconnect.<br>
</span>
<a href="about-us"><button id="btn3">Read More <i class='bx bxs-chevron-right' ></i></button></a>
</div>
<div class="news">
<span id="quote5">Latest news from PublicLens</span>
<div class="news-holder">
<?php
if(mysqli_num_rows($news_data) > 0){
while($news = mysqli_fetch_assoc($news_data)){
?>
<div class="news-pic-container">
<img src="img/news/<?php echo $news['nimage'];?>" alt="news"><br>
<div class="news-desc">
<span id="news-date"><?php echo $news['date'];?></span><br>
<span id="news-desc"><?php echo $news['ndesc'];?></span>
</div>
</div>
<?php
}
}
?>
</div>
<a href="news.php"><button id="btn4">Read all news <i class='bx bxs-chevron-right' ></i></button></a>
</div>
<?php
echo $totalk;
?>
</div>
<?php
echo $footer;
?>