本文整理汇总了PHP中Game::display_result方法的典型用法代码示例。如果您正苦于以下问题:PHP Game::display_result方法的具体用法?PHP Game::display_result怎么用?PHP Game::display_result使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Game
的用法示例。
在下文中一共展示了Game::display_result方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: News
<?php
$Title = "Game Result Amended";
include 'php/head.php';
?>
<body>
<script language="javascript" src="webfn.js"></script>
<?php
$showadmmenu = true;
include 'php/nav.php';
?>
<h1>Amended Game Result</h1>
<p>
Finished amending result for Game between
<?php
print <<<EOT
<b>{$g->Wplayer->display_name()}</b>
({$g->Wplayer->display_rank()}) of
{$g->Wteam->display_name()} as White and
<b>{$g->Bplayer->display_name()}</b>
({$g->Bplayer->display_rank()}) of
{$g->Bteam->display_name()} as Black to be {$g->display_result()}.
</p>
EOT;
$n = new News($userid, "Amended result in {$mtch->Hteam->Name} -v- {$mtch->Ateam->Name} match in Division {$mtch->Division}", false, $mtch->showmatch());
$n->addnews();
?>
</div>
</div>
</body>
</html>
示例2:
default:
$r = '?';
break;
case 'W':
$r = "Lost";
break;
case 'J':
$r = "Jigo";
break;
case 'B':
$r = "Won";
break;
}
print "<td>{$r}</td>\n";
}
print "<td>{$g->display_result()}</td></tr>\n";
}
}
// End of while
print <<<EOT
\t</table>
\t<p>You can click on the name of each opponent to see the record for that opponent.
\t</p>
EOT;
}
// End if "if any games played" case
// Contact details rearranged so they always show
if ($logged_in) {
$em = $player->display_email_link();
$ph = $player->display_phone(true);
示例3: News
<?php
$Title = "Game Result Added";
include 'php/head.php';
?>
<body class="il">
<script language="javascript" src="webfn.js"></script>
<?php
include 'php/nav.php';
?>
<h1>Add Game Result</h1>
<p>
Finished adding result for Game between
<?php
print <<<EOT
<b>{$g->Wplayer->display_name()}</b>
({$g->Wplayer->display_rank()}) as White and
<b>{$g->Bplayer->display_name()}</b>
({$g->Bplayer->display_rank()}) as Black was {$g->display_result()}.
</p>
EOT;
$n = new News($userid, "Individual League game completed between {$player->display_name(false)} and {$opp->display_name(false)} in Division {$player->ILdiv}");
$n->addnews();
?>
<p>Click <a href="ileague.php" title="View the individual league standings">here</a>
to see the league status now.</p>
</div>
</div>
</body>
</html>
示例4: News
<body>
<script language="javascript" src="webfn.js"></script>
<?php
include 'php/nav.php';
?>
<h1>Add Game Result</h1>
<p>
Finished adding result for Game between
<?php
print <<<EOT
<b>{$g->Wplayer->display_name(false)}</b>
({$g->Wplayer->display_rank()}) of
{$g->Wteam->display_name()} as White and
<b>{$g->Bplayer->display_name(false)}</b>
({$g->Bplayer->display_rank()}) of
{$g->Bteam->display_name()} as Black was {$g->display_result()}.
</p>
EOT;
if ($mtch->Result == 'P') {
print <<<EOT
<p>The match has not been completed yet.
</p>
EOT;
$n = new News($userid, "Game completed in {$mtch->Hteam->Name} -v- {$mtch->Ateam->Name} in Division {$mtch->Division}", false, $mtch->showmatch());
$n->addnews();
} else {
$result = 'The winner of the match was ';
if ($mtch->Result == 'H') {
$result .= $mtch->Hteam->Name;
} elseif ($mtch->Result == 'A') {