當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。