當前位置: 首頁>>代碼示例>>PHP>>正文


PHP seo::getKeywords方法代碼示例

本文整理匯總了PHP中seo::getKeywords方法的典型用法代碼示例。如果您正苦於以下問題:PHP seo::getKeywords方法的具體用法?PHP seo::getKeywords怎麽用?PHP seo::getKeywords使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在seo的用法示例。


在下文中一共展示了seo::getKeywords方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: IN

            $strWhere = "id_user IN (" . secure::escQuoteData($_GET['id']) . ") AND token IN ('active')";
            $arrOrderBy = array('act_datetime' => 'DESC');
            $smarty->assign('vacancys', $vacancy->getAnnounces($strWhere, false, $arrOrderBy));
            $smarty->assign('link', chpu::createChpuUrl(CONF_SCRIPT_URL . 'index.php?ut=' . $_SESSION['sd_user'][DB_PREFIX . 'conf']['user_type'] . '&do=vacancy&action=view&id='));
        } else {
            //$arrErrors[] = ERROR_SELECTED_COMPANY;
            messages::error404();
        }
    }
} else {
    // Формируем TITLE страницы
    $arrTitle = array();
    $seo = seo::getTitle('companies', $currLang);
    $arrTitle[] = array('name' => !empty($seo) ? $seo : MENU_COMPANIES);
    // СЕО данные
    $smarty->assign('meta_keywords', seo::getKeywords('companies', $currLang));
    $smarty->assign('meta_description', seo::getDescription('companies', $currLang));
    //смещение, всегда 0 (затем берется из $_GET)
    $offset = !empty($_GET['offset']) && is_numeric($_GET['offset']) && $_GET['offset'] > 0 ? $_GET['offset'] : 0;
    //смещение, всегда 0 (затем берется из $_GET)
    $path = CONF_SCRIPT_URL . 'index.php?ut=' . $_SESSION['sd_user'][DB_PREFIX . 'conf']['user_type'] . '&do=companies&action=offset&';
    //получаем массив, содержащий текущий обработанный URL
    $arrFields = array(array('conf_users', 'id'), array('conf_users', 'company_name'), array('conf_users', 'company_city'), array('conf_users', 'company_description'), array('conf_users', 'logo'));
    $strWhere = "conf_users.token IN ('active') AND conf_users.user_type IN ('company')";
    CONF_COMPANIES_SHOW_ONLY_WITH_LOGO ? $strWhere .= " AND conf_users.logo!=''" : null;
    $strLimit = $offset . ',' . CONF_COMPANIES_PERPAGE;
    $arrCompanies = $user->getCombinedUsersData($arrFields, $strWhere, false, $strLimit);
    $smarty->assignByRef('arrCompanies', $arrCompanies);
    // формируем страницы
    $allRecords = $user->cntUsers();
    $strPages = strings::generatePage($allRecords, $offset, CONF_COMPANIES_PERPAGE, $path);
開發者ID:innova-market,項目名稱:JobExpert,代碼行數:31,代碼來源:companies.php

示例2: array

            $smarty->assign('vacancys', $vacancy->getAnnounces($strWhere, false, $arrOrderBy));
            $smarty->assign('link', chpu::createChpuUrl(CONF_SCRIPT_URL . 'index.php?ut=' . $_SESSION['sd_user'][DB_PREFIX . 'conf']['user_type'] . '&do=vacancy&action=view&id='));
            $smarty->assign('resumes', $resume->getAnnounces($strWhere, false, $arrOrderBy));
            $smarty->assign('rlink', chpu::createChpuUrl(CONF_SCRIPT_URL . 'index.php?ut=' . $_SESSION['sd_user'][DB_PREFIX . 'conf']['user_type'] . '&do=resume&action=view&id='));
        } else {
            //$arrErrors[] = ERROR_SELECTED_COMPANY;
            messages::error404();
        }
    }
} else {
    // Формируем TITLE страницы
    $arrTitle = array();
    $seo = seo::getTitle('agencies', $currLang);
    $arrTitle[] = array('name' => !empty($seo) ? $seo : MENU_AGENCIES);
    // СЕО данные
    $smarty->assign('meta_keywords', seo::getKeywords('agencies', $currLang));
    $smarty->assign('meta_description', seo::getDescription('agencies', $currLang));
    //смещение, всегда 0 (затем берется из $_GET)
    $offset = !empty($_GET['offset']) && is_numeric($_GET['offset']) && $_GET['offset'] > 0 ? $_GET['offset'] : 0;
    //смещение, всегда 0 (затем берется из $_GET)
    $path = CONF_SCRIPT_URL . 'index.php?ut=' . $_SESSION['sd_user'][DB_PREFIX . 'conf']['user_type'] . '&do=agencies&action=offset&';
    //получаем массив, содержащий текущий обработанный URL
    $arrFields = array(array('conf_users', 'id'), array('conf_users', 'company_name'), array('conf_users', 'company_city'), array('conf_users', 'company_description'), array('conf_users', 'logo'));
    $strWhere = "conf_users.token IN ('active') AND conf_users.user_type IN ('agent')";
    CONF_AGENCIES_SHOW_ONLY_WITH_LOGO ? $strWhere .= " AND conf_users.logo!=''" : null;
    $strLimit = $offset . ',' . CONF_AGENCIES_PERPAGE;
    $arrCompanies = $user->getCombinedUsersData($arrFields, $strWhere, false, $strLimit);
    $smarty->assignByRef('arrCompanies', $arrCompanies);
    // формируем страницы
    $allRecords = $user->cntUsers();
    $strPages = strings::generatePage($allRecords, $offset, CONF_AGENCIES_PERPAGE, $path);
開發者ID:innova-market,項目名稱:JobExpert,代碼行數:31,代碼來源:agencies.php


注:本文中的seo::getKeywords方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。