本文整理汇总了PHP中interPool::getNombrePeriodes方法的典型用法代码示例。如果您正苦于以下问题:PHP interPool::getNombrePeriodes方法的具体用法?PHP interPool::getNombrePeriodes怎么用?PHP interPool::getNombrePeriodes使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类interPool
的用法示例。
在下文中一共展示了interPool::getNombrePeriodes方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: CLUB
<TABLE cellpadding=0 cellspacing=0 border=0 style="margin-top:10px;">
<TR>
<?php
if ($choix_stats == "pts") {
echo "<TH CLASS=\"tableHeaderRoundCorner\" COLSPAN=50 style=\"font-size:16px;\">GRAND CLUB (points)</TH>\n";
} else {
echo "<TH CLASS=\"tableHeaderRoundCorner\" COLSPAN=50 style=\"font-size:16px;\">GRAND CLUB (parties)</TH>\n";
}
?>
</TR>
<TR>
<TH CLASS="tableHeader1" COLSPAN="4"> </TH>
<TH CLASS="tableHeader1" COLSPAN="<?php
echo $pool->getNombrePeriodes($id_pool, $id_saison);
?>
">Périodes</TH>
<TH CLASS="tableHeader1" COLSPAN="2"> </TH>
</TR>
<TR>
<TH CLASS="tableHeader1">Rg</TH>
<TH CLASS="tableHeader1">Joueur</TH>
<TH CLASS="tableHeader1" width=40>Pos</TH>
<TH CLASS="tableHeader1">Éq.</TH>
<?php
$nbrePeriodes = $pool->getNombrePeriodes($id_pool, $id_saison);
for ($i = 1; $i <= $nbrePeriodes; $i++) {
echo "<th class=\"tableHeader1\" width=25>{$i}</th>\n";
}
?>
示例2: updateClass
}
$upd = new updateClass();
$pool = new interPool();
$pool->dbConnect();
// nom du pool selon son id...
$query = "select name from pools where id = {$id_pool}";
$resultID = mysql_query($query, $pool->handle);
$data = mysql_fetch_array($resultID, MYSQL_ASSOC);
mysql_free_result($resultID);
$poolName = $data['name'];
$pool->dbClose();
$pool->dbConnect(strtolower($poolName));
$periode = $pool->getPeriode($id_pool, $id_saison);
$datesPeriode = $pool->getDatesPeriode($id_pool, $periode, $id_saison);
$dateDebutPeriode = $datesPeriode["date_begin"];
$nbre_per = $pool->getNombrePeriodes($id_pool, $id_saison);
$periode_ori = $periode;
if ($periode > $nbre_per) {
$periode = $nbre_per;
}
$dates = $pool->getDatesPeriode($id_pool, $periode, $id_saison);
$date_debut = $dates["date_begin"];
$date_end = $dates["date_end"];
if ($periode_ori > $nbre_per) {
$date = $date_debut;
} else {
$date = $pool->today;
}
$show_per_prec = FALSE;
$view = "view_alignementGerant";
if ($dateDebutPeriode == $pool->today) {
示例3: count
<th nowrap>Pts pour</th>
<th nowrap>Moy. PP/pér.</th>
<th nowrap>Pts contre</th>
<th nowrap>Moy. PC/pér.</th>
<th nowrap>Diff.</th>
<th nowrap>10 d.m.</th>
<th nowrap>Séq.</th>
<th nowrap>Mvt</th>
</tr>
</thead>
<tbody>
<?php
if ($id_saison2show == $id_saison) {
$dataClassementA = $pool->getClassement($id_pool, $periode_sel, $periode, $nhl_team_as_gerant_name, $sortColClassement, $sortOrderClassement, $id_saison2show, $id_saison, $periode_sel_past_season);
} else {
$last_periode_saison2show = $pool->getNombrePeriodes($id_pool, $id_saison2show);
$last_periode_saison2show++;
$dataClassementA = $pool->getClassement($id_pool, $last_periode_saison2show, $periode, $nhl_team_as_gerant_name, $sortColClassement, $sortOrderClassement, $id_saison2show, $id_saison, $periode_sel_past_season);
}
//$dataClassementA = $pool->getClassement($id_pool,$periode_sel,$periode,$nhl_team_as_gerant_name,$sortColClassement,$sortOrderClassement,$id_saison2show,$id_saison,$periode_sel_past_season);
// construction d'une array des gerants et du nombre de points qu'ils ont (pour savoir si un gerant fait les séries ou
// s'il est éliminé des séries)
$nbreRows = count($dataClassementA);
if ($nbreRows > 0) {
foreach ($dataClassementA as $value) {
$valueA = explode(":", $value);
$rank = $valueA[0];
$points = $valueA[4];
$points_rankA[$rank] = $points;
}
}
示例4: count
<DIV STYLE="float:left;width:55%;">
<TABLE ALIGN="center" cellpadding=0 cellspacing=0 border=0>
<TR>
<TH NOWRAP CLASS="tableHeaderTopLeft2">Pיriode</TH>
<TH NOWRAP CLASS="tableHeader1">Rיsultat</TH>
<TH NOWRAP CLASS="tableHeader1">Adversaire</TH>
<TH NOWRAP CLASS="tableHeader1">Pts p.</TH>
<TH NOWRAP CLASS="tableHeader1">Pts c.</TH>
<TH NOWRAP CLASS="tableHeader1">Pts F1</TH>
<TH NOWRAP CLASS="tableHeader1">Rang</TH>
<TH NOWRAP CLASS="tableHeaderTopRight2">Rang F1</TH>
</TR>
<?php
$dataDetailCalendrierGerantA = $pool->getDetailCalendrierGerant2($id_pool, $gerant_sel, $nhl_team_as_gerant_name, $id_saison2show, $periode_sel);
$nbreRows = count($dataDetailCalendrierGerantA);
$nbrePeriodes = $pool->getNombrePeriodes($id_pool, $id_saison2show);
$row_compteur = 0;
for ($i = 0; $i < $nbrePeriodes; $i++) {
$item = $dataDetailCalendrierGerantA[$i];
$itemA = explode(":", $item);
$periode_i = $itemA[0];
if (count($itemA) > 6) {
$periode_i = $itemA[0];
$adversaire_nickname = $itemA[1];
$resultat = $itemA[2];
$pts_pour = $itemA[3];
$pts_contre = $itemA[4];
$adversaire_realname = $itemA[5];
$gerant_team_city = $itemA[6];
$gerant_team_logo = $itemA[7];
$pts_F1 = $itemA[8];