当前位置: 首页>>代码示例>>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;未经允许,请勿转载。