From 7b59091bda702e3d9907d5a14d248bf241c15df7 Mon Sep 17 00:00:00 2001 From: cflem Date: Thu, 29 Dec 2016 15:05:24 -0700 Subject: Added categories to job ads --- dash/dash_employee.php | 6 +++++- dash/headless.php | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/dash/dash_employee.php b/dash/dash_employee.php index 476ff1f..18e1f54 100644 --- a/dash/dash_employee.php +++ b/dash/dash_employee.php @@ -12,10 +12,14 @@ while ($row = $result->fetch_assoc()) {

Uncategorized

'.PHP_EOL; + else + echo '

'.htmlentities($row['cat_name']).'

'.PHP_EOL; if (is_null($row['rating'])) echo '

Employer Not Rated

'.PHP_EOL; else - echo '

'.$row['rating'].' Star Employer

'.PHP_EOL; + echo '

'.intval($row['rating']).' Star Employer

'.PHP_EOL; ?>

Pays $

[...]

diff --git a/dash/headless.php b/dash/headless.php index 16693cd..98b0d9b 100644 --- a/dash/headless.php +++ b/dash/headless.php @@ -12,10 +12,14 @@ if ($result->num_rows) {

Uncategorized

'.PHP_EOL; + else + echo '

'.htmlentities($row['cat_name']).'

'.PHP_EOL; if (is_null($row['rating'])) echo '

Employer Not Rated

'.PHP_EOL; else - echo '

'.$row['rating'].' Star Employer

'.PHP_EOL; + echo '

'.intval($row['rating']).' Star Employer

'.PHP_EOL; ?>

Pays $

[...]

-- cgit v1.2.3