本文整理汇总了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;
}
示例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>
示例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>
示例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++;
}