-
Notifications
You must be signed in to change notification settings - Fork 0
/
aiml.php
189 lines (170 loc) · 8.49 KB
/
aiml.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
<?php
require 'db/config.php';
if(!empty($_SESSION["id"])){
$id = $_SESSION["id"];
$name = $_SESSION["name"];
$result = mysqli_query($conn, "SELECT * FROM tb_user WHERE id = $id");
$row = mysqli_fetch_assoc($result);
}
else{
header("Location: logout.php");
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<Title>HOWLR</Title>
<link rel="stylesheet" href="css/all.css">
<link rel="stylesheet" href="css/landing.css">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script type="module" src="script.js"></script>
<script>
function changeLanguage(language) {
var element = document.getElementById("url");
element.value = language;
element.innerHTML = language;
}
function showDropdown() {
document.getElementById("myDropdown").classList.toggle("show");
}
// Close the dropdown if the user clicks outside of it
window.onclick = function(event) {
if (!event.target.matches('.dropbtn')) {
var dropdowns = document.getElementsByClassName("dropdown-content");
var i;
for (i = 0; i < dropdowns.length; i++) {
var openDropdown = dropdowns[i];
if (openDropdown.classList.contains('show')) {
openDropdown.classList.remove('show');
}
}
}
}
</script>
<script src="https://maps.googleapis.com/maps/api/js?key=<your api key>&callback=initMap&libraries=&v=weekly"
defer
></script>
<style>
#data, #allData{
display:none;
}
</style>
</head>
<body>
<input type="checkbox">
<div class="sidebar">
<div class="sidebar-brand">
<h1><span><img src="res/wolf.png" width="70px" height="70px" alt=""></span><span><a href="landing.php">HOWLR</a></span></h1>
</div>
<div class="sidebar-menu">
<ul>
<li>
<br><br>
</li>
<li>
<a href="htmlcss.php"><span class="fa-brands fa-html5"></span>
<span>HTML/CSS</span></a>
</li>
<li>
<a href="phpjs.php"><span class="fa-brands fa-php"></span>
<span>PHP/JS</span></a>
</li>
<li>
<a href="fs.php"><span class="fa-solid fa-file-code"></span>
<span>Full Stack</span></a>
</li>
<li>
<a href="c.php"><span class="fa-solid fa-c"></span>
<span>C programming</span></a>
</li>
<li>
<a href="java.php"><span class="fa-brands fa-java"></span>
<span>JAVA</span></a>
</li>
<li>
<a href="pyth.php"><span class="fa-brands fa-python"></span>
<span>PYTHON</span></a>
</li>
<li>
<a href="#" class="active"><span class="fa-solid fa-robot"></span>
<span>AI/ML</span></a>
</li>
</ul>
</div>
</div>
<div class="main-content">
<header>
<h2>
<label for="nav-toggle">
<span class="fa-solid fa-robot"></span>
</label>
Jobs Nearby for AL/ML
</h2>
<div class="userwrapper">
<div>
<img src="res/profilepic.png" width="50px" height="50px" style="background: transparent">
<h4><?php echo $row['username'];?> </h4>
<div class="dropdown">
<!-- three dots -->
<ul class="dropbtn icons btn-right showLeft" onclick="showDropdown()">
<li></li>
<li></li>
<li></li>
</ul>
<!-- menu -->
</div>
<div id="myDropdown" class="dropdown-content">
<a href="#home">Profile</a>
<a href="logout.php">Logout</a>
</div>
</div>
</div>
</header>
<main class="landbg">
<select name="Set" class="dropmain" aria-placeholder="Set location">
<option value="Set_by_location">Filter by location</option>
<option>Jayanagar</option>
<option>Basavanagudi</option>
<option>JP Nagar</option>
<option>Kumarswamy Layout</option>
<option>Bommanahalli</option>
<option>Indiranagar</option>
<option>Koramangala</option>
</select>
<input type="text" class="textusland" placeholder="Search area...">
<input type="submit" value="Search" class="textusiland" >
<div id="map" style="height: 45%; width: 80%; position: relative;top: 3rem;border-radius: 1rem;"></div>
<script>(g=>{var h,a,k,p="The Google Maps JavaScript API",c="google",l="importLibrary",q="_ib_",m=document,b=window;b=b[c]||(b[c]={});var d=b.maps||(b.maps={}),r=new Set,e=new URLSearchParams,u=()=>h||(h=new Promise(async(f,n)=>{await (a=m.createElement("script"));e.set("libraries",[...r]+"");for(k in g)e.set(k.replace(/[A-Z]/g,t=>"_"+t[0].toLowerCase()),g[k]);e.set("callback",c+".maps."+q);a.src=`https://maps.${c}apis.com/maps/api/js?`+e;d[q]=f;a.onerror=()=>h=n(Error(p+" could not load."));a.nonce=m.querySelector("script[nonce]")?.nonce||"";m.head.append(a)}));d[l]?console.warn(p+" only loads once. Ignoring:",g):d[l]=(f,...n)=>r.add(f)&&u().then(()=>d[l](f,...n))})
({key: "AIzaSyDa3tPUaEQcOJqTi6fxaSO0LU529j7GD74", v: "weekly"});</script>
<div class="container">
<input type="radio" class="radio" name="progress" value="five" id="five">
<label for="five" class="label">5KM</label>
<input type="radio" class="radio" name="progress" value="twentyfive" id="twentyfive" checked>
<label for="twentyfive" class="label">10KM</label>
<input type="radio" class="radio" name="progress" value="fifty" id="fifty">
<label for="fifty" class="label">15KM</label>
<input type="radio" class="radio" name="progress" value="seventyfive" id="seventyfive">
<label for="seventyfive" class="label">20KM</label>
<input type="radio" class="radio" name="progress" value="onehundred" id="onehundred">
<label for="onehundred" class="label">30KM</label>
<div class="progress">
<div class="progress-bar"></div>
</div>
</div>
</main>
</div>
<?php
require 'jobs.php';
$str = new howlr2;
$coll = $str->getBlankLatLng();
$coll = json_encode($coll, true);
// print_r($coll);
echo '<div id="data">' . $coll . '</div>';
$allData = $str->getAI();
$allData = json_encode($allData, true);
echo '<div id="allData">' . $allData . '</div>';
?>
</body>
</html>