当前位置: 首页>>代码示例>>PHP>>正文


PHP Team::display_name方法代码示例

本文整理汇总了PHP中Team::display_name方法的典型用法代码示例。如果您正苦于以下问题:PHP Team::display_name方法的具体用法?PHP Team::display_name怎么用?PHP Team::display_name使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Team的用法示例。


在下文中一共展示了Team::display_name方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: while

<tr>
\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: htmlspecialchars

?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<?php 
$Title = "Please confirm payment";
include 'php/head.php';
?>
<body>
<?php 
include 'php/nav.php';
?>
<h1>Please Confirm Payment OK</h1>
<?php 
if ($type == 'T') {
    print <<<EOT
<p>About to record payment of &pound;{$amount} on behalf of {$team->display_name()}.</p>

EOT;
} else {
    print <<<EOT
<p>About to record payment of &pound;{$amount} on behalf of {$pplayer->display_name()}.</p>

EOT;
}
print <<<EOT
<p>The payment has been entered by {$player->display_name(false)}, PayPal account details are for
EOT;
print " ";
print htmlspecialchars($parsedresp["FIRSTNAME"] . " " . $parsedresp["LASTNAME"]);
print <<<EOT
.</p>
开发者ID:Britgo,项目名称:Online-League,代码行数:31,代码来源:payver.php

示例3: exit

    include 'php/dataerror.php';
    exit(0);
}
$nrows = mysql_affected_rows();
if ($nrows == 0) {
    $mess = "No team deleted";
    include 'php/dataerror.php';
    exit(0);
}
//  Next is no error if nothing gets deleted.
mysql_query("delete from teammemb where {$team->queryof('teamname')}");
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<?php 
$Title = "Deletion of {$team->display_name()} complete";
include 'php/head.php';
?>
<body>
<script language="javascript" src="webfn.js"></script>
<?php 
$showadmmenu = true;
include 'php/nav.php';
print <<<EOT
<h1>Deletion of {$team->display_name()} complete</h1>
<p>Deletion of team {$team->display_name()} was successful.</p>

EOT;
?>
<p>Click <a href="teamsupd.php" title="Go back to editing teams">here</a> to return to the team update menu.</p>
</div>
开发者ID:Britgo,项目名称:Online-League,代码行数:31,代码来源:delteam.php

示例4: Team

