public static function featureCompany($company) { $html = '<script type="text/javascript">'; $html .= '$(function () {'; $html .= '$(\'.bubbleInfo\').each(function () {'; $html .= 'var distance = 10;'; $html .= 'var time = 250;'; $html .= 'var hideDelay = 500;'; $html .= 'var hideDelayTimer = null;'; $html .= 'var beingShown = false;'; $html .= 'var shown = false;'; $html .= 'var trigger = $(\'.trigger\', this);'; $html .= 'var info = $(\'.popup\', this).css(\'opacity\', 0);'; $html .= '$([trigger.get(0), info.get(0)]).mouseover(function () {'; $html .= 'if (hideDelayTimer) clearTimeout(hideDelayTimer);'; $html .= 'if (beingShown || shown) {'; $html .= 'return;'; $html .= '} else {'; $html .= 'beingShown = true;'; $html .= 'info.css({'; $html .= 'top: 0, left: -470, display: \'block\''; $html .= '}).animate({'; $html .= 'top: "-=" + distance + "px", opacity: 1'; $html .= '}, time, "swing", function() {'; $html .= 'beingShown = false; shown = true;'; $html .= '});'; $html .= '}'; $html .= 'return false;'; $html .= '}).mouseout(function () {'; $html .= 'if (hideDelayTimer) clearTimeout(hideDelayTimer);'; $html .= 'hideDelayTimer = setTimeout(function () {'; $html .= 'hideDelayTimer = null;'; $html .= 'info.animate({'; $html .= 'top: "-=" + distance + "px", opacity: 0'; $html .= '}, time, "swing", function () {'; $html .= 'shown = false;'; $html .= 'info.css("display", "none");'; $html .= '});'; $html .= '}, hideDelay);'; $html .= 'return false;'; $html .= '});'; $html .= '});'; $html .= '});'; $html .= '</script>'; $html .= '<div class="bubbleInfo"> <div class="trigger"> <img src="' . Configuration::getCompanyImagesPath() . $company->logo . '" width="200"> </div> <table id="dpop" class="popup"> <tbody> <tr> <td> <div class="popup-contents"> <table width="400px" align="center"> <tbody> <tr> <td><h1>' . $company->name . '</h1> </td> </tr>'; if ($company->website != "") { $html .= '<tr> <td><a href="http://' . $company->website . '" target="_blank">' . $company->website . '</a><br></td> </tr>'; } $html .= ' <tr> <td><p>' . $company->description . '</p></td> </tr> <tr> <td>Total Job Posts : <b>' . $company->total_job_count . '</b></td> </tr> <tr> <td>' . JobLayout::getViewAllJobsByCompanyNameButton($company->name) . '</td> </tr> </tbody> </table> </div> </td> </tr> </tbody> </table> </div>'; return $html; }
<p><?php echo $company->address; ?> </p><br> <?php if (!empty($company->website)) { ?> <?php echo CompaniesLayout::getVisitCompanyWebsiteButton($company->website); ?> <?php } ?> <?php echo JobLayout::getViewAllJobsByCompanyNameButton($company->name); ?> </div> <br> <h1>Latest Jobs from <?php echo $company->name; ?> </h1> <div class="container"> <?php echo JobLayout::formatList($latest_jobs); ?> <center><?php echo JobLayout::getViewOtherJobsButton(); ?>