minor syntax corrections

This commit is contained in:
Joshua Perry 2023-01-25 17:14:23 +00:00
parent f7493cac33
commit ddd3b719fe
12 changed files with 22 additions and 12 deletions

View File

@ -49,3 +49,4 @@ class EntryPoint {
require '../templates/layout.html.php';
}
}
?>

View File

@ -5,3 +5,4 @@ interface Routes {
public function getDefaultRoute();
public function checkLogin($route);
}
?>

View File

@ -19,3 +19,4 @@ class Job {
return $this->catsTable->find('id', $this->categoryId)[0];
}
}
?>

View File

@ -6,3 +6,4 @@ class User {
public $password;
public $userType;
}
?>

View File

@ -63,3 +63,4 @@ class Routes implements \CSY2028\Routes {
];
}
}
?>

View File

@ -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
}
?>

View File

@ -71,3 +71,4 @@ class User {
'vars' => $this->vars];
}
}
?>

View File

@ -24,3 +24,4 @@ header("Pragma: no-cache");
header('content-length: ' . strlen($contents));
echo $contents;
?>

View File

@ -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>

View File

@ -1,7 +1,7 @@
<main class="sidebar">
<section class="left">
<ul>
<?php require 'nav.html.php';?>
<?=require 'nav.html.php'?>
</ul>
</section>

View File

@ -1,7 +1,7 @@
<main class = "sidebar">
<section class="left">
<ul>
<?php require 'nav.html.php';?>
<?=require 'nav.html.php'?>
</ul>
</section>

View File

@ -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>