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


PHP Team::display_captain方法代碼示例

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


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

示例1:

<?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>
<table class="teamdisp">
<tr>
\t<th>Name</th>
\t<th>Rank</th>
開發者ID:Britgo,項目名稱:Online-League,代碼行數:31,代碼來源:teamdisp.php

示例2: while

\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

示例3: while

<?php

include 'php/opendatabase.php';
include 'php/club.php';
include 'php/rank.php';
include 'php/player.php';
include 'php/team.php';
$ret = mysql_query("select name from team where paid=0");
if ($ret && mysql_num_rows($ret) > 0) {
    while ($row = mysql_fetch_array($ret)) {
        $team = new Team($row[0]);
        $team->fetchdets();
        $dest = $team->Captain->Email;
        $fh = popen("mail -s 'BGA Online team subs update reminder' {$dest}", "w");
        $mess = <<<EOT
Dear {$team->display_captain()}:

Please can we respectfully remind you that your BGA Online league
team fee has not been recorded as paid.

This should be 10 GBP per team plus an additional 5 GBP for
each non BGA member.

If you have paid and this has not been recorded please let us know.

Thank you.

The Online League Management.

EOT;
        fwrite($fh, $mess);
開發者ID:Britgo,項目名稱:Online-League,代碼行數:31,代碼來源:remindunpaid.php


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