diff --git a/CSY2028/EntryPoint.php b/CSY2028/EntryPoint.php index 36a062a..28e4bed 100644 --- a/CSY2028/EntryPoint.php +++ b/CSY2028/EntryPoint.php @@ -48,4 +48,5 @@ class EntryPoint { $title = $page['title']; require '../templates/layout.html.php'; } -} \ No newline at end of file +} +?> \ No newline at end of file diff --git a/CSY2028/Routes.php b/CSY2028/Routes.php index cf7654d..066c1b5 100644 --- a/CSY2028/Routes.php +++ b/CSY2028/Routes.php @@ -4,4 +4,5 @@ interface Routes { public function getController($controllerName, $functionName); public function getDefaultRoute(); public function checkLogin($route); -} \ No newline at end of file +} +?> \ No newline at end of file diff --git a/jobs/Entity/Job.php b/jobs/Entity/Job.php index 5d2d9bf..e2a5681 100644 --- a/jobs/Entity/Job.php +++ b/jobs/Entity/Job.php @@ -18,4 +18,5 @@ class Job { public function getCat() { return $this->catsTable->find('id', $this->categoryId)[0]; } -} \ No newline at end of file +} +?> \ No newline at end of file diff --git a/jobs/Entity/User.php b/jobs/Entity/User.php index fc28142..8ee2ae8 100644 --- a/jobs/Entity/User.php +++ b/jobs/Entity/User.php @@ -5,4 +5,5 @@ class User { public $username; public $password; public $userType; -} \ No newline at end of file +} +?> \ No newline at end of file diff --git a/jobs/Routes.php b/jobs/Routes.php index 6ed507d..9f52be8 100644 --- a/jobs/Routes.php +++ b/jobs/Routes.php @@ -62,4 +62,5 @@ class Routes implements \CSY2028\Routes { 'vars' => ['cats' => $cats->findAll()] ]; } -} \ No newline at end of file +} +?> \ No newline at end of file diff --git a/jobs/controllers/Portal.php b/jobs/controllers/Portal.php index 5fca19c..f3e0215 100644 --- a/jobs/controllers/Portal.php +++ b/jobs/controllers/Portal.php @@ -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']); } } -} \ No newline at end of file + + //TODO: add functions for adding jobs and categories +} +?> \ No newline at end of file diff --git a/jobs/controllers/User.php b/jobs/controllers/User.php index 541d051..1821c1c 100644 --- a/jobs/controllers/User.php +++ b/jobs/controllers/User.php @@ -70,4 +70,5 @@ class User { 'title' => 'Jo\'s Jobs- Logged Out', 'vars' => $this->vars]; } -} \ No newline at end of file +} +?> \ No newline at end of file diff --git a/public/images/randombanner.php b/public/images/randombanner.php index ed02e6f..4971045 100644 --- a/public/images/randombanner.php +++ b/public/images/randombanner.php @@ -24,3 +24,4 @@ header("Pragma: no-cache"); header('content-length: ' . strlen($contents)); echo $contents; +?> \ No newline at end of file diff --git a/templates/about.html.php b/templates/about.html.php index d996e60..a7471f4 100644 --- a/templates/about.html.php +++ b/templates/about.html.php @@ -3,6 +3,6 @@

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.

Select the type of job you are looking for:

diff --git a/templates/apply.html.php b/templates/apply.html.php index 5a7d45f..fc42f4a 100644 --- a/templates/apply.html.php +++ b/templates/apply.html.php @@ -1,7 +1,7 @@
diff --git a/templates/category.html.php b/templates/category.html.php index cf5b803..923a519 100644 --- a/templates/category.html.php +++ b/templates/category.html.php @@ -1,7 +1,7 @@
    - +
diff --git a/templates/home.html.php b/templates/home.html.php index 9f53927..c804029 100644 --- a/templates/home.html.php +++ b/templates/home.html.php @@ -2,6 +2,6 @@

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.

Select the type of job you are looking for:

\ No newline at end of file