</form> </div> <?php /*-- Create table of players, according to chosen type of game ---------------*/ print '<div id="print" style="float:left;width:700px;">'; if (isset($_SESSION["players"]) && isset($_SESSION["table"])) { $input = $_SESSION["players"]; $table = $_SESSION["table"]; $group = new Group($input); if ($group->isEmpty()) { Printer::printIntro(); } else { // elements of table - header and body $table_elements = Info::createTable($table, $group); // print whole table Printer::printTable($table_elements); } // print errors Printer::printErrors($group->getErrors()); } else { Printer::printIntro(); } print '</div>'; ?> </div><?php Printer::printFooter(); ?> </body> </html>