本文整理汇总了PHP中interPool::getGerantProfil方法的典型用法代码示例。如果您正苦于以下问题:PHP interPool::getGerantProfil方法的具体用法?PHP interPool::getGerantProfil怎么用?PHP interPool::getGerantProfil使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类interPool
的用法示例。
在下文中一共展示了interPool::getGerantProfil方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
echo "top.location.href=\"/interPool/index.php\";";
echo "</SCRIPT>";
exit;
}
if (isset($_REQUEST["tab"])) {
$tab = $_REQUEST["tab"];
$sess->setSessVar('tab_journal', $tab);
}
if ($tab == "saison") {
$id_saison_journal = $id_saison;
}
// rיcupיrer certaines informations du pool
$data = $pool->getConfigPool($id_pool, $id_saison);
$nhl_team_as_gerant_name = $data["nhl_team_as_gerant_name"];
$nom_journal = $data["nom_journal"];
$data2 = $pool->getGerantProfil($id_pool, $gerant, $id_saison);
$afficher_filigrane = $data2["afficher_filigrane"];
if ($nhl_team_as_gerant_name == "Y" && $afficher_filigrane == "Y") {
$filligrane1 = $pool->getTeamFiligrane1($id_pool, $gerant_sel, $id_saison);
}
if (isset($_REQUEST["cb_choix_saison"])) {
$id_saison_journal = $_REQUEST["cb_choix_saison"];
$sess->setSessVar('id_saison_journal', $id_saison_journal);
}
if (isset($_GET["sem"])) {
$sem_journal = $_GET["sem"];
} else {
if ($tab == "a_vie") {
$sem_journal = "01";
} else {
if ($periode_sel < 10) {
示例2: foreach
if (count($dataA) > 0) {
echo "<br>\n";
echo "<table cellpadding=0 cellspacing=0 border=0 style=\"margin-left:10px;\">\n";
echo "<tr>\n";
$title = "Joueurs que chaque gérant est prêt à échanger";
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";
示例3: while
$resultID = mysql_query($query, $pool->handle);
$data = mysql_fetch_array($resultID, MYSQL_ASSOC);
mysql_free_result($resultID);
if ($data[d1] == 0) {
echo "<center><H3>Aucun échange en attente d'approbation.</H3></center>\n";
} else {
// On affiche les trades à approuver...
$query = "select * from trade\n\t where id_pool = {$id_pool}\n\t and saison_id = {$id_saison}\n\t and approuve = 'N'\n\t order by id asc";
$resultID = mysql_query($query, $pool->handle);
while ($data = mysql_fetch_array($resultID, MYSQL_ASSOC)) {
$id_trade = $data["id"];
$id_gerant1 = $data["id_gerant1"];
$liste_joueurs_gerant1 = $data["liste_joueurs_gerant1"];
$id_gerant2 = $data["id_gerant2"];
$liste_joueurs_gerant2 = $data["liste_joueurs_gerant2"];
$gerant1Profil = $pool->getGerantProfil($id_pool, $id_gerant1, $id_saison);
$gerant2Profil = $pool->getGerantProfil($id_pool, $id_gerant2, $id_saison);
echo "<div id=\"ajax\">\n";
$pmb = new PhpMyBorder(true);
echo "<FORM NAME=\"trade_{$id_trade}\" ID=\"trade_{$id_trade}\" METHOD=\"POST\" ACTION=\"" . $_SERVER['PHP_SELF'] . "\">\n";
echo $pmb->begin_round("500", "", "000000");
// (width, fillcolor, edgecolor)
echo "<table cellpadding=0 cellspacing=0 border=0 align=\"center\">\n";
echo "<tr>\n";
echo "<th class=\"tableHeaderRoundCorner\" colspan=6 align='center'>{$gerant1Profil['nickname']}";
echo " a proposé l’échange suivante";
echo "</th>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<TH class=\"tableHeader1\">Joueur</TH>\n";
echo "<TH class=\"tableHeader1\">Pos</TH>\n";
示例4: PhpMyBorder
<FONT STYLE="color:#FF0000; font-family:Tahoma, Verdana; font-size:14px;font-weight:bold;"><?php
echo $message;
?>
</FONT>
<BR><br>
</center>
<DIV style="float:left;padding-left:20px;">
<CENTER>
<FONT STYLE="font-family:Tahoma, Verdana; font-size:16px; font-weight:bold;">Profil</FONT>
<BR/>
</center>
<?php
$pmb = new PhpMyBorder(true);
echo $pmb->begin_round("750", "", "000000");
// (width, fillcolor, edgecolor)
$profilA = $pool->getGerantProfil($id_pool, $gerant_sel, $id_saison);
$affichage = $profilA["affichage"];
$logo_nhl_team = $profilA["nhl_team"];
//if ($profilA["afficher_filigrane"] == "Y") $aff_fili_checked = "checked";
//if ($profilA["morning_email"] == "Y") $receive_morning_email = "checked";
//if ($profilA["email_f2f_periode"] == "Y") $receive_email_f2f_periode = "checked";
//if ($profilA["email_f2f_jour"] == "Y") $receive_email_f2f_jour = "checked";
//if ($profilA["email_f2f_hier"] == "Y") $receive_email_f2f_hier = "checked";
//if ($profilA["rss_feed"] == "Y") $rss_feed = "checked";
$aff_fili_checked = $profilA["afficher_filigrane"] == "Y" ? "checked" : "";
$receive_morning_email = $profilA["morning_email"] == "Y" ? "checked" : "";
$receive_email_f2f_periode = $profilA["email_f2f_periode"] == "Y" ? "checked" : "";
$receive_email_f2f_jour = $profilA["email_f2f_jour"] == "Y" ? "checked" : "";
$receive_email_f2f_hier = $profilA["email_f2f_hier"] == "Y" ? "checked" : "";
$rss_feed = $profilA["rss_feed"] == "Y" ? "checked" : "";
?>
示例5: interPool
<?php
require_once '../class.interpool.php';
$id_pool = $_GET["id_pool"];
$id_saison = $_GET["id_saison"];
$id_gerant = $_GET["gerant"];
$rang = $_GET["rang"];
$data = $_GET["data"];
$poolName = $_GET["poolName"];
$pool = new interPool();
$pool->dbConnect(strtolower($poolName));
$nhl_team_as_gerant_name = "Y";
// pour les accents français
//header("Content-Type:application/xhtml+xml; charset=ISO-8859-1");
list($predict_pm5, $predict_pm10, $predict_pm15, $predict_pm20, $predict_pm25, $predict_pm30, $predict_pm35, $predict_pm40, $predict_pm45, $predict_pm50, $percent_total, $bulls_eye, $liste_joueur_bulls_eye) = split(";", $data);
$gerant_infoA = $pool->getGerantProfil($id_pool, $id_gerant, $id_saison);
$team_infoA = $pool->getTeamInfo($gerant_infoA[nhl_team]);
echo "<table cellpadding=0 cellspacing=0 border=0>\n";
echo "<tr>\n";
echo "<th CLASS=\"tableHeaderRoundCorner\" colspan=10><FONT style=\"vertical-align:60%;\">{$rang}) </font>\n <img src=\"{$team_infoA['logo']}\" style=\"margin-right:5px;\" />\n <FONT style=\"vertical-align:60%;\">{$gerant_infoA['real_name']}</font></th>";
echo "</tr>\n";
echo "<tr>\n";
echo "<th CLASS=\"tableHeader1\">Écart</th>";
echo "<th CLASS=\"tableHeader2\">% prédic.<br>dans l'écart</th>";
echo "</tr>\n";
echo "<tr>\n";
echo "<td class=\"tableCellRidge1\" align=\"left\" style=\"padding-top:2px;padding-bottom:2px;\">+/- 5 pts</td>\n";
echo "<td class=\"tableCellRidge2\" align=\"center\">{$predict_pm5} % </td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td class=\"tableCellRidge1\" align=\"left\" style=\"padding-top:2px;padding-bottom:2px;\">+/- 10 pts</td>\n";
示例6: foreach
$dataA = $pool->getPlayersTradingBlock($id_pool, $id_saison, $periode);
if (count($dataA) > 0) {
echo "<br>\n";
echo "<table cellpadding=0 cellspacing=0 border=0 style=\"margin-left:10px;\">\n";
echo "<tr>\n";
echo "<th CLASS=\"tableHeaderRoundCorner\" COLSPAN=50 style=\"font-size:14px;\">Trading Block" . "<img src=\"/images/ObjectIconInfo.gif\" class=\"info_bulle_tradingBlock\" 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;
echo "<td CLASS=\"tableCell2\" nowrap align='center'>" . "<img src=\"{$logo_gerant}\" 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;
echo "</td>\n";
echo "<td CLASS=\"tableCell2\" nowrap align='center'>" . "<img src=\"{$logo_gerant}\" 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";