Example #1
0
<?php 
$Title = "Game Result Amended";
include 'php/head.php';
?>
<body>
<script language="javascript" src="webfn.js"></script>
<?php 
$showadmmenu = true;
include 'php/nav.php';
?>
<h1>Amended Game Result</h1>
<p>
Finished amending result for Game between
<?php 
print <<<EOT
<b>{$g->Wplayer->display_name()}</b>
({$g->Wplayer->display_rank()}) of
{$g->Wteam->display_name()} as White and
<b>{$g->Bplayer->display_name()}</b>
({$g->Bplayer->display_rank()}) of
{$g->Bteam->display_name()} as Black to be {$g->display_result()}.
</p>
EOT;
$n = new News($userid, "Amended result in {$mtch->Hteam->Name} -v- {$mtch->Ateam->Name} match in Division {$mtch->Division}", false, $mtch->showmatch());
$n->addnews();
?>
</div>
</div>
</body>
</html>
Example #2
0
                    default:
                        $r = '?';
                        break;
                    case 'W':
                        $r = "Lost";
                        break;
                    case 'J':
                        $r = "Jigo";
                        break;
                    case 'B':
                        $r = "Won";
                        break;
                }
                print "<td>{$r}</td>\n";
            }
            print "<td>{$g->display_result()}</td></tr>\n";
        }
    }
    // End of while
    print <<<EOT
\t</table>
\t<p>You can click on the name of each opponent to see the record for that opponent.
\t</p>

EOT;
}
// End if "if any games played" case
// Contact details rearranged so they always show
if ($logged_in) {
    $em = $player->display_email_link();
    $ph = $player->display_phone(true);
Example #3
0
<?php 
$Title = "Game Result Added";
include 'php/head.php';
?>
<body class="il">
<script language="javascript" src="webfn.js"></script>
<?php 
include 'php/nav.php';
?>
<h1>Add Game Result</h1>
<p>
Finished adding result for Game between
<?php 
print <<<EOT
<b>{$g->Wplayer->display_name()}</b>
({$g->Wplayer->display_rank()}) as White and
<b>{$g->Bplayer->display_name()}</b>
({$g->Bplayer->display_rank()}) as Black was {$g->display_result()}.
</p>

EOT;
$n = new News($userid, "Individual League game completed between {$player->display_name(false)} and {$opp->display_name(false)} in Division {$player->ILdiv}");
$n->addnews();
?>
<p>Click <a href="ileague.php" title="View the individual league standings">here</a>
to see the league status now.</p>
</div>
</div>
</body>
</html>
Example #4
0
<body>
<script language="javascript" src="webfn.js"></script>
<?php 
include 'php/nav.php';
?>
<h1>Add Game Result</h1>
<p>
Finished adding result for Game between
<?php 
print <<<EOT
<b>{$g->Wplayer->display_name(false)}</b>
({$g->Wplayer->display_rank()}) of
{$g->Wteam->display_name()} as White and
<b>{$g->Bplayer->display_name(false)}</b>
({$g->Bplayer->display_rank()}) of
{$g->Bteam->display_name()} as Black was {$g->display_result()}.
</p>
EOT;
if ($mtch->Result == 'P') {
    print <<<EOT
<p>The match has not been completed yet.
</p>

EOT;
    $n = new News($userid, "Game completed in {$mtch->Hteam->Name} -v- {$mtch->Ateam->Name} in Division {$mtch->Division}", false, $mtch->showmatch());
    $n->addnews();
} else {
    $result = 'The winner of the match was ';
    if ($mtch->Result == 'H') {
        $result .= $mtch->Hteam->Name;
    } elseif ($mtch->Result == 'A') {