当前位置: 首页>>代码示例>>PHP>>正文


PHP Game::display_result方法代码示例

本文整理汇总了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>
开发者ID:Britgo,项目名称:Online-League,代码行数:30,代码来源:fixres3.php

示例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);
开发者ID:Britgo,项目名称:Online-League,代码行数:31,代码来源:playgames.php

示例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>
开发者ID:Britgo,项目名称:Online-League,代码行数:30,代码来源:addilresultb2.php

示例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') {
开发者ID:Britgo,项目名称:Online-League,代码行数:31,代码来源:addresult2.php


注:本文中的Game::display_result方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。