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


PHP interPool::getUserPreference方法代碼示例

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


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

示例1: date

        break;
    case "Mar":
        $mois = "Mar.";
        break;
    case "Apr":
        $mois = "Avr.";
        break;
}
$annee = date("Y", $dateSec);
$time = date("H:i:s", $dateSec);
$last_maj = "{$jour_semaine} {$jour} {$mois} {$annee}, {$time}";
$hist_window_width = 1024;
$hist_window_height = 768;
$top15_width = "265px";
// variables pour le ajax (afficher on non)
$classement_accueil = $sess->getSessVar('classement_accueil', $pool->getUserPreference($gerant, "classement_accueil"));
$classement_f1_accueil = $sess->getSessVar('classement_f1_accueil', $pool->getUserPreference($gerant, "classement_f1_accueil"));
$affrontement_accueil = $sess->getSessVar('affrontement_accueil', $pool->getUserPreference($gerant, "affrontement_accueil"));
$top15_jour = $sess->getSessVar('top15_jour', $pool->getUserPreference($gerant, "top15_jour"));
$top15_periode = $sess->getSessVar('top15_periode', $pool->getUserPreference($gerant, "top15_periode"));
$top15_equipes = $sess->getSessVar('top15_equipes', $pool->getUserPreference($gerant, "top15_equipes"));
$top15_ptsNHL_all = $sess->getSessVar('top15_ptsNHL_all', $pool->getUserPreference($gerant, "top15_ptsNHL_all"));
$top15_ptsPOOL_all = $sess->getSessVar('top15_ptsPOOL_all', $pool->getUserPreference($gerant, "top15_ptsPOOL_all"));
$top15_ptsNHL_avants = $sess->getSessVar('top15_ptsNHL_avants', $pool->getUserPreference($gerant, "top15_ptsNHL_avants"));
$top15_ptsPOOL_avants = $sess->getSessVar('top15_ptsPOOL_avants', $pool->getUserPreference($gerant, "top15_ptsPOOL_avants"));
$top15_ptsNHL_defenseurs = $sess->getSessVar('top15_ptsNHL_defenseurs', $pool->getUserPreference($gerant, "top15_ptsNHL_defenseurs"));
$top15_ptsPOOL_defenseurs = $sess->getSessVar('top15_ptsPOOL_defenseurs', $pool->getUserPreference($gerant, "top15_ptsPOOL_defenseurs"));
$top15_ptsNHL_gardiens = $sess->getSessVar('top15_ptsNHL_gardiens', $pool->getUserPreference($gerant, "top15_ptsNHL_gardiens"));
$top15_ptsPOOL_gardiens = $sess->getSessVar('top15_ptsPOOL_gardiens', $pool->getUserPreference($gerant, "top15_ptsPOOL_gardiens"));
$classement_nhl_accueil = $sess->getSessVar('classement_nhl_accueil', $pool->getUserPreference($gerant, "classement_nhl_accueil"));
// si les valeurs sont nulles, on met 'Y' par défaut
開發者ID:jfanctil,項目名稱:lamoria,代碼行數:31,代碼來源:accueil.php

示例2:

    echo "alert('Erreur lors de la connexion à la base de données. Vous serez ramené à la page d'acceuil.');";
    echo "top.location.href=\"/interPool{$dev}/index.php\";";
    echo "</SCRIPT>";
    exit;
}
$poolLogo = $sess->getSessVar('logo_pool', '');
if ($poolLogo == "") {
    $data = $pool->getConfigPool($id_pool, $id_saison);
    $logo = $data["logo"];
    $sess->setSessVar('logo_pool', $logo);
    $poolLogo = $logo;
}
if ($tab == "pool") {
    // récupérer l'info des top15 dans la session. Si la valeur est absente, on prend la valeur
    // des préférences de l'usager
    $playoffs2_top15_jour = $sess->getSessVar('playoffs2_top15_jour', $pool->getUserPreference($gerant, "playoffs2_top15_jour"));
    $playoffs2_top15_series = $sess->getSessVar('playoffs2_top15_series', $pool->getUserPreference($gerant, "playoffs2_top15_series"));
    $playoffs2_top15_ronde1 = $sess->getSessVar('playoffs2_top15_ronde1', $pool->getUserPreference($gerant, "playoffs2_top15_ronde1"));
    $playoffs2_top15_ronde2 = $sess->getSessVar('playoffs2_top15_ronde2', $pool->getUserPreference($gerant, "playoffs2_top15_ronde2"));
    $playoffs2_top15_ronde3 = $sess->getSessVar('playoffs2_top15_ronde3', $pool->getUserPreference($gerant, "playoffs2_top15_ronde3"));
    $playoffs2_top15_ronde4 = $sess->getSessVar('playoffs2_top15_ronde4', $pool->getUserPreference($gerant, "playoffs2_top15_ronde4"));
    $playoffs2_classement = $sess->getSessVar('playoffs2_classement', $pool->getUserPreference($gerant, "playoffs2_classement"));
    // si les valeurs sont nulles, on met 'Y' par défaut
    if ($playoffs2_top15_jour == "") {
        $playoffs2_top15_jour = "Y";
    }
    if ($playoffs2_top15_series == "") {
        $playoffs2_top15_series = "Y";
    }
    if ($playoffs2_top15_ronde1 == "") {
        $playoffs2_top15_ronde1 = "Y";
開發者ID:jfanctil,項目名稱:lamoria,代碼行數:31,代碼來源:accueil.php


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