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


PHP Configuration::getCompanyImagesPath方法代码示例

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


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

示例1: formatElement

 public static function formatElement($element)
 {
     $relative_time = RelativeTime::getInstance();
     $location = self::getLocation($element);
     $html = "<div class='element'><table>";
     $html .= "<tr>";
     $html .= "<td>";
     $html .= "<a href='" . Configuration::getURLPath() . "/jobs/view/" . $element->job_id . "-" . str_replace(" ", "-", $element->jobtitle) . "' target='_blank'><b>" . $element->jobtitle . "</b></a><br>";
     $html .= "<span id='company'><a href='" . Configuration::getURLPath() . "/companies/info/" . $element->company . "'>" . $element->company . "</a></span><br> " . $location . "<br><br>";
     $html .= "</td>";
     $html .= "<td align='right' valign='top'>";
     if (!empty($element->logo)) {
         $html .= "<img src='" . Configuration::getCompanyImagesPath() . $element->logo . "' height='70px'>";
     }
     $html .= "</td>";
     $html .= "</tr>";
     $html .= "<tr>";
     $html .= "<td colspan='2'>";
     $html .= nl2br($element->snippet) . "<br>";
     $html .= "Posted <a href='#' title='" . Calendar::formatDateAndTime($element->unix_date_posted) . "'>" . $relative_time->getTextForSQLDate(date("Y-m-d h:i:s", $element->unix_date_posted)) . "</a><br>";
     $html .= "View Other Jobs from <a href='" . Configuration::getURLPath() . "/companies/view/" . $element->company . "'>" . $element->company . "</a>";
     $html .= "</td>";
     $html .= "</tr>";
     $html .= "</table></div>";
     return $html;
 }
开发者ID:rbartolay,项目名称:Hummer,代码行数:26,代码来源:JobLayout.helper.php

示例2: featureCompany

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

示例3:

<div class="container">
	
	<?php 
if (!empty($company->logo)) {
    ?>
		<span style='float: right; border: 1px solid #cccccc; margin: 5px;'><img src="<?php 
    echo Configuration::getCompanyImagesPath() . $company->logo;
    ?>
" height="150"></span>
	<?php 
}
?>
	
	<h1><?php 
echo $company->name;
?>
</h1><br>
	Job Posts : <b><?php 
echo $company->total_job_count;
?>
</b><br><br>
	<h3>Description</h3><br>
	<p><?php 
echo $company->description;
?>
</p><br>
	<h3>Address</h3>
	<p><?php 
echo $company->address;
?>
</p><br>	
开发者ID:rawntech-rohan,项目名称:Project-CJ,代码行数:31,代码来源:info.php


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