-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcareer.php
81 lines (76 loc) · 2.87 KB
/
career.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
<?php
include_once 'scripts/lang.php';
$language = $_SERVER['HTTP_ACCEPT_LANGUAGE'];
$deviceLang = substr($language, 0, 2);
session_start();
$lang = isset($_SESSION['lang']) ? $_SESSION['lang'] : $deviceLang;
?>
<!DOCTYPE html>
<html lang="<?php echo $lang; ?>">
<head>
<title><?php getValueFromJson('title'); ?></title>
<?php include 'components/head.php'; ?>
<link rel="stylesheet" href="css/career.css">
<link rel="stylesheet" href="css/responsive/career.css">
<script src="js/career.js" defer></script>
<script src="js/job.js" defer></script>
</head>
<body>
<?php include ('components/scrollToTop.php'); ?>
<header>
<?php include ('components/header.php'); ?>
</header>
<main>
<div id="stripeWrap">
<h1>Join us !</h1>
<h2>The future in cyclotron designs and technologies for Industrial and Medical Applications</h2>
<img src="assets/img/career/1.webp" alt="Join us image 1">
<img src="assets/img/career/2.webp" alt="Join us image 2">
</div>
<div id="textWrap">
<a><?php getValueFromJson('text.1') ?></a>
<br><br>
<a><?php getValueFromJson('text.2') ?></a>
</div>
<div id="searchWrap">
<input type="text" placeholder="<?php getValueFromJson('search') ?>" id="search">
<img src="assets/img/icons/search.svg" alt="Search">
</div>
<div id="jobsWrap">
<?php
try {
include_once 'scripts/connectDB.php';
$conn = connectToDB();
$query = "SELECT * FROM jobs";
$result = mysqli_query($conn, $query);
if (mysqli_num_rows($result) > 0) {
while ($row = mysqli_fetch_assoc($result)) {
$name = $row['name'];
$description = $row['description'];
$linkedinUrl = $row['linkedin'];
if (empty($linkedinUrl)) {
$linkedinUrl = 'https://www.linkedin.com/company/aima-developpement/jobs/';
}
$linkedin = getValueFromJson('jobs.linkedin', false);
$email = getValueFromJson('jobs.email', false);
include 'components/job.php';
}
} else {
echo '<div class="alert"><a>' . getValueFromJson("jobs.noJobs", false) . '</a></div>';
}
mysqli_close($conn);
} catch (Exception $e) {
echo "An error occurred: " . $e->getMessage();
}
?>
</div>
<div>
<a><?php getValueFromJson("visit") ?></a>
</div>
</main>
<footer>
<?php include ('components/footer.php'); ?>
</footer>
</body>
</html>
<!-- © AIMA DEVELOPPEMENT 2024 -->