try {
    $team = new Team();
    $team->fromget();
    $team->fetchdets();
} catch (TeamException $e) {
    $mess = $e->getMessage();
    include 'php/wrongentry.php';
    exit(0);
}
$Playerlist = list_players("club,rank desc,last,first");
$Elist = $team->list_members();
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<?php 
$Title = "Update Team Members for {$team->display_name()}";
include 'php/head.php';
print <<<EOT
<body onload="javascript:loadtab()" onunload="javascript:killwind()">
<script language="javascript" src="webfn.js"></script>
<script language="javascript">
var playerlist = new Array();
var currteam = new Array();
EOT;
foreach ($Playerlist as $player) {
    $player->fetchdets();
    $player->fetchclub();
    print <<<EOT
playerlist.push({first:"{$player->display_first()}", last:"{$player->display_last()}",
rank:"{$player->display_rank()}", club:"{$player->Club->Name}",
ncurr:{$player->count_teams()}});
开发者ID:Britgo,项目名称:Online-League,代码行数:31,代码来源:updtmemb.php

示例5: formvalid

include 'php/player.php';
include 'php/team.php';
try {
    $team = new Team();
    $team->fromget();
    $team->fetchdets();
} catch (TeamException $e) {
    $mess = $e->getMessage();
    include 'php/wrongentry.php';
    exit(0);
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<?php 
$Title = "Update Team {$team->display_name()}";
include 'php/head.php';
?>
<body>
<script language="javascript" src="webfn.js"></script>
<script language="javascript">
function formvalid()
{
      var form = document.teamform;
      if  (!nonblank(form.teamname.value))  {
         alert("No team name given");
         return false;
      }
      if  (!nonblank(form.teamdescr.value))  {
         alert("No team description given");
         return false;
开发者ID:Britgo,项目名称:Online-League,代码行数:31,代码来源:updindteam.php

示例6:

?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<?php 
$Title = "Payment OK";
include 'php/head.php';
?>
<body>
<?php 
include 'php/nav.php';
?>
<h1>Payment OK</h1>
<?php 
if ($type == 'T') {
    print <<<EOT
<p>Recorded payment of &pound;{$amount} on behalf of {$team->display_name()}.</p>

EOT;
} else {
    print <<<EOT
<p>Recorded payment of &pound;{$amount} on behalf of {$pplayer->display_name()}.</p>

EOT;
}
?>
<p><strong>Thank you!</strong></p>
</div>
</div>
</body>
</html>
开发者ID:Britgo,项目名称:Online-League,代码行数:30,代码来源:payok.php

示例7: while

EOT;
}
$ret = mysql_query("select teamname from teammemb where {$player->queryof('tm')} order by teamname");
if ($ret && mysql_num_rows($ret) > 0) {
    print <<<EOT
<h2>Team Membership</h2>

<p>{$Name} is in the following:</p>
<table class="resultsb">

EOT;
    while ($row = mysql_fetch_array($ret)) {
        $team = new Team($row[0]);
        $team->fetchdets();
        print "<tr><td>{$team->display_name(true)}</td></tr>\n";
    }
    print <<<EOT
</table>

EOT;
} else {
    print "<p>{$Name} is not in any teams.</p>\n";
}
$total_games = $player->played_games();
$current_games = $player->played_games(true);
if ($total_games == 0) {
    print <<<EOT
<p>
Sorry but there do not seem to be any recorded completed games for {$Name}.
</p>
开发者ID:Britgo,项目名称:Online-League,代码行数:30,代码来源:playgames.php

示例8: Team

include 'php/matchdate.php';
include 'php/season.php';
try {
    $team = new Team();
    $team->fromget();
    $team->fetchdets();
} catch (TeamException $e) {
    $mess = $e->getMessage();
    include 'php/wrongentry.php';
    exit(0);
}
?>
<!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)}
开发者ID:Britgo,项目名称:Online-League,代码行数:31,代码来源:teamdisp.php

示例9: Team

include 'php/player.php';
include 'php/team.php';
try {
    $team = new Team();
    $team->fromget();
    $team->fetchdets();
} catch (TeamException $e) {
    $mess = $e->getMessage();
    include 'php/wrongentry.php';
    exit(0);
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<?php 
$Title = "Update playing/not playing status for Team {$team->display_name()}";
include 'php/head.php';
?>
<body>
<script language="javascript" src="webfn.js"></script>
<?php 
$showadmmenu = true;
include 'php/nav.php';
print <<<EOT
<h1>Update Playing/not playing for Team {$team->display_name()}</h1>
EOT;
if ($team->Playing) {
    print <<<EOT
<p>
Team {$team->display_name()} was previously marked as playing this season but setting
to <b>not playing</b>.
开发者ID:Britgo,项目名称:Online-League,代码行数:31,代码来源:updplaying.php

示例10: Team

include 'php/player.php';
include 'php/team.php';
try {
    $team = new Team();
    $team->fromget();
    $team->fetchdets();
} catch (TeamException $e) {
    $mess = $e->getMessage();
    include 'php/wrongentry.php';
    exit(0);
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<?php 
$Title = "Update Paid status for Team {$team->display_name()}";
include 'php/head.php';
?>
<body>
<script language="javascript" src="webfn.js"></script>
<?php 
$showadmmenu = true;
include 'php/nav.php';
print <<<EOT
<h1>Update Paid for Team {$team->display_name()}</h1>
EOT;
if ($team->Paid) {
    print <<<EOT
<p>
Team {$team->display_name()} was previously marked as paid but setting to <b>unpaid</b>.
</p>
开发者ID:Britgo,项目名称:Online-League,代码行数:31,代码来源:updpaid.php

示例11:

<!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

示例12: catch

        } catch (TeamException $e) {
            $mess = $e->getMessage();
            include 'php/wrongentry.php';
            exit(0);
        }
        // Check name changes
        $newteam = new Team($teamname);
        if (!$origteam->is_same($newteam)) {
            checkname($newteam);
            $origteam->updatename($newteam);
        }
        $origteam->Description = $teamdescr;
        $origteam->Division = $teamdiv;
        $origteam->Captain = new Player($captfirst, $captlast);
        $origteam->update();
        $Title = "Team {$origteam->display_name()} updated OK";
        break;
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<?php 
$Title = "Team update complete";
include 'php/head.php';
?>
<body>
<script language="javascript" src="webfn.js"></script>
<?php 
$showadmmenu = true;
include 'php/nav.php';
print <<<EOT
开发者ID:Britgo,项目名称:Online-League,代码行数:31,代码来源:updindteam2.php

示例13:

?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<?php 
$Title = "Payment Cancelled";
include 'php/head.php';
?>
<body>
<?php 
include 'php/nav.php';
?>
<h1>Payment OK</h1>
<?php 
if ($type == 'T') {
    print <<<EOT
<p>Payment on behalf of {$team->display_name()} has been cancelled.</p>

EOT;
} else {
    print <<<EOT
<p>Payment on behalf of {$pplayer->display_name()} has been cancelled.</p>

EOT;
}
?>
<p>Please re-enter the <a href="https://league.britgo.org/payments.php">payments page</a>
when you are ready to start again.</p>
</div>
</div>
</body>
</html>
开发者ID:Britgo,项目名称:Online-League,代码行数:31,代码来源:paycanc.php


注:本文中的Team::display_name方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。