-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
69 lines (66 loc) · 1.73 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
<?php
$jobs = array(
array(
"job_title" => "Azure Cloud Developer",
"job_description" => "We are seeking an experienced and professional Microsoft .Net Web Applications Developer with Sharepoint/Azure.",
"salary" => "$115,000"
),
array(
"job_title" => "DevOps Engineer",
"job_description" => "You’ll work with a small but growing team of engineers with a passion for building the best landing experience platform on the planet",
"salary" => "$125,000"
)
);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>PHP Jobs</title>
<link href="//netdna.bootstrapcdn.com/bootswatch/3.1.1/cosmo/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<div class="navbar navbar-default" role="navigation">
<div class="container">
<div class="navbar-header">
<a class="navbar-brand" href="index.php"><span class="glyphicon glyphicon-home"></span> PHP Jobs <span class="label label-info">v2.0</span></a>
</div>
</div>
</div>
<div class="container">
<h1><span class="glyphicon glyphicon-list"></span> Current Jobs</h1>
<?php
if (count($jobs) > 0)
{
?>
<table class="table table-striped">
<tr>
<th>Job Title</th>
<th>Job Descripton</th>
<th>Salary</th>
</tr>
<?php
foreach($jobs as $job)
{
?>
<tr>
<td><?php echo $job['job_title'] ?></td>
<td><?php echo $job['job_description'] ?></td>
<td><?php echo $job['salary'] ?></td>
</tr>
<?php
}
?>
</table>
<?php
}
else
{
?>
<h2>There are no current jobs</h2>
<?php
}
?>
</div>
</body>
</html>