minor syntax corrections
This commit is contained in:
parent
f7493cac33
commit
ddd3b719fe
|
|
@ -48,4 +48,5 @@ class EntryPoint {
|
|||
$title = $page['title'];
|
||||
require '../templates/layout.html.php';
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
|
@ -4,4 +4,5 @@ interface Routes {
|
|||
public function getController($controllerName, $functionName);
|
||||
public function getDefaultRoute();
|
||||
public function checkLogin($route);
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
|
@ -18,4 +18,5 @@ class Job {
|
|||
public function getCat() {
|
||||
return $this->catsTable->find('id', $this->categoryId)[0];
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
|
@ -5,4 +5,5 @@ class User {
|
|||
public $username;
|
||||
public $password;
|
||||
public $userType;
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
|
@ -62,4 +62,5 @@ class Routes implements \CSY2028\Routes {
|
|||
'vars' => ['cats' => $cats->findAll()]
|
||||
];
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
|
@ -72,7 +72,7 @@ class Portal {
|
|||
'vars' => $this->vars];
|
||||
}
|
||||
|
||||
public function edit() {
|
||||
public function edit() { //TODO: finish this function
|
||||
if (isset($_GET['job_id'])) {
|
||||
$this->vars['job'] = $this->jobsTable->find("id", $_GET['jod_id']);
|
||||
}
|
||||
|
|
@ -80,4 +80,7 @@ class Portal {
|
|||
$this->vars['cat'] = $this->catsTable->find("id", $_GET['cat_id']);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//TODO: add functions for adding jobs and categories
|
||||
}
|
||||
?>
|
||||
|
|
@ -70,4 +70,5 @@ class User {
|
|||
'title' => 'Jo\'s Jobs- Logged Out',
|
||||
'vars' => $this->vars];
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
|
@ -24,3 +24,4 @@ header("Pragma: no-cache");
|
|||
header('content-length: ' . strlen($contents));
|
||||
|
||||
echo $contents;
|
||||
?>
|
||||
|
|
@ -3,6 +3,6 @@
|
|||
<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>
|
||||
<?php require "nav.html.php";?>
|
||||
<?=require "nav.html.php"?>
|
||||
</ul>
|
||||
</main>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<main class="sidebar">
|
||||
<section class="left">
|
||||
<ul>
|
||||
<?php require 'nav.html.php';?>
|
||||
<?=require 'nav.html.php'?>
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<main class = "sidebar">
|
||||
<section class="left">
|
||||
<ul>
|
||||
<?php require 'nav.html.php';?>
|
||||
<?=require 'nav.html.php'?>
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
|
|
|
|||
|
|
@ -2,6 +2,6 @@
|
|||
<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>
|
||||
<?php require 'nav.html.php';?>
|
||||
<?=require 'nav.html.php'?>
|
||||
</ul>
|
||||
</main>
|
||||
Loading…
Reference in New Issue