Ejemplo n.º 1
0
<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;
Ejemplo n.º 2
0
?>
<!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>
Ejemplo n.º 3
0
    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>
Ejemplo n.º 4
0
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()}});
Ejemplo n.º 5
0
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;
Ejemplo n.º 6
0
?>
<!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>
Ejemplo n.º 7
0
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>
Ejemplo n.º 8
0
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)}
Ejemplo n.º 9
0
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>.
Ejemplo n.º 10
0
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>
Ejemplo n.º 11
0
<!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++;
}
Ejemplo n.º 12
0
        } 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
Ejemplo n.º 13
0
?>
<!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>