$msg, 'link' => $link, 'label' => $label), 'dash_fatal.tpl').PHP_EOL; 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 () { ?>

Post an Ad!

Costs $5.00

You haven't posted any ads yet! It's a quick and easy way to get connected to the workers you need.
Post an ad!

Uncategorized

'.PHP_EOL; else echo '

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

'.PHP_EOL; ?>

Employer Not Rated

'.PHP_EOL; else echo '

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

'.PHP_EOL; ?>

Pays $

[...]

query('SELECT responses.id, responses.uid AS seeker, responses.adid, responses.comment, ads.title, users.name, users.email, users.notify FROM responses INNER JOIN ads ON responses.adid = ads.id INNER JOIN users ON ads.uid = users.id WHERE responses.id = '.$responseid.' LIMIT 1') or dash_fatal($db->error); if ($result->num_rows < 1) dash_fatal('The ad you\'ve tried to apply to no longer exists.'); $appinfo = $result->fetch_assoc(); $result->free(); if (!$appinfo['notify']) return; $result = $db->query('SELECT users.name, users.email, SUM(ratings.stars) / COUNT(ratings.stars) AS rating FROM users LEFT JOIN ratings ON ratings.rated = users.id WHERE users.id = '.$appinfo['seeker'].' LIMIT 1') or dash_fatal($db->error); $uinfo = $result->fetch_assoc(); $result->free(); $options = array( 'rid' => $appinfo['id'], 'adname' => $appinfo['title'], 'seekername' => $uinfo['name'], 'seekerrating' => is_null($uinfo['rating']) ? 'has yet to be rated' : 'is rated '.number_format($uinfo['rating'], 1).' stars', 'seekereml' => $uinfo['email'], 'seekerid' => $appinfo['seeker'], ); bulletin_mail($appinfo['email'], '"'.$appinfo['title'].'" Has Received a Response', tpl($options, 'app_eml.tpl')); } ?>