function mainPlayerCP($player) { $upper = strtoupper($_SESSION['username']); echo "<table align=\"center\" width=600 style=\"border-width: 0px\">\n"; echo "<tr><td><b>Welcome, {$upper}!"; conditionalAllDecks(); echo "</td></tr>"; echo "<tr><td> </td></tr>"; echo "<tr><td width=300 valign=\"top\">"; echo "<table align=\"center\" width=300 style=\"border-width: 0px\">\n"; echo "<tr><td>"; recentDeckTable(); echo "</td></tr>\n"; echo "<tr><td> </td></tr>\n"; echo "<tr><td>"; ratingsTableSmall(); echo "</td></tr>\n"; echo "<tr><td> </td></tr>\n"; echo "<tr><td>"; recentMatchTable(); echo "</td></tr>\n"; echo "</table>\n"; echo "</td>\n<td width=300 align=\"right\" valign=\"top\">"; echo "<table style=\"border-width: 0px;\" align=\"right\" width=300>\n"; echo "<tr><td align=\"right\">"; statsTable(); echo "</td></tr>\n"; echo "</table>\n"; echo "</td></tr></table>\n"; }
<th title="Difficulty Accepted">DAcc</th> <th title="Difficulty Rejected">DRej</th> <th title="Last Share Difficulty">DLast</th> <th title="Best Share">Best</th> </tr> </thead> <tbody> <?php echo poolsTable($pools['POOLS']); ?> </tbody> </table> <h3>Devices</h3> <?php echo statsTable($devs); ?> </div> <?php include 'foot.php'; function statsTable($devs) { if (count($devs) == 0) { return "</tbody></table><div class='alert alert-danger'>No devices running</div>"; } $devices = 0; $MHSav = 0; $Accepted = 0; $Rejected = 0; $HardwareErrors = 0;