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


PHP Game::urlof方法代码示例

本文整理汇总了PHP中Game::urlof方法的典型用法代码示例。如果您正苦于以下问题:PHP Game::urlof方法的具体用法?PHP Game::urlof怎么用?PHP Game::urlof使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Game的用法示例。


在下文中一共展示了Game::urlof方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: Matchdate

({$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.
</p>
<form name="resform" action="addresult2.php" method="post" enctype="multipart/form-data">
{$g->save_hidden()}
<p>
EOT;
$today = new Matchdate();
$today->dateopt("Game was played on");
print <<<EOT
</p>
<p>Please note that if the game is adjourned or crosses midnight, KGS normally stores the date it was <i>started</i> so please use that.</p>
<p><b>If you got the colours the wrong way round, please click <a href="javascript:checkreverse('{$g->urlof()}')">here</a>.</b></p>
<p>
Result was
<select name="result" size="0">
<option value="W">White Win</option>
<option value="B">Black Win</option>
<option value="J">Jigo</option>
</select>
by
<select name="resulttype" size="0">
<option value="N">Not known</option>
<option value="R">Resign</option>
<option value="T">Time</option>
EOT;
for ($v = 0; $v < 50; $v++) {
    print "<option value={$v}>{$v}.5</option>\n";
开发者ID:Britgo,项目名称:Online-League,代码行数:31,代码来源:addresult.php

示例2: Game

//   (at your option) any later version.
//   This program is distributed in the hope that it will be useful,
//   but WITHOUT ANY WARRANTY; without even the implied warranty of
//   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//   GNU General Public License for more details.
//   You should have received a copy of the GNU General Public License
//   along with this program.  If not, see <http://www.gnu.org/licenses/>.
include 'php/session.php';
include 'php/checklogged.php';
include 'php/opendatabase.php';
include 'php/club.php';
include 'php/rank.php';
include 'php/player.php';
include 'php/team.php';
include 'php/teammemb.php';
include 'php/match.php';
include 'php/matchdate.php';
include 'php/game.php';
$g = new Game();
try {
    $g->fromget();
    $g->fetchdets();
} catch (GameException $e) {
    $mess = $e->getMessage();
    include 'php/wrongentry.php';
    exit(0);
}
$g->reversecolours();
$comefrom = $_SERVER['HTTP_REFERER'];
header("Location: {$comefrom}?{$g->urlof()}");
开发者ID:Britgo,项目名称:Online-League,代码行数:30,代码来源:swapcolours.php

示例3:

<p>
Editing 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.
</p>
EOT;
if ($g->Result != 'N') {
    print <<<EOT
<p>If the result is completely wrong and should be deleted as if the game had not
been played <a href="delres.php?{$g->urlof()}">click here</a>.</p>
EOT;
}
print <<<EOT
<form action="fixres3.php" name="resform" method="post" enctype="multipart/form-data">
{$g->save_hidden()}
<p>
EOT;
$g->Date->dateopt("Game was played on");
$ws = $bs = $js = $selr = $selt = $selh = "";
$seln = " selected";
$selnum = 999;
switch ($g->Result) {
    case 'W':
        $ws = " selected";
        if (preg_match('/W\\+(.*)(\\.5)?/', $g->Resultdet, $rm)) {
开发者ID:Britgo,项目名称:Online-League,代码行数:31,代码来源:fixres2.php


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