summaryrefslogtreecommitdiff
path: root/dash/dash_employee.php
diff options
context:
space:
mode:
authorcflem <carson.fl3ming@gmail.com>2016-12-29 15:05:24 -0700
committercflem <carson.fl3ming@gmail.com>2016-12-29 15:05:24 -0700
commit7b59091bda702e3d9907d5a14d248bf241c15df7 (patch)
tree1305dc8baa227e57990ed3c437cb4b58d062fcd2 /dash/dash_employee.php
parent1a7fa60f6cb2ee26843ca19e37bb4ff44104ad55 (diff)
downloadbulletin-7b59091bda702e3d9907d5a14d248bf241c15df7.tar.gz
Added categories to job ads
Diffstat (limited to 'dash/dash_employee.php')
-rw-r--r--dash/dash_employee.php6
1 files changed, 5 insertions, 1 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()) {
<p class="jobtitle"><a href="ads.php?id=<?=$row['id'];?>"><?=htmlentities($row['title']);?></a></p>
<p class="joblocation"><?=htmlentities($row['location']);?></p>
<?php
+ if (is_null($row['cat_name']))
+ echo ' <p class="jobcat">Uncategorized</p>'.PHP_EOL;
+ else
+ echo ' <p class="jobcat">'.htmlentities($row['cat_name']).'</p>'.PHP_EOL;
if (is_null($row['rating']))
echo ' <p class="jobstars">Employer Not Rated</p>'.PHP_EOL;
else
- echo ' <p class="jobstars">'.$row['rating'].' Star Employer</p>'.PHP_EOL;
+ echo ' <p class="jobstars">'.intval($row['rating']).' Star Employer</p>'.PHP_EOL;
?>
<p class="jobpay">Pays $<?=number_format($row['pay'], 2);?></p>
<p class="jobblurb"><?=htmlentities(substr($row['description'], 0, min(strlen($row['description']), 160)));?> <a href="ads.php?id=<?=$row['id'];?>">[...]</a></p>