本文整理汇总了PHP中interPool::getLast3YearsNames方法的典型用法代码示例。如果您正苦于以下问题:PHP interPool::getLast3YearsNames方法的具体用法?PHP interPool::getLast3YearsNames怎么用?PHP interPool::getLast3YearsNames使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类interPool
的用法示例。
在下文中一共展示了interPool::getLast3YearsNames方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: foreach
$last_3_yearsA = $pool->draftKitLast3Years($kit_choix_team, $id_pool, $id_saison);
if (count($last_3_yearsA) > 0) {
foreach ($last_3_yearsA as $item) {
$my_id_player = $item["id_player"];
$my_id_saison = $item["saison_id"];
$my_points = $item["points"];
$my_games = $item["games"];
$last_3_years_for_js[$my_id_player][$my_id_saison] = $my_points;
$last_3_years_games[$my_id_player][$my_id_saison] = $my_games;
$last_3_years_points[$my_id_player][$my_id_saison] = $my_points;
}
}
// création des arrays nécessaires
$revuesA = $pool->getRevues($id_saison);
$ponderationsA = $pool->draftKitPonderationsGerant($id_pool, $gerant, $id_saison);
$last_3_years_names = $pool->getLast3YearsNames();
$liste_prefA = $pool->draftKitPreference();
// tables des équipes de la NHL
echo "<TABLE ALIGN=\"center\" cellspacing=3 cellpadding=3>\n";
echo "<tr>\n";
echo "<td>\n <a href=\"" . $_SERVER['PHP_SELF'] . "?team=-1\">\n <img src=\"/images/star_yellow.png\" border=0/></a></td>\n";
echo "<td>\n <a href=\"" . $_SERVER['PHP_SELF'] . "?team=0\">\n <img src=\"/images/logos/nhl.gif\" border=0/></a></td>\n";
$dataA = $pool->getTeamsNHL();
foreach ($dataA as $itemA) {
$id_team = $itemA["id"];
$logo = $itemA["logo"];
if ($id_team > 30) {
continue;
}
if ($id_team_sel == $id_team) {
echo "<td>\n <a href=\"" . $_SERVER['PHP_SELF'] . "?team={$id_team}\">\n <img src=\"{$logo}\" /></a>\n </td>\n";
示例2: foreach
echo "</td>\n";
echo "<td align=\"center\" style=\"padding-right:10px;padding-top:10px;background-color:yellow;\">\n";
if ($last_3_years_limite_aff == "top50") {
echo "<input type=\"radio\" name=\"last_3_years_limite_aff\" value=\"top50\" checked " . "onclick=\"document.last_3_years.submit();\" />Top 50\n";
} else {
echo "<input type=\"radio\" name=\"last_3_years_limite_aff\" value=\"top50\" " . "onclick=\"document.last_3_years.submit();\" />Top 50\n";
}
if ($last_3_years_limite_aff == "all") {
echo "<input type=\"radio\" name=\"last_3_years_limite_aff\" value=\"all\" checked " . "onclick=\"document.last_3_years.submit();\" />Tous\n";
} else {
echo "<input type=\"radio\" name=\"last_3_years_limite_aff\" value=\"all\" " . "onclick=\"document.last_3_years.submit();\" />Tous\n";
}
echo "</td>\n";
echo "</tr>\n";
echo "</table>\n";
$last3years = $pool->getLast3YearsNames();
echo "<div id=\"menu_contextuel\">\n";
echo "<table id=\"table\" cellpadding=0 cellspacing=0 border=0 align=\"center\" style=\"margin-top:25px;\">\n";
echo "<tr>\n";
echo "<th class=\"tableHeaderRoundCorner\" colspan=40>JOUEURS : Stats des 3 dernières années (40 parties min.)</th>";
echo "</tr>\n";
echo "<tr>\n";
echo "<th class=\"tableHeader1\" nowrap colspan=4> </th>\n";
echo "<th class=\"tableHeader1\" nowrap> </th>\n";
foreach ($last3years as $item) {
$saison_nom = $item["name"];
echo "<th class=\"tableHeader1\" nowrap colspan=5>{$saison_nom}</th>\n";
echo "<th class=\"tableHeader1\" nowrap> </th>\n";
}
echo "<th class=\"tableHeader2\" nowrap colspan=5>Total</th>\n";
echo "</tr>\n";