From 4f12fecebcd3f2a5bc6a0e7cdf9c420af4ed435a Mon Sep 17 00:00:00 2001 From: Carson Fleming Date: Thu, 16 Feb 2017 23:59:34 -0500 Subject: Did the profile --- dash/dash_functions.php | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'dash/dash_functions.php') diff --git a/dash/dash_functions.php b/dash/dash_functions.php index 2cc7f8d..c5644ca 100644 --- a/dash/dash_functions.php +++ b/dash/dash_functions.php @@ -6,6 +6,20 @@ function dash_fatal ($msg = null, $link = null, $label = null) { require('footer.php'); die; } +function typestr ($type) { + switch ($type) { + case 'EMPLOYER': + return 'Employer'; + case 'EMPLOYEE': + return 'Employee'; + default: + return 'Team Member'; + } +} +function rating_format ($rating = null, $typestr = 'Employer') { + if (is_null($rating)) return $typestr.' Not Rated'; + return number_format($rating, 1).' Star '.$typestr; +} function draw_noads () { ?>
@@ -32,7 +46,7 @@ function draw_ad ($row) { if (is_null($row['rating'])) echo '

Employer Not Rated

'.PHP_EOL; else - echo '

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

'.PHP_EOL; + echo '

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

'.PHP_EOL; ?>

Pays $

[...]

-- cgit v1.2.3