minor syntax corrections
This commit is contained in:
parent
f7493cac33
commit
ddd3b719fe
|
|
@ -49,3 +49,4 @@ class EntryPoint {
|
||||||
require '../templates/layout.html.php';
|
require '../templates/layout.html.php';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
?>
|
||||||
|
|
@ -5,3 +5,4 @@ interface Routes {
|
||||||
public function getDefaultRoute();
|
public function getDefaultRoute();
|
||||||
public function checkLogin($route);
|
public function checkLogin($route);
|
||||||
}
|
}
|
||||||
|
?>
|
||||||
|
|
@ -19,3 +19,4 @@ class Job {
|
||||||
return $this->catsTable->find('id', $this->categoryId)[0];
|
return $this->catsTable->find('id', $this->categoryId)[0];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
?>
|
||||||
|
|
@ -6,3 +6,4 @@ class User {
|
||||||
public $password;
|
public $password;
|
||||||
public $userType;
|
public $userType;
|
||||||
}
|
}
|
||||||
|
?>
|
||||||
|
|
@ -63,3 +63,4 @@ class Routes implements \CSY2028\Routes {
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
?>
|
||||||
|
|
@ -72,7 +72,7 @@ class Portal {
|
||||||
'vars' => $this->vars];
|
'vars' => $this->vars];
|
||||||
}
|
}
|
||||||
|
|
||||||
public function edit() {
|
public function edit() { //TODO: finish this function
|
||||||
if (isset($_GET['job_id'])) {
|
if (isset($_GET['job_id'])) {
|
||||||
$this->vars['job'] = $this->jobsTable->find("id", $_GET['jod_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']);
|
$this->vars['cat'] = $this->catsTable->find("id", $_GET['cat_id']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//TODO: add functions for adding jobs and categories
|
||||||
}
|
}
|
||||||
|
?>
|
||||||
|
|
@ -71,3 +71,4 @@ class User {
|
||||||
'vars' => $this->vars];
|
'vars' => $this->vars];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
?>
|
||||||
|
|
@ -24,3 +24,4 @@ header("Pragma: no-cache");
|
||||||
header('content-length: ' . strlen($contents));
|
header('content-length: ' . strlen($contents));
|
||||||
|
|
||||||
echo $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>
|
<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>
|
<h2>Select the type of job you are looking for:</h2>
|
||||||
<ul>
|
<ul>
|
||||||
<?php require "nav.html.php";?>
|
<?=require "nav.html.php"?>
|
||||||
</ul>
|
</ul>
|
||||||
</main>
|
</main>
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<main class="sidebar">
|
<main class="sidebar">
|
||||||
<section class="left">
|
<section class="left">
|
||||||
<ul>
|
<ul>
|
||||||
<?php require 'nav.html.php';?>
|
<?=require 'nav.html.php'?>
|
||||||
</ul>
|
</ul>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<main class = "sidebar">
|
<main class = "sidebar">
|
||||||
<section class="left">
|
<section class="left">
|
||||||
<ul>
|
<ul>
|
||||||
<?php require 'nav.html.php';?>
|
<?=require 'nav.html.php'?>
|
||||||
</ul>
|
</ul>
|
||||||
</section>
|
</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>
|
<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>
|
<h2>Select the type of job you are looking for:</h2>
|
||||||
<ul>
|
<ul>
|
||||||
<?php require 'nav.html.php';?>
|
<?=require 'nav.html.php'?>
|
||||||
</ul>
|
</ul>
|
||||||
</main>
|
</main>
|
||||||
Loading…
Reference in New Issue