本文整理汇总了PHP中Jobs::getCat1NameById方法的典型用法代码示例。如果您正苦于以下问题:PHP Jobs::getCat1NameById方法的具体用法?PHP Jobs::getCat1NameById怎么用?PHP Jobs::getCat1NameById使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Jobs
的用法示例。
在下文中一共展示了Jobs::getCat1NameById方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: searchResults
function searchResults($cat1 = 'ALL', $categoty = '', $loc)
{
$retstr = '<div class="searchresult">';
$retstr .= 'Below shows the <span class="emphasis">lastest</span> postings for ';
if (empty($cat1)) {
$findstr = 'ALL ' . $categoty;
} else {
$findstr = Jobs::getCat1NameById($cat1) . ' ' . $categoty;
}
/*
if (strtolower($region) == strtolower($city))
{
$location = 'All ' . $city;
}
else
{
$location = $region . ' of ' . $city;
}
*/
$location = "";
$searchRule = Location::getSearchRule($coutry);
logfire('search resutl searchrule', $searchRule);
if ($searchRule == 1 || $searchRule == 2) {
if (!empty($city)) {
$location = $city;
}
}
if (!empty($state)) {
if (empty($location)) {
$location = $state;
} else {
$location .= ' ' . $state;
}
}
if (!empty($coutry)) {
if (empty($location)) {
$location = $coutry;
} else {
$location .= ', ' . $coutry;
}
}
$retstr .= '<span class="emphasis">' . $findstr . '</span> ';
$retstr .= 'in <span class="emphasis">' . $location . '</span>. ';
$retstr .= '</div>';
return $retstr;
}