<th>Rank</th> <th>Online</th> <th>P</th> <th>W</th> <th>D</th> <th>L</th> <th> </th> <th>P</th> <th>W</th> <th>D</th> <th>L</th> <th>Club</th> </tr> EOT; $tlist = list_teams(); foreach ($tlist as $team) { $team->fetchdets(); print <<<EOT <tr> <th colspan={$cs} align="center"> <a href="teamdisp.php?{$team->urlof()}" class="nound">{$team->display_name()}</a> </th> </tr> EOT; $pl = $team->list_members(); foreach ($pl as $m) { $m->fetchdets(); $m->fetchclub(); print <<<EOT <tr>
#The full software license can be found here: #http://www.accounting-123.com/a.php?a=153/GPLv3 # # # # # # # # # # # require "settings.php"; require "libs/crm.lib.php"; $OUTPUT = list_teams(); $OUTPUT .= "\r\n\t\t\t\t\t<p>\r\n\t\t\t\t\t<table border=0 cellpadding='2' cellspacing='1'>\r\n\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t<th>Quick Links</th>\r\n\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t<tr class='" . bg_class() . "'>\r\n\t\t\t\t\t\t\t<td><a href='team-add.php'>Add Cubt Team</a></td>\r\n\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t<tr class='" . bg_class() . "'>\r\n\t\t\t\t\t\t\t<td><a href='team-list.php'>View Cubit Teams</a></td>\r\n\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t<script>document.write(getQuicklinkSpecial());</script>\r\n\t\t\t\t\t\t<tr class='" . bg_class() . "'>\r\n\t\t\t\t\t\t\t<td><a href='index.php'>My Business</a></td>\r\n\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t</table>"; require "template.php"; function list_teams() { db_conn('crm'); $Sl = "SELECT * FROM teams WHERE div='" . USER_DIV . "' ORDER BY name"; $Ry = db_exec($Sl) or errDie("Unable to list teams."); if (pg_numrows($Ry) < 1) { dt(); $Sl = "SELECT * FROM teams WHERE div='" . USER_DIV . "' ORDER BY name"; $Ry = db_exec($Sl) or errDie("Unable to list teams."); } $out = "\r\n\t\t\t\t<h3>Cubit Teams Listing</h3>\r\n\t\t\t\t<table " . TMPL_tblDflts . ">\r\n\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t<th>Name</th>\r\n\t\t\t\t\t\t<th>Description</th>\r\n\t\t\t\t\t\t<th colspan='4'>Options</th>\r\n\t\t\t\t\t</tr>"; $i = 0; while ($teamdata = pg_fetch_array($Ry)) {
include 'php/club.php'; include 'php/rank.php'; include 'php/player.php'; include 'php/team.php'; include 'php/teammemb.php'; include 'php/match.php'; include 'php/matchdate.php'; include 'php/game.php'; $div = $_GET['div']; if (strlen($div) == 0) { $mess = "No division?"; include 'php/wrongentry.php'; exit(0); } $mtch = new Match(0, $div); $teams = list_teams($div); ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <?php $Title = "Add Match - Division {$div}"; include 'php/head.php'; ?> <body> <script language="javascript" src="webfn.js"></script> <script language="javascript"> function checkteamsvalid() { var form = document.matchform; var ht = form.hteam; var at = form.ateam; if (ht.selectedIndex < 0) {
include 'php/head.php'; ?> <body> <script language="javascript" src="webfn.js"></script> <?php include 'php/nav.php'; ?> <h1>Current League Standings</h1> <p>Click <a href="leaguehist.php">here</a> to view previous seasons.</p> <div align="center"> <?php $pars = new Params(); $pars->fetchvalues(); $ml = max_division(); for ($d = 1; $d <= $ml; $d++) { $tl = list_teams($d); $cn = 7 + count($tl); print <<<EOT <table class="league"> <tr> <th colspan="{$cn}" align="center">Division {$d}</th> </tr> <tr> <th>Team</th> EOT; foreach ($tl as $t) { $t->get_scores($pars); } usort($tl, 'score_compare'); // Insert column header
} print "</tr>\n"; $teamlist = list_teams(0, "divnum,name"); $lastdiv = -199; foreach ($teamlist as $team) { $team->fetchdets(); if ($team->Division != $lastdiv) { $lastdiv = $team->Division; print <<<EOT <tr><th colspan="4" align="center">Division {$team->display_division()}</th></tr> EOT; } printteam($team); } $teamlist = list_teams(0, "name", 0); if (count($teamlist) != 0) { print <<<EOT <tr><th colspan="4" align="center">Not in a division</th></tr> EOT; foreach ($teamlist as $team) { $team->fetchdets(); printteam($team); } } ?> </table> </div> </div> </body>