本文整理汇总了PHP中Match::urlof方法的典型用法代码示例。如果您正苦于以下问题:PHP Match::urlof方法的具体用法?PHP Match::urlof怎么用?PHP Match::urlof使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Match
的用法示例。
在下文中一共展示了Match::urlof方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<?php
$Title = "Add Match division {$div} OK";
include 'php/head.php';
?>
<body>
<script language="javascript" src="webfn.js"></script>
<?php
$showadmmenu = true;
include 'php/nav.php';
print <<<EOT
<h1>Create Match division {$div} successful</h1>
<p>
Successfully completed creation of Match between
{$mtch->Hteam->display_name()} and
{$mtch->Ateam->display_name()} set for
{$mtch->Date->display()}.
</p>
<p><a href="updmatch.php?{$mtch->urlof()}" title="Add team members to match">Click here</a>
to add team members.</p>
EOT;
?>
</div>
</div>
</body>
</html>
示例2:
}
print <<<EOT
<tr>
<td>{$mtch->Date->display_month()}</td>
EOT;
$ht = $mtch->Hteam->display_name();
$at = $mtch->Ateam->display_name();
if ($mtch->is_allocated()) {
if ($mtch->Result == 'H') {
$ht = "<b>{$ht}</b>";
} else {
if ($mtch->Result == 'A') {
$at = "<b>{$at}</b>";
}
}
$ref = "<a href=\"showmtch.php?{$mtch->urlof()}\" class=\"noundd\">";
print "<td>{$ref}{$ht}</a></td><td>{$ref}{$at}</a></td>\n";
} else {
$href = $aref = $hndref = $andref = '';
if ($admin) {
$href = "<a href=\"tcupdmatch.php?{$mtch->urlof()}&hora=H\" class=\"noundm\">";
$aref = "<a href=\"tcupdmatch.php?{$mtch->urlof()}&hora=A\" class=\"noundm\">";
$hndref = $andref = "</a>";
} else {
$c = $mtch->is_captain($username);
if ($c == 'H' || $c == 'B') {
$href = "<a href=\"tcupdmatch.php?{$mtch->urlof()}&hora=H\" class=\"noundm\">";
$hndref = "</a>";
}
if ($c == 'A' || $c == 'B') {
$aref = "<a href=\"tcupdmatch.php?{$mtch->urlof()}&hora=A\" class=\"noundm\">";
示例3:
}
print <<<EOT
<tr>
<td>{$mtch->Date->display_month()}</td>
EOT;
$ht = $mtch->Hteam->display_name();
$at = $mtch->Ateam->display_name();
if ($mtch->teamalloc()) {
if ($mtch->Result == 'H') {
$ht = "<b>{$ht}</b>";
} else {
if ($mtch->Result == 'A') {
$at = "<b>{$at}</b>";
}
}
$ref = "<a href=\"showmtch.php?{$mtch->urlof()}\" class=\"nound\">";
print "<td>{$ref}{$ht}</a></td><td>{$ref}{$at}</a></td>\n";
} else {
print "<td>{$ht}</td><td>{$at}</td>\n";
}
print "<td>{$mtch->summ_score()}</td></tr>\n";
}
} else {
print "<tr><td colspan=\"4\" align=\"center\">No matches yet</td></tr>\n";
}
?>
</table>
<h2>Previous Seasons</h2>
<p><a href="league.php">Click here</a> to view the league
table and/or league tables and matches from previous seasons.</p>
</div>
示例4:
case 'H':
$res = 'Lost';
break;
case 'D':
$res = 'Drawn';
break;
case 'A':
$res = 'Won';
break;
}
}
print <<<EOT
<tr>
\t<td>{$mtch->Date->display_month()}</td>
\t<td><a href="teamdisp.php?{$oppteam->urlof()}" class="nound">{$oppteam->display_name()}</a></td>
\t<td><a href="showmtch.php?{$mtch->urlof()}" class="nound">{$res}</a></td>
</tr>
EOT;
}
}
print "</table>\n";
}
if ($team->Wong + $team->Drawng + $team->Lostg != 0) {
print <<<EOT
<h2>Game Record</h2>
<p>
Game record is For: {$team->Wong} Against: {$team->Lostg} Drawn: {$team->Drawng}.
</p>
<img src="php/piewdl.php?w={$team->Wong}&d={$team->Drawng}&l={$team->Lostg}">
<br />
示例5: while
while ($row = mysql_fetch_array($ret)) {
$ind = $row[0];
$mtch = new Match($ind);
$mtch->fetchdets();
if ($mtch->Division != $lastdiv) {
$lastdiv = $mtch->Division;
print "<tr><th colspan=\"3\" align=\"center\">Division {$lastdiv}</th></tr>\n";
}
print <<<EOT
<tr>
<td>{$mtch->Date->display()}</td>
EOT;
// Only allow guy to fiddle with matches that haven't been played
if ($mtch->Result == 'N' || $mtch->Result == 'P') {
print <<<EOT
<td><a href="updmatch.php?{$mtch->urlof()}">{$mtch->Hteam->display_name()}</a></td>
<td><a href="updmatch.php?{$mtch->urlof()}">{$mtch->Ateam->display_name()}</a></td>
EOT;
// Only allow guy to delete matches which have had no games played
if ($mtch->Result == 'N') {
// Elide quotes from team names so we don't get in a muddle
print <<<EOT
<td><a href="javascript:okdel({$mtch->query_ind()}, '{$mtch->Hteam->noquote()}','{$mtch->Ateam->noquote()}','{$mtch->Date->display()}')">Delete match</a></td>
EOT;
}
} else {
// If match has been played, just display the names
print <<<EOT
<td>{$mtch->Hteam->display_name()}</td>
<td>{$mtch->Ateam->display_name()}</td>
EOT;