当前位置: 首页>>代码示例>>PHP>>正文


PHP Configuration::getURLPath方法代码示例

本文整理汇总了PHP中Configuration::getURLPath方法的典型用法代码示例。如果您正苦于以下问题:PHP Configuration::getURLPath方法的具体用法?PHP Configuration::getURLPath怎么用?PHP Configuration::getURLPath使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Configuration的用法示例。


在下文中一共展示了Configuration::getURLPath方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: processFBRegistration

 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);
         }
     }
 }
开发者ID:rbartolay,项目名称:Hummer,代码行数:28,代码来源:RegistrationController.php

示例2: quickSearch

 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;
 }
开发者ID:rawntech-rohan,项目名称:Project-CJ,代码行数:12,代码来源:Form.helper.php

示例3:

    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);
?>
开发者ID:rbartolay,项目名称:Hummer,代码行数:31,代码来源:advanceResults.php

示例4: getAlphabeticalPagination

 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;
 }
开发者ID:rawntech-rohan,项目名称:Project-CJ,代码行数:11,代码来源:CompaniesLayout.helper.php

示例5: getViewAllJobsByCompanyNameButton

 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;
 }
开发者ID:rbartolay,项目名称:Hummer,代码行数:5,代码来源:JobLayout.helper.php

示例6:

<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>
开发者ID:rawntech-rohan,项目名称:Project-CJ,代码行数:22,代码来源:view.php

示例7:

				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>
开发者ID:rawntech-rohan,项目名称:Project-CJ,代码行数:30,代码来源:pageNotFound.php

示例8: date

<div class="bottomMenu">
	<a href="/" title="">Home</a>&nbsp;&nbsp;&nbsp; 
	<a href="<?php 
echo Configuration::getURLPath() . "/default/about";
?>
" title="">About us</a>&nbsp;&nbsp;&nbsp;
	<a href="<?php 
echo Configuration::getURLPath() . "/blog";
?>
" title="">Blog</a>&nbsp;&nbsp;&nbsp;
	<a href="" title="">Job search</a>&nbsp;&nbsp;&nbsp; 
	<a href="" title="">Employer area</a>&nbsp;&nbsp;&nbsp; 
	<a href="" title="">Contact us</a>&nbsp;&nbsp;&nbsp;
	<a href="" title="">Terms &amp; conditions</a>&nbsp;&nbsp;&nbsp;
	<a href="<?php 
echo Configuration::getURLPath() . "/default/privacy";
?>
" title="">Privacy policy</a>&nbsp;&nbsp;&nbsp;
</div>

<?php 
global $loading_time;
?>
		<div class="powered">Copyright &copy; Hummer.com Job Board <?php 
echo "2011 - " . date("Y");
?>
 <br><?php 
echo "Page generated in " . Core_Utilities::endTimer($loading_time);
?>
</div>
		</div>
开发者ID:rbartolay,项目名称:Hummer,代码行数:31,代码来源:footer.php

示例9:

<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"
开发者ID:rbartolay,项目名称:Hummer,代码行数:31,代码来源:jobseeker.php

示例10:

?>
" 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">

开发者ID:rbartolay,项目名称:Hummer,代码行数:29,代码来源:header.php

示例11: logout

 public function logout()
 {
     session_destroy();
     header("Location: " . Configuration::getURLPath() . "/default/login");
 }
开发者ID:rawntech-rohan,项目名称:Project-CJ,代码行数:5,代码来源:DefaultController.php

示例12:

<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>
开发者ID:rbartolay,项目名称:Hummer,代码行数:31,代码来源:advance.php

示例13: Core_Map

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>
开发者ID:rawntech-rohan,项目名称:Project-CJ,代码行数:31,代码来源:view.php

示例14: anchor

 /**
  * 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>";
 }
开发者ID:rawntech-rohan,项目名称:Project-CJ,代码行数:10,代码来源:URL.helper.php


注:本文中的Configuration::getURLPath方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。