当前位置: 首页>>代码示例>>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;未经允许,请勿转载。