diff options
| author | Carson Fleming <cflems@cflems.net> | 2017-03-16 21:28:51 -0700 |
|---|---|---|
| committer | Carson Fleming <cflems@cflems.net> | 2017-03-16 21:28:51 -0700 |
| commit | ca71122b9a343bacd6c0b2933ddf295ebcff4f07 (patch) | |
| tree | 595a998026e0182fc04c4d7ecc7cbc6e14a70455 /dash/dash_functions.php | |
| parent | 3d0d3a86106ece4ea298ab2f262b3af5ff8a7728 (diff) | |
| download | bulletin-ca71122b9a343bacd6c0b2933ddf295ebcff4f07.tar.gz | |
Final candidate for alpha version, moving to beta soon
Diffstat (limited to 'dash/dash_functions.php')
| -rw-r--r-- | dash/dash_functions.php | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/dash/dash_functions.php b/dash/dash_functions.php index 933a72d..9c106eb 100644 --- a/dash/dash_functions.php +++ b/dash/dash_functions.php @@ -19,6 +19,24 @@ function typestr ($type) { function rating_format ($rating = null, $typestr = 'Employer') { return '<span class="ratingdata" data-rating="'.(is_null($rating) ? 'undef' : number_format($rating, 1)).'"></span>'; } +function draw_norate_p () { +?> + <div class="job"> + <p class="jobtitle"><a href="post.php">Nothing to Rate Yet!</a></p> + <p class="jobpay">Post another ad. It's FREE!</p> + <p class="jobblurb">None of your ads have received a response since you last visited. In the meantime, be sure to post more to maximize your exposure.<br /><a href="post.php">Post an ad!</a></p> + </div> +<?php +} +function draw_norate_s () { +?> + <div class="job"> + <p class="jobtitle"><a href="post.php">Nothing to Rate Yet!</a></p> + <p class="jobpay">Apply to more ads. It's FREE!</p> + <p class="jobblurb">None of your applications have received a response since you last visited. In the meantime, be sure to reply to more job postings maximize your exposure.<br /><a href="dash/">Browse ads!</a></p> + </div> +<?php +} function draw_noads () { ?> <div class="job"> @@ -37,6 +55,16 @@ function draw_noapps () { </div> <?php } +function draw_rate ($row) { +?> + <div class="job"> + <p class="jobtitle"><a href="ads.php?id=<?=$row['adid'];?>"><?=htmlentities($row['title']);?></a></p> + <p class="jobpay">Provided by <a href="profile.php?id=<?=$row['uid'];?>"><?=htmlentities($row['name']);?></a></p> + <p class="jobdate"><?=date('M j, Y', intval($row['time']));?></p> + <div class="jobblurb"><div class="rate-widget" data-uid="<?=$row['uid'];?>" data-jid="<?=$row['adid'];?>" data-rating="<?=is_null($row['rating']) ? 'undef' : number_format($row['rating'], 1);?>"></div></div> + </div> +<?php +} function draw_ad ($row) { ?> <div class="job"> |
