示例#1
0
include 'php/club.php';
include 'php/rank.php';
include 'php/player.php';
include 'php/opendatabase.php';
$subj = $_POST["subject"];
$emailrep = $_POST["emailrep"];
$mess = $_POST["messagetext"];
$admins = isset($_POST["admintoo"]);
$active = $_POST["active"];
$paid = $_POST["paid"];
$cc = $_POST["ccto"];
// Need number of divisions to run over
$ml = max_ildivision();
$allilpl = array();
for ($d = 1; $d <= $ml; $d++) {
    $pl = list_players_ildiv($d);
    foreach ($pl as $p) {
        array_push($allilpl, $p);
    }
}
// This will be the list of email addresses to send to
$mlist = array();
foreach ($allilpl as $p) {
    // Get details of player
    $p->fetchdets();
    // If no email, nothing to do
    if (strlen($p->Email) == 0) {
        continue;
    }
    // If person has paid and we are only messaging unpaid or vice versa, skip him
    if ($p->ILpaid) {
示例#2
0
<table cellpadding="2" cellspacing="5" border="0">
<tr>
	<td>Match was played on</td>
	<td>
<?php 
$dat = new Matchdate();
$dat->dateopt("");
?>
	</td>
</tr>
<tr><td></td><td>NB Date <b>started</b> if it crosses midnight</td></tr>
<tr>
	<td>Opponent was</td>
	<td><select name="opp">
<?php 
$pl = list_players_ildiv($player->ILdiv);
foreach ($pl as $p) {
    if ($p->is_same($player)) {
        continue;
    }
    $p->fetchdets();
    print <<<EOT
<option value="{$p->selof()}">
{$p->display_name(false)}
({$p->display_rank()}) {$p->display_online()}
</option>

EOT;
}
?>
	</select></td>