本文整理汇总了PHP中interPool::getNHLDivisions方法的典型用法代码示例。如果您正苦于以下问题:PHP interPool::getNHLDivisions方法的具体用法?PHP interPool::getNHLDivisions怎么用?PHP interPool::getNHLDivisions使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类interPool
的用法示例。
在下文中一共展示了interPool::getNHLDivisions方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: foreach
echo "<tr>\n";
echo "<td><a href=\"#general\">Classement général</a></td>\n";
echo "<td><a href=\"#conference\">Classement par conférence</a></td>\n";
echo "<td><a href=\"#division\">Classement par division</a></td>\n";
echo "</tr>\n";
echo "</table>\n";
echo "<table align=\"center\" cellspacing=5 cellpadding=5>\n";
foreach ($revuesA as $revueA) {
echo "<tr>\n";
echo "<td>\n";
echo "<table cellpadding=0 cellspacing=0 border=0>\n";
echo "<tr>\n";
echo "<th CLASS=\"tableHeaderRoundCorner\" colspan=100>Selon la revue '{$revueA['nom']}'</th>";
echo "</tr>\n";
echo "<tr>\n";
$division_dataA = $pool->getNHLDivisions(1);
foreach ($division_dataA as $divisionA) {
echo "<th CLASS=\"tableHeader1\" colspan=3 nowrap>{$divisionA['name']}</th>";
echo "<th CLASS=\"tableHeader2\" style=\"padding:0 0 0 0;\"> </th>\n";
}
$division_dataA = $pool->getNHLDivisions(2);
foreach ($division_dataA as $divisionA) {
echo "<th CLASS=\"tableHeader1\" colspan=3 nowrap>{$divisionA['name']}</th>";
echo "<th CLASS=\"tableHeader2\" style=\"padding:0 0 0 0;\"> </th>\n";
}
echo "</tr>\n";
echo "<tr>\n";
for ($i = 1; $i <= 6; $i++) {
echo "<th CLASS=\"tableHeader1\">Rg</th>";
echo "<th CLASS=\"tableHeader1\">Éq.</th>";
echo "<th CLASS=\"tableHeader1\" nowrap>Moy. Pts/Joueur<br>(# prédic.)</th>";
示例2: array
echo "<TD>\n";
// initialisation de certaines array (et remise à 0).
$id_teamA = array();
$cityA = array();
$team_nameA = array();
$team_abbrA = array();
$team_logoA = array();
$id_conference = $data_conference["id"];
$conference_name = $data_conference["name"];
$conference_logo = $data_conference["image"];
echo "<TABLE CLASS=\"joueurs_nhl\" ALIGN=\"CENTER\" border=1>\n";
echo "<TR>\n";
echo "<TH COLSPAN=10 ><IMG SRC=\"{$conference_logo}\" style=\"margin-right:5px;margin-left:5px;\"/>" . "<FONT style=\"vertical-align:100%;margin-right:10px;margin-left:10px;\">{$conference_name}</FONT>" . "<IMG SRC=\"{$conference_logo}\" tyle=\"margin-left:5px;\"/></TH>\n";
echo "</TR>\n";
echo "<TR>\n";
$nhl_divisions = $pool->getNHLDivisions($id_conference);
foreach ($nhl_divisions as $data_division) {
$id_division = $data_division["id"];
$division_name = $data_division["name"];
echo "<TH CLASS=\"joueurs_nhl\">{$division_name}</TH>\n";
}
echo "</TR>\n";
/* Pour afficher les équipes de chaque division en colonne:
on crée des arrays pour chaque info d'une équipe selon la division.
Ensuite, on insère ligne par ligne 1 équipe de chaque division.
Ce procédé fonctionnera tant qu'il y aura un même nombre d'équipes dans
chaque division...
*/
foreach ($nhl_divisions as $data_division) {
$id_division = $data_division["id"];
$nhl_teams = $pool->getNHLTeamsPerDivision($id_division);