コード例 #1
0
ファイル: composemsg.php プロジェクト: Britgo/Online-League
<p>Use this form to generate a message on the internal message board
visible to a user when he/she next logs in.</p>
<p>Do not use this form to arrange games for matches, instead use the messages
page and select the game in question.</p>
<form action="sendgmsg.php" method="post" enctype="application/x-www-form-urlencoded">
<?php 
print <<<EOT
<input type="hidden" name="mi" value="{$mid}" />
<input type="hidden" name="gn" value="{$gid}" />

EOT;
?>
<p>Send the message to:
<select name="recip">
<?php 
$pllist = list_players();
foreach ($pllist as $pl) {
    $pl->fetchdets();
    $sel = $pl->is_same($recip) ? " selected" : "";
    print <<<EOT
<option value="{$pl->selof()}"{$sel}>{$pl->display_name(false)}</option>

EOT;
}
print <<<EOT
</select></p>
<p>Subject: <input type="text" name="subject" value="{$subj}" size="40" /></p>

EOT;
?>
<p>Message:</p>
コード例 #2
0
ファイル: updtmemb.php プロジェクト: Britgo/Online-League
include 'php/opendatabase.php';
include 'php/club.php';
include 'php/rank.php';
include 'php/player.php';
include 'php/team.php';
include 'php/teammemb.php';
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) {
コード例 #3
0
ファイル: team.php プロジェクト: Britgo/Online-League
 public function captainopt()
 {
     $plist = list_players();
     print "<select name=\"captain\">\n";
     foreach ($plist as $p) {
         $v = $p->selof();
         if ($p->is_same($this->Captain)) {
             print "<option value=\"{$v}\" selected>{$p->display_name(false)}</option>\n";
         } else {
             print "<option value=\"{$v}\">{$p->display_name(false)}</option>\n";
         }
     }
     print "</select>\n";
 }