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


PHP Team::display_description方法代碼示例

本文整理匯總了PHP中Team::display_description方法的典型用法代碼示例。如果您正苦於以下問題:PHP Team::display_description方法的具體用法?PHP Team::display_description怎麽用?PHP Team::display_description使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Team的用法示例。


在下文中一共展示了Team::display_description方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: while

\t<th>Send mail</th>
\t<th>Name</th>
\t<th>Full Name</th>
\t<th>Captain</th>
</tr>

EOT;
    $num = 0;
    while ($row = mysql_fetch_array($ret)) {
        $team = new Team($row[0]);
        $team->fetchdets();
        print <<<EOT
<tr>
<td><input type="checkbox" name="tnum[]" value="{$num}" checked></td>
<td>{$team->display_name()}</td>
<td>{$team->display_description()}</td>
<td>{$team->display_captain()}</td>
</tr>
EOT;
        $num++;
    }
    print <<<EOT
</table>
<p>Reply to:<input type="text" name="emailrep"></p>
<textarea name="messagetext" rows="10" cols="40"></textarea>
<br clear="all">
<input type="submit" name="submit" value="Submit message">
</form>

EOT;
}
開發者ID:Britgo,項目名稱:Online-League,代碼行數:31,代碼來源:unpaidteams.php

示例2:

}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<?php 
$Title = "Team {$team->display_name()}";
include 'php/head.php';
?>
<body>
<script language="javascript" src="webfn.js"></script>
<?php 
include 'php/nav.php';
print <<<EOT
<h1>Team {$team->display_name()}</h1>
<p>
Team {$team->display_name()} - {$team->display_description()} - division
{$team->display_division()}
</p>
<p>
Team captain is {$team->display_captain()}.
{$team->display_capt_email($logged_in)}
</p>

EOT;
if ($admin && !$team->Paid) {
    print <<<EOT
<p><b>Team has not paid.</b></p>
EOT;
}
print <<<EOT
<h3>Members</h3>
開發者ID:Britgo,項目名稱:Online-League,代碼行數:31,代碼來源:teamdisp.php

示例3: formvalid

EOT;
if ($team->Paid) {
    print "<p>The team is marked as having paid.\n";
} else {
    print "<p><b>The team is marked as not having paid.</b>\n";
}
print <<<EOT
<a href="updpaid.php?{$team->urlof()}">Change this</a>.</p>
<form name="teamform" action="updindteam2.php" method="post" enctype="application/x-www-form-urlencoded" onsubmit="javascript:return formvalid();">
{$team->save_hidden()}
<p>
Team Name:
<input type="text" name="teamname" value="{$team->display_name()}" size=20>
Full Name:
<input type="text" name="teamdescr" value="{$team->display_description()}" size=40>
</p><p>
Division:
EOT;
$team->divopt();
print "Captain:";
$team->captainopt();
?>
</p>
<p>
<input type="submit" name="subm" value="Add Team">
<input type="submit" name="subm" value="Update Team">
</p>
</form>
</div>
</div>
開發者ID:Britgo,項目名稱:Online-League,代碼行數:30,代碼來源:updindteam.php

示例4:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<?php 
$Title = "Update member ranks";
include 'php/head.php';
?>
<body>
<script language="javascript" src="webfn.js"></script>
<?php 
include 'php/nav.php';
?>
<h1>Adjust ranks of team members</h1>
<?php 
print <<<EOT
<p>Use this page to adjust ranks of members of the team
{$team->display_name()} ({$team->display_description()})
in division {$team->display_division()}.</p>
<form name="trform" action="updrank2.php" method="post" enctype="application/x-www-form-urlencoded">
{$team->save_hidden()}
<table class="teamdisp">
<tr><th>Player</th><th>Rank</th></tr>
EOT;
$membs = $team->list_members();
$n = 0;
foreach ($membs as $m) {
    $m->fetchdets();
    print "<tr><td>{$m->display_name(false)}</td>\n<td>";
    $m->rankopt($n);
    print "</td></tr>\n";
    $n++;
}
開發者ID:Britgo,項目名稱:Online-League,代碼行數:31,代碼來源:updrank.php


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