updated templates
This commit is contained in:
parent
7139076879
commit
73aa07ef75
|
|
@ -0,0 +1,14 @@
|
|||
<main class = "sidebar">
|
||||
<section class="left">
|
||||
<ul>
|
||||
<?php require 'nav.html.php';?>
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
<section class="right">
|
||||
<h1> <?=$heading?> Jobs</h1>
|
||||
<ul class="listing">
|
||||
<?php require 'job.html.php';?>
|
||||
</ul>
|
||||
</section>
|
||||
</main>
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
<main class="home">
|
||||
<p>Welcome to Jo's Jobs, we're a recruitment agency based in Northampton. We offer a range of different office jobs. Get in touch if you'd like to list a job with us.</a></p>
|
||||
<h2>Select the type of job you are looking for:</h2>
|
||||
<ul>
|
||||
<li><a href="?page=it">IT</a></li>
|
||||
<li><a href="?page=hr">Human Resources</a></li>
|
||||
<li><a href="?page=sales">Sales</a></li>
|
||||
<?php require 'nav.html.php';?>
|
||||
</ul>
|
||||
</main>
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
<ul>
|
||||
<?php foreach ($jobs as $job) { ?>
|
||||
<li>
|
||||
<div class="details">
|
||||
<h2><?=$job->title?></h2>
|
||||
<h3><?=$job->salary?></h2>
|
||||
<p><?=nl2br($job->description)?></p>
|
||||
<a class="more" href="/apply.php">Apply for this job</a>
|
||||
</div>
|
||||
</li>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
|
|
@ -21,18 +21,14 @@
|
|||
<li><a href="/">Home</a></li>
|
||||
<li>Jobs
|
||||
<ul>
|
||||
<li><a href="?page=it">IT</a></li>
|
||||
<li><a href="?page=hr">Human Resources</a></li>
|
||||
<li><a href="?page=sales">Sales</a></li>
|
||||
<?php require 'nav.html.php'?>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="?page=about">About Us</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
<img src="../images/randombanner.php"/>
|
||||
<main class="home">
|
||||
<?=$content;?>
|
||||
</main>
|
||||
<footer>
|
||||
© Jo's Jobs <?=date('Y');?>
|
||||
</footer>
|
||||
|
|
|
|||
|
|
@ -0,0 +1,5 @@
|
|||
<?php foreach($cats as $cat) { ?>
|
||||
<li>
|
||||
<a href="/jobs/category?page=<?=urlencode($cat->name)?>"><?=$cat->name?></a>
|
||||
</li>
|
||||
<?php } ?>
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
<main class="home">
|
||||
<P>The page you have requested has not been found</p>
|
||||
</main>
|
||||
Loading…
Reference in New Issue