示例#1
0
<?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>
示例#2
0
\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;
}
?>
示例#3
0
<?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);