本文整理汇总了PHP中interPool::getGravatar方法的典型用法代码示例。如果您正苦于以下问题:PHP interPool::getGravatar方法的具体用法?PHP interPool::getGravatar怎么用?PHP interPool::getGravatar使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类interPool
的用法示例。
在下文中一共展示了interPool::getGravatar方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: isset
$reponse_gerant = "Non";
}
$style = "";
}
echo "<TR>\n";
if ($nhl_team_as_gerant_name == "N") {
echo "<TD width=50%>{$nickname}</TD>\n";
} else {
if ($gerant_team_abbr == "ANA") {
$vertical_align = "";
$width_height = "width=21 height=21";
} else {
$vertical_align = "";
$width_height = "width=21 height=21";
}
isset($gravatarA[$this_id_gerant]) ? $src_logo = $pool->getGravatar($gravatarA[$this_id_gerant], 22, $gerant_logo) : ($src_logo = $gerant_logo);
echo "<TD width=50%>" . "<IMG SRC=\"{$src_logo}\" style=\"padding-left:5px;margin-right:5px;{$vertical_align}\" {$width_height}/>" . "<FONT style=\"vertical-align:40%;margin-right:3px;\">{$nickname}</FONT>" . "</TD>\n";
}
echo "<TD style=\"text-align:left;padding-top:3px;{$style}\">{$reponse_gerant}</TD>\n";
echo "</TR>\n";
}
echo "</TABLE>\n";
echo "</div>\n";
echo "</div>\n";
echo "</div>\n";
}
echo "</FORM>\n";
}
echo "</tr>\n";
echo "</table>\n";
} else {
示例2: foreach
echo "<th CLASS=\"tableHeaderRoundCorner\" COLSPAN=50 style=\"font-size:14px;\">Trading Block" . "<img src=\"/images/ObjectIconInfo.gif\" class=\"info_bulle_tradingBlock\" title=\"{$title}\" style=\"margin-left:10px;vertical-align:bottom;\" /></th>\n";
echo "</tr>\n";
echo "<tr>\n";
foreach ($dataA as $itemA) {
$this_gerant = $itemA['gerant'];
$this_gerantA[] = $this_gerant;
$this_dataGerantA[] = $itemA;
}
$prev_gerant = "";
foreach ($this_gerantA as $index => $this_gerant) {
$infoGerantA = $pool->getGerantProfil($id_pool, $this_gerant, $id_saison);
$logo_gerantA = $pool->getTeamInfo($infoGerantA['nhl_team']);
$logo_gerant = $logo_gerantA['logo'];
if ($prev_gerant == "") {
$prev_gerant = $this_gerant;
isset($gravatarA[$this_gerant]) ? $src_logo = $pool->getGravatar($gravatarA[$this_gerant], 22, $logo_gerant) : ($src_logo = $logo_gerant);
echo "<td CLASS=\"tableCell2\" nowrap align='center'>" . "<img src=\"{$src_logo}\" style=\"margin-right:5px;margin-top:3px;margin-bottom:3px;margin-left:3px;\" />" . "<FONT style=\"vertical-align:70%;margin-right:3px;\">{$infoGerantA['nickname']}";
}
if ($this_gerant != $prev_gerant) {
$prev_gerant = $this_gerant;
isset($gravatarA[$this_gerant]) ? $src_logo = $pool->getGravatar($gravatarA[$this_gerant], 22, $logo_gerant) : ($src_logo = $logo_gerant);
echo "</td>\n";
echo "<td CLASS=\"tableCell2\" nowrap align='center'>" . "<img src=\"{$src_logo}\" style=\"margin-right:5px;margin-top:3px;margin-bottom:3px;margin-left:3px;\" />" . "<FONT style=\"vertical-align:70%;margin-right:3px;\">{$infoGerantA['nickname']}";
}
}
echo "</td>\n";
echo "</tr>\n";
echo "<div id=\"menu_contextuelGC\">\n";
echo "<tr>\n";
$prev_gerant = "";
foreach ($this_dataGerantA as $index => $itemA) {
示例3: explode
case "periode":
$valueA = explode(":", $data2);
$visitor_nickname = $valueA[0];
$visitor_realname = $valueA[1];
$home_nickname = $valueA[2];
$home_realname = $valueA[3];
$no_match = $valueA[4];
$gerant_visitor_city = $valueA[5];
$gerant_visitor_team_name = $valueA[6];
$gerant_visitor_team_logo = $valueA[7];
$gerant_home_city = $valueA[8];
$gerant_home_team_name = $valueA[9];
$gerant_home_team_logo = $valueA[10];
$id_gerant_home = $valueA[11];
$id_gerant_visitor = $valueA[12];
isset($gravatarA[$id_gerant_visitor]) ? $src_logo_visitor = $pool->getGravatar($gravatarA[$id_gerant_visitor], 22, $gerant_visitor_team_logo) : ($src_logo_visitor = $gerant_visitor_team_logo);
isset($gravatarA[$id_gerant_home]) ? $src_logo_home = $pool->getGravatar($gravatarA[$id_gerant_home], 22, $gerant_home_team_logo) : ($src_logo_home = $gerant_home_team_logo);
echo "<div id=\"menu_contextuel{$no_match}\">\n";
echo "<table cellpadding=0 cellspacing=0 border=0 width=100% id=\"table{$no_match}\">\n";
echo "<tr>\n";
echo "<td class=\"tableHeaderTopLeft2\" colspan=8>\n";
echo "<IMG SRC=\"{$src_logo_visitor}\" style=\"margin-right:5px;margin-bottom:1px;margin-top:1px;\"/>" . "<FONT style=\"vertical-align:60%;margin-right:3px;\">" . "{$visitor_nickname}</FONT>\n";
echo "</td>\n";
echo "<td class=\"tableHeader1\">vs</td>";
echo "<td class=\"tableHeaderTopRight2\" colspan=8>\n";
echo "<IMG SRC=\"{$src_logo_home}\" style=\"margin-right:5px;margin-bottom:1px;margin-top:1px;\"/>" . "<FONT style=\"vertical-align:60%;margin-right:3px;\">" . "{$home_nickname}</FONT>\n";
echo "</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td CLASS=\"tableHeader1\" COLSPAN=3>Actifs</td>\n";
echo "<td CLASS=\"tableHeader1\" COLSPAN=4>Points</td>\n";
示例4: foreach
$dataA = $pool->recordStats($id_pool, $id_saison, $id_saison_record, 3);
foreach ($dataA as $key => $item) {
list($id_gerant_record, $realName_abrege, $logo, $nbre_records, $good_records, $bad_records, $number1_good_record, $number1_bad_record, $moyenne) = explode(";", $item);
$key++;
if ($gerant_sel == $id_gerant_record) {
$style = "font-weight:bold;background-color:yellow;";
} else {
$style = "";
}
echo "<tr>\n";
echo "<td class=\"tableCellRidge1\" nowrap align=\"center\" style=\"padding-left:5px;padding-right:5px;padding-top:5px;padding-bottom:5px;{$style}\">{$key}</td>\n";
echo "<td class=\"tableCellRidge1\" nowrap align=\"left\" style=\"padding-left:10px;padding-right:10px;{$style}\">";
if ($nhl_team_as_gerant_name_saison == "N") {
echo "{$realName_abrege}";
} else {
isset($gravatarA[$id_gerant_record]) ? $src_logo = $pool->getGravatar($gravatarA[$id_gerant_record], 22, $logo) : ($src_logo = $logo);
echo "<IMG SRC=\"{$src_logo}\" style=\"margin-right:5px;\" />" . "<FONT style=\"vertical-align:60%;margin-right:3px;\">{$realName_abrege}</FONT>" . "</FONT>\n";
}
echo "</td>\n";
echo "<td class=\"tableCellRidge1\" nowrap align=\"center\" style=\"padding-left:5px;padding-right:5px;{$style}\">{$nbre_records}</td>\n";
echo "<td class=\"tableCellRidge1\" nowrap align=\"center\" style=\"padding-left:5px;padding-right:5px;{$style}\">{$good_records}</td>\n";
echo "<td class=\"tableCellRidge1\" nowrap align=\"center\" style=\"padding-left:5px;padding-right:5px;{$style}\">{$bad_records}</td>\n";
echo "<td class=\"tableCellRidge1\" nowrap align=\"center\" style=\"padding-left:5px;padding-right:5px;{$style}\">{$number1_good_record}</td>\n";
echo "<td class=\"tableCellRidge1\" nowrap align=\"center\" style=\"padding-left:5px;padding-right:5px;{$style}\">{$number1_bad_record}</td>\n";
echo "<td class=\"tableCellRidge2\" nowrap align=\"center\" style=\"padding-left:5px;padding-right:5px;{$style}\">{$moyenne} %</td>\n";
echo "</tr>\n";
}
echo "<tr><td class=\"tableCellRidge7\" colspan=50> </td></tr>\n";
echo "</table>\n";
echo "</div>\n";
// VICTOIRES CONSÉCUTIVES
示例5: isset
} else {
if ($rank == 1 && $pool->isGerantChampion2($id_pool, $points_rankA, $periode, $nbre_periodes, $pts_victoire_gerant, $id_saison, $id_saison)) {
$status_string .= "z";
}
if ($pool->isGerantElimine($id_pool, $rank, $points_rankA, $periode, $nbre_periodes, $pts_victoire_gerant, $id_saison, $id_saison)) {
$status_string = "e";
}
if ($status_string != "") {
$status_string .= " -";
}
}
echo "<TD NOWRAP style=\"text-align:left;padding-left:10px;padding-top:5px;padding-bottom:5px;{$style}\">";
if ($nhl_team_as_gerant_name == "N") {
echo "<FONT style=\"margin-right:5px;\">{$series_string} {$status_string}</FONT>{$nickname}";
} else {
isset($gravatarA[$id_gerant]) ? $src_logo = $pool->getGravatar($gravatarA[$id_gerant], 22, $gerant_team_logo) : ($src_logo = $gerant_team_logo);
echo "<FONT style=\"vertical-align:60%;margin-right:5px;\">{$series_string} {$status_string}</FONT>" . "<IMG SRC=\"{$src_logo}\" style=\"margin-right:5px;n\"/>" . "<a href=\"/src/gerant_info.php?id_pool={$id_pool}&id_saison={$id_saison}&gerant={$id_gerant}&poolName={$poolName}\" class=\"gerantInfoTrigger\">" . "<FONT style=\"vertical-align:60%;\" >{$real_name}</FONT></a>";
}
echo "</TD>\n";
echo "<TD NOWRAP style=\"{$style}\" width=75>{$victoires}</TD>";
echo "<TD NOWRAP style=\"{$style}\" width=75>{$defaites}</TD>";
echo "<TD NOWRAP style=\"{$style}\" width=75>{$nulles}</TD>";
echo "<TD NOWRAP style=\"{$style}\" width=75>{$points}</TD>";
if ($nbre_periodes - $periode_sel < 10 && $id_saison2show == $id_saison) {
echo "<TD NOWRAP style=\"{$style}\" width=75>{$magic_number}</TD>";
}
echo "<TD NOWRAP style=\"{$style}\" width=75>{$pts_pour}</TD>";
echo "<TD NOWRAP style=\"{$style}\" width=75>{$moy_pp}</TD>";
echo "<TD NOWRAP style=\"{$style}\" width=75>{$pts_contre}</TD>";
echo "<TD NOWRAP style=\"{$style}\" width=75>{$moy_pc}</TD>";
echo "<TD NOWRAP style=\"{$style}\" width=75>{$differentiel}</TD>";
示例6: isset
} else {
$moyenne = "0,00";
}
}
if ($id_gerant == $gerant_sel) {
$style = "font-weight:bold;padding-left:5px;padding-right:5px;padding-top:5px;padding-bottom:5px;";
} else {
$style = "padding-left:5px;padding-right:5px;padding-top:5px;padding-bottom:5px;";
}
echo "<TR>\n";
echo "<TD class=\"tableCellRidge1\" align=\"center\" style=\"{$style}\">{$rang}</TD>\n";
echo "<TD class=\"tableCellRidge1\" align=\"left\" style=\"padding-left:5px;padding-right:5px;padding-top:5px;padding-bottom:5px;{$style}\">";
if ($nhl_team_as_gerant_name_saison == "N") {
echo "{$nickname}";
} else {
isset($gravatarA[$id_gerant]) ? $src_logo = $pool->getGravatar($gravatarA[$id_gerant], 22, $logo) : ($src_logo = $logo);
echo "<IMG SRC=\"{$src_logo}\" style=\"margin-right:5px;{$vertical_align}\" />" . "<a href=\"/src/gerant_info.php?id_pool={$id_pool}&id_saison={$id_saison}&gerant={$id_gerant}&poolName={$poolName}\" class=\"gerantInfoTrigger\">" . "<FONT style=\"vertical-align:60%;margin-right:3px;\">{$real_name}</a></FONT>" . "</FONT></TD>\n";
}
echo "</TD>\n";
echo "<TD class=\"tableCellRidge1\" align=\"center\" style=\"{$style}\">{$total_matchs_contre}</TD>\n";
if ($rang == 1) {
echo "<TD class=\"tableCellRidge1\" align=\"center\" style=\"{$style}\">-</TD>\n";
} else {
echo "<TD class=\"tableCellRidge1\" align=\"center\" style=\"{$style}\">{$differentiel}</TD>\n";
}
echo "<TD class=\"tableCellRidge1\" align=\"center\" style=\"{$style}\">{$nbre_periodes}</TD>\n";
echo "<TD class=\"tableCellRidge2\" align=\"center\" style=\"{$style}\">{$moyenne}</TD>\n";
echo "</TR>\n";
$rang++;
}
echo "<tr><td class=\"tableCellRidge7\" colspan=50> </td></tr>\n";
示例7: unset
}
unset($liste_picks_gerant1A);
}
echo "<div id=\"ajax\">\n";
echo "<FORM NAME=\"proposition_{$id_tradeProposition}\" ID=\"proposition_{$id_tradeProposition}\" METHOD=\"POST\" ACTION=\"" . $_SERVER['PHP_SELF'] . "\">\n";
echo "<div class=\"rounded\" style=\"width:{$width_pmb}px;\">\n";
echo "<p align=\"center\"><FONT STYLE=\"font-family:Tahoma, Verdana; font-size:14px;\">Proposition {$compteur} - {$str_duree}</FONT></p>\n";
echo "<table cellpadding=0 cellspacing=0 border=0 align=\"center\">\n";
echo "<tr>\n";
echo "<td>\n";
echo "<table cellpadding=0 cellspacing=0 border=0 align=\"center\">\n";
echo "<tr>\n";
if ($nhl_team_as_gerant_name == "N") {
echo "<th class=\"tableHeaderRoundCorner\" nowrap colspan=100 align='center'>" . $gerant1Profil['real_name_abrege'];
} else {
isset($gravatarA[$id_gerant1]) ? $src_logo = $pool->getGravatar($gravatarA[$id_gerant1], 22, $gerant1_logo) : ($src_logo = $gerant1_logo);
echo "<th class=\"tableHeaderRoundCorner\" nowrap colspan=100 align='center'>" . "<IMG SRC=\"{$src_logo}\" style=\"margin-right:5px\"/>" . "<FONT style=\"vertical-align:60%;\">" . $gerant1Profil['real_name_abrege'] . "</FONT>";
}
switch ($gerant1_accepte) {
case "-":
echo "<FONT style=\"vertical-align:60%;\"> (ne s'est pas encore prononcé)</FONT>";
break;
case "Y":
echo "<FONT style=\"vertical-align:60%;\"> (a proposé l’échange suivante)</FONT>";
break;
}
echo "</th>\n";
echo "</tr>\n";
echo "<tr>\n";
$compteur = 0;
$str_player = "";
示例8: isset
$style_font_color_home = "color:red;";
} else {
$prediction_pts_avancement_home = $diff;
$style_font_color_home = "color:black;";
}
}
$style = "";
if ($id_gerant_visitor == $gerant_sel) {
$style = "font-weight:bold;";
}
echo "<TR>\n";
echo "<TD align=\"left\">{$no_match})</TD>\n";
if ($nhl_team_as_gerant_name == "N") {
echo "<TD align=\"left\" style=\"{$style}\" nowrap>" . "<FONT onmouseover=\"ddrivetip('{$realName_visitor}')\" " . "onmouseout=\"hideddrivetip()\">{$nickname_visitor}</FONT></TD>\n";
} else {
isset($gravatarA[$id_gerant_visitor]) ? $src_logo = $pool->getGravatar($gravatarA[$id_gerant_visitor], 22, "http://www.lamoria.ca{$logo_visitor}") : ($src_logo = "http://www.lamoria.ca{$logo_visitor}");
echo "<TD align=\"left\" style=\"{$style}\" nowrap>" . "<FONT onmouseover=\"ddrivetip('{$realName_visitor}')\" " . "onmouseout=\"hideddrivetip()\">" . "<IMG SRC=\"{$src_logo}\" style=\"margin-right:5px;\" />" . "<FONT style=\"vertical-align:60%;margin-right:3px;\">{$nickname_visitor}</FONT>" . "</FONT></TD>\n";
}
if ($allPlayersActive == "Y") {
echo "<TD align=\"center\" style=\"{$style}\" nowrap>{$pts_jour_visitor}/" . "<font style=\"color:#999999;\">{$prediction_pts_yesterday_visitor}</font></TD>\n";
echo "<TD align=\"center\" style=\"{$style}\" nowrap><b>{$pts_periode_visitor}</b></TD>\n";
} else {
echo "<TD align=\"center\" style=\"{$style}\" nowrap>{$pts_jour_visitor}/{$pts_total_jour_visitor}/" . "<font style=\"color:#999999;\">{$prediction_pts_yesterday_visitor}</font></TD>\n";
echo "<TD align=\"center\" style=\"{$style}\" nowrap><b>{$pts_periode_visitor}</b>/{$pts_total_periode_visitor}</TD>\n";
}
echo "<TD align=\"center\" style=\"{$style}\" nowrap><b>{$parties_jour_visitor}</b>/{$parties_reste_visitor}/{$parties_periode_visitor}</TD>\n";
echo "<TD align=\"center\" style=\"{$style}\" nowrap>{$prediction_pts_per_visitor} / {$prediction_pts_jour_visitor} / <font style=\"{$style_font_color_visitor}\">{$prediction_pts_avancement_visitor}</font></TD>\n";
echo "</TR>\n";
$style = "";
if ($id_gerant_home == $gerant_sel) {
$style = "font-weight:bold;";
示例9: isset
$i++;
$parties_jour_home = $valueA[$i];
$i++;
$parties_reste_home = $valueA[$i];
$i++;
$parties_jouees_home = $valueA[$i];
$i++;
$parties_periode_home = $valueA[$i];
$i++;
// gerant visiteur
echo "<TR style=\"background-color:transparent;\" " . "onmouseover=\"setPointer(this,'over','#266494','transparent','white');\" " . "onmouseout=\"setPointer(this,'out','#266494','transparent','black');\">\n";
echo "<TH class=\"tableHeader10\" rowspan=2>{$no_match}</TH>\n";
if ($nhl_team_as_gerant_name == "N") {
echo "<td class=\"tableCellRidge1\" style=\"padding-top:3px;padding-bottom:3px;padding-left:5px;padding-right:5px;\">" . "{$nickname_visitor}</td>\n";
} else {
isset($gravatarA[$id_gerant_visitor]) ? $src_logo = $pool->getGravatar($gravatarA[$id_gerant_visitor], 22, $team_logo_visitor) : ($src_logo = $team_logo_visitor);
echo "<td class=\"tableCellRidge1\" style=\"padding-top:3px;padding-bottom:3px;padding-left:5px;padding-right:5px;\">" . "<IMG SRC=\"{$src_logo}\" style=\"margin-right:5px;margin-bottom:1px;margin-top:1px;\"/>" . "<a href=\"/src/gerant_info.php?id_pool={$id_pool}&id_saison={$id_saison}&gerant={$id_gerant_visitor}&poolName={$poolName}\" class=\"gerantInfoTrigger\">" . "<FONT style=\"vertical-align:60%;\" title=\"{$realname_visitor}\" class=\"gerantRealName\">{$nickname_visitor}</FONT></a></TD>";
}
echo "<td class=\"tableCellRidge1\"> </td>\n";
foreach ($ptsDayOfPeriodVisitorA as $key => $pts_jour_per) {
if ($dayOfPeriode == $key) {
echo "<td class=\"tableCellRidge1\" align=\"center\" style=\"font-weight:bold;color:blue;\">{$pts_jour_per}</td>\n";
} else {
echo "<td class=\"tableCellRidge1\" align=\"center\">{$pts_jour_per}</td>\n";
}
}
echo "<td class=\"tableCellRidge1\"> </td>\n";
echo "<td class=\"tableCellRidge1\" align=\"center\" style=\"font-weight:bold;color:red;\">{$pts_periode_visitor}</td>\n";
echo "<td class=\"tableCellRidge1\" align=\"center\">{$pts_perdu_jour_visitor}</td>\n";
echo "<td class=\"tableCellRidge1\" align=\"center\">{$pts_perdu_periode_visitor}</td>\n";
echo "<td class=\"tableCellRidge1\" align=\"center\" style=\"font-weight:bold;color:darkred;\">{$parties_jour_visitor}</td>\n";