本文整理汇总了PHP中Player::display_online方法的典型用法代码示例。如果您正苦于以下问题:PHP Player::display_online方法的具体用法?PHP Player::display_online怎么用?PHP Player::display_online使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Player
的用法示例。
在下文中一共展示了Player::display_online方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
$Name = $player->display_name(false);
print <<<EOT
<p>
These are recorded games on the league for {$Name}, currently
{$player->display_rank()}, of {$player->Club->display_name()}.
</p>
EOT;
$pu = $player->display_userid(0);
if (strlen($pu) != 0) {
print <<<EOT
<p>User id for the league: {$pu}.</p>
EOT;
}
$pon = $player->display_online();
if (strlen($pon) > 1) {
print <<<EOT
<p>Online name: {$pon}.</p>
EOT;
}
$pnotes = $player->display_notes();
if (strlen($pnotes) != 0) {
print <<<EOT
<h2>Notes for player</h2>
<p>{$pnotes}</p>
EOT;
}
$ret = mysql_query("select teamname from teammemb where {$player->queryof('tm')} order by teamname");
示例2: while
<tr><th colspan={$cs} align="center">Not in a team</th></tr>
EOT;
$ret = mysql_query("select first,last from player order by last,first,rank desc");
if ($ret) {
while ($row = mysql_fetch_assoc($ret)) {
$p = new Player($row["first"], $row["last"]);
if ($p->count_teams() != 0) {
continue;
}
$p->fetchdets();
$p->fetchclub();
print <<<EOT
<tr>
<td>{$p->display_name()}</td>
<td>{$p->display_rank()}</td>
<td>{$p->display_online()}</td>
<td>{$p->played_games(true, 'T')}</td>
<td>{$p->won_games(true, 'T')}</td>
<td>{$p->drawn_games(true, 'T')}</td>
<td>{$p->lost_games(true, 'T')}</td>
<td> </td>
<td>{$p->played_games()}</td>
<td>{$p->won_games()}</td>
<td>{$p->drawn_games()}</td>
<td>{$p->lost_games()}</td>
<td>{$p->Club->display_name()}</td>
</tr>
EOT;
}
}
示例3: confirm
var fm = document.ilresf;
if (fm.sgffile.value.length != 0)
return true;
return confirm("Are you sure that this game was not played on KGS so you can download it?");
}
</script>
<?php
include 'php/nav.php';
?>
<h1>Add result for Individual League</h1>
<p>Welcome
<?php
print <<<EOT
<b>{$player->display_name()}</b>
online name
<b>{$player->display_online()}</b>
from Division
{$player->ILdiv}.
EOT;
?>
</p>
<p>To enter the individual league match result, please complete the form below:
</p>
<form action="addilresultb2.php" method="post" enctype="multipart/form-data" name="ilresf" onsubmit="javascript: return checkform();">
<?php
print $player->save_hidden("pl");
?>
<table cellpadding="2" cellspacing="5" border="0">
<tr>
<td>Match was played on</td>