當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Player::display_online方法代碼示例

本文整理匯總了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");
開發者ID:Britgo,項目名稱:Online-League,代碼行數:31,代碼來源:playgames.php

示例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>&nbsp;&nbsp;&nbsp;</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;
    }
}
開發者ID:Britgo,項目名稱:Online-League,代碼行數:31,代碼來源:pbt.php

示例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>
開發者ID:Britgo,項目名稱:Online-League,代碼行數:31,代碼來源:addilresult.php


注:本文中的Player::display_online方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。