function getJobListingHTML($ref_link, $id, $service, $jobTitle, $company, $description, $post_date, $city, $state) { $html = "<div id='job-" . $id . "' class='job-listing' data-service-id='" . $service . "'>"; $html .= "<a target='_blank' href='" . $ref_link . "'><h4 class='job-title'>" . $jobTitle . "</h4></a>"; $html .= "<h3 class='job-company'>" . (strictEmpty($company) ? "Private Company -" : $company . " -") . " <span class='job-location'>" . $city . ", " . $state . "</span></h3>"; $html .= "<p class='job-description-excerpt'>" . $description . "</p>"; $html .= "<span class='job-post-date'>Post Date: " . $post_date . "</span>"; $html .= "</div>"; return $html; }
function getTrashedJobListingHTML($ref_link, $internal_id, $id, $jobTitle, $company, $description, $post_date, $city, $state) { $html = "<div internal-id-data='" . $internal_id . "' id='job-" . $id . "' class='job-listing'>"; $html .= "<a class='job-link' target='_blank' href='" . $ref_link . "'><h4 class='job-title'>" . $jobTitle . "</h4></a>"; $html .= "<h3 class='job-company'>" . (strictEmpty($company) ? "Private Company" : $company); if (!strictEmpty($city) && !strictEmpty($state)) { $html .= "<span class='job-location'> - " . $city . ", " . $state . "</span>"; } else { if (strictEmpty($city) && !strictEmpty($state)) { $html .= "<span class='job-location'> - " . $state . "</span>"; } else { if (!strictEmpty($city) && strictEmpty($state)) { $html .= "<span class='job-location'> - " . $city . "</span>"; } } } $html .= "</h3>"; $html .= "<p class='job-description-excerpt'>" . $description . "</p>"; //$html .= "<span class='job-create-date'>" .relative_date(strtotime($post_date))."</span>"; $html .= "<span class='job-create-date'>Created " . date('M, d Y', strtotime($post_date)) . "</span>"; $html .= '<span class="user-actions"><i class="fa fa-repeat trash-restore" style="color:#555555"> Restore</i> <i class="fa fa-minus-circle trash-delete" style="color:#c73a11"> Delete</i></span>'; $html .= "</div>"; return $html; }