public function processFBRegistration() { $authBom = new AuthenticationBom(); if ($_REQUEST) { $data = FacebookUtilities::parse_signed_request($_REQUEST['signed_request'], $this->FACEBOOK_SECRET); $user = new stdClass(); $user->email = $data['registration']['email']; $user->password = $data['registration']['password']; $user->firstname = $data['registration']['first_name']; $user->lastname = $data['registration']['last_name']; $user->birthday = date('Y-m-d', strtotime($data['registration']['birthday'])); $user->gender = $data['registration']['gender']; $user->location_name = $data['registration']['location']['name']; $user->location_id = $data['registration']['location']['id']; $user->country = $data['user']['country']; $user->locale = $data['user']['locale']; $user->fb_user_id = $data['user_id']; if ($authBom->isEmailExists($user->email)) { header("Location: " . Configuration::getURLPath() . "/default/login?message=Email+already+exists."); return; } $response = $authBom->registerJobSeeker($user); var_dump($response); if ($response->success) { print_r($response); } } }
public static function quickSearch() { $html = "<form method='GET' action='" . Configuration::getURLPath() . "/search/quick'>"; $html .= "<table>"; $html .= "<tr>"; $html .= "<td><input type='text' name='keyword' placeholder='Search Job by Keyword, Company Name, Description' size='50' value='" . @$_GET['keyword'] . "'></td>"; $html .= "<td><input type='submit' class='button' value='Search Jobs'></td>"; $html .= "</tr>"; $html .= "</table>"; $html .= "</form>"; return $html; }
echo @$_GET['company']; ?> '); <?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); ?>
public static function getAlphabeticalPagination($default = 'A') { $alphabet = range('A', 'Z'); $html = "<ul id='pagination'>"; foreach ($alphabet as $letter) { $current = $default == $letter ? "class='current'" : ""; $html .= "<li><a href='" . Configuration::getURLPath() . "/companies/index/" . $letter . "' " . $current . ">" . $letter . "</a></li>"; } $html .= "</ul>"; return $html; }
public static function getViewAllJobsByCompanyNameButton($company_name) { $html = "<button class='button star' onclick='document.location=\"" . Configuration::getURLPath() . "/companies/view/" . $company_name . "\"'>All Jobs by this Company</button>"; return $html; }
<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>
What were you trying to do? <br><br> <ul> <li><a href="<?php echo Configuration::getURLPath(); ?> /registration">Register as a Career Seeker</a></li> <li><a href="<?php echo Configuration::getURLPath(); ?> /default/login">Login to account</a></li> <li><a href="<?php echo Configuration::getURLPath(); ?> /profile">Manage Your Account</a></li> <li><a href="<?php echo Configuration::getURLPath(); ?> /search/advance">Search Careers</a></li> </ul><br>Please visit the <a href="<?php echo Configuration::getURLPath(); ?> ">Hammer</a> homepage. </td> </tr> </table> </center>
<div class="bottomMenu"> <a href="/" title="">Home</a> <a href="<?php echo Configuration::getURLPath() . "/default/about"; ?> " title="">About us</a> <a href="<?php echo Configuration::getURLPath() . "/blog"; ?> " title="">Blog</a> <a href="" title="">Job search</a> <a href="" title="">Employer area</a> <a href="" title="">Contact us</a> <a href="" title="">Terms & conditions</a> <a href="<?php echo Configuration::getURLPath() . "/default/privacy"; ?> " title="">Privacy policy</a> </div> <?php global $loading_time; ?> <div class="powered">Copyright © Hummer.com Job Board <?php echo "2011 - " . date("Y"); ?> <br><?php echo "Page generated in " . Core_Utilities::endTimer($loading_time); ?> </div> </div>
<h1>Job Seeker Registration</h1> <div class="container"> <table width="100%"> <tr> <td width="50%" valign="top"> <iframe src="https://www.facebook.com/plugins/registration? client_id=132703346866636& redirect_uri=<?php echo Configuration::getURLPath() . "/registration/processFBRegistration"; ?> & fb_register=true& target=_self& fields= [ {'name':'name'}, {'name':'email'}, {'name':'first_name'}, {'name':'last_name'}, {'name':'location'}, {'name':'gender'}, {'name':'birthday'}, {'name':'password'}, {'name':'captcha'} ] " scrolling="auto" frameborder="no" style="border:none"
?> " title="Jobs">Jobs</a></li> <li><a href="<?php echo Configuration::getURLPath() . "/companies"; ?> " title="Companies">Companies</a></li> <li><a href="<?php echo Configuration::getURLPath() . "/search"; ?> " title="Mac">Search</a></li> <li><a href="<?php echo Configuration::getURLPath() . "/default/about"; ?> " title="Support">About Us</a></li> </ul> </td> <td width="300" align="right"> <button class="special" onclick="document.location.href='<?php echo Configuration::getURLPath() . "/registration"; ?> '">Job Seekers</button> <button class="special" onclick="document.location.href='<?php echo Configuration::getURLPath() . "/registration/employer"; ?> '">Employers</button> </td> </tr> </table> <div class="content">
public function logout() { session_destroy(); header("Location: " . Configuration::getURLPath() . "/default/login"); }
<table cellspacing="10" width="100%"> <tr> <td valign="top"> <h1>Job Search</h1> <div class="container"> <form class="form" method="GET" action="<?php echo Configuration::getURLPath() . "/search/advance"; ?> "> <table> <tr> <td><label for="name">Job Title</label></td> <td><input type="text" name="jobtitle" value="<?php echo @$_GET['jobtitle']; ?> " /></td> </tr> <tr> <td><label for="email">Company</label></td> <td><input type="text" name="company" value="<?php echo @$_GET['company']; ?> " /></td> </tr> <tr> <td colspan="2"><input class="submit" type="submit" value="Advance Search" /></td> </tr> </table> </form>
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>
/** * Anchor method creates standard html anchor link * @param unknown_type $url * @param unknown_type $text * @param unknown_type $attributes */ public static function anchor($url, $text, $attributes = null) { return "<a href='" . Configuration::getURLPath() . "/" . $url . "' " . $attributes . ">" . $text . "</a>"; }