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; }
?> '); <?php } ?> }); </script> <table width="100%"> <tr> <td><h1>Search Results</h1></td> <td align="right"> <button class="button" onclick="document.location.href='<?php echo Configuration::getURLPath() . "/search?" . $_SERVER['REDIRECT_QUERY_STRING']; ?> '"> Refine Search </button> </td> </tr> </table> <?php echo HTMLLayout::pagination($pages, $current_page); ?> <br> <div class="container"> <?php echo JobLayout::formatList($results); ?> </div>
<table cellspacing="10" width="100%"> <tr> <td><h1>Jobs by <?php echo "<a href='" . Configuration::getURLPath() . "/companies/info/" . $company . "'>" . $company . "</a>"; ?> </h1></td> <td align="right"> <button class="button" onclick="document.location.href='<?php echo $_SERVER['HTTP_REFERER']; ?> '">Back to List</button> <?php echo CompaniesLayout::getViewCompanyInfoButton($company); ?> </td> </tr> </table> <div class="container"> <?php echo JobLayout::formatList($jobs); ?> </div>
?> </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(); ?> </center> </div>
</td> <td valign="top"> <h1>Featured Company</h1> <div class="container"> <?php echo CompaniesLayout::featureCompany($featured_company); ?> </div> <br> <h1>Top Trending Jobs</h1> <div class="container"> <?php echo JobLayout::formatList($trending_jobs, true); ?> </div> <br> <h1>Hiring Companies</h1> <div class="container"> <?php echo CompaniesLayout::formatList($companies); ?> <?php echo "<center>" . CompaniesLayout::getViewAllCompaniesButton() . "</center>"; ?> </div>
echo JobLayout::getEmailToFriendButton(); ?> <?php echo CompaniesLayout::getViewCompanyInfoButton($job->company); ?> </div> </td> <td valign="top" width="300px"> <div class="container"> <h3>Location</h3> <?php new Core_Map($job->latitude, $job->longitude); ?> </div> </td> </tr> <tr> <td colspan="2"> <br> <h2>Other Jobs from <?php echo "<a href='" . Configuration::getURLPath() . "/companies/view/" . $job->company . "'>" . $job->company . "</a>"; ?> </h2> <div class="container"> <?php echo JobLayout::formatList($other_jobs); ?> </div> </td> </tr> </table>
<table width="100%"> <tr> <td><h1>Jobs</h1></td> <td align="right"><?php echo Form::quickSearch(); ?> </td> </tr> </table> <?php echo "<table align='center'><tr><td>" . HTMLLayout::pagination($jobs->pages, $jobs->current_page) . "</td></tr></table>"; ?> <div class="container"> <?php echo JobLayout::formatList($jobs->data); ?> </div><br> <?php echo "<table align='center'><tr><td>" . HTMLLayout::pagination($jobs->pages, $jobs->current_page) . "</td></tr></table>";