$page_file = "top11.php"; $page_title = "Top 11 @ 11"; require "functions/main_fns.php"; require "functions/top11_fns.php"; require "partials/_header.php"; /*----- CONTENT ------*/ ?> <div class="row"> <div class="nine columns content"> <h1>Top 11 @ 11</h1> <?php if ($_POST['action']) { require "partials/_top11_save.php"; } else { display_top11_message(); show_top11(); if (top11_status() == "open") { display_form($page_file); } else { echo "<div class=\"information center\">Sorry but voting is currently closed.\n <br>\n Check back soon to vote for next week's Top 11 @ 11</div>"; } } ?> </div> <div class="three columns"><?php require "partials/_featured_concerts_and_ads.php"; ?> </div> </div> <!-- end of row div --> <?php require "partials/_footer.php";
} elseif ($action == 'export') { export(); export_newsletter(); } elseif ($action == 'nuke') { nuke(); } elseif ($action == 'status') { toggle_status(top11_status()); } else { echo '<ul> <li><a href="top11_operations.php?action=stats">See Top 11 Stats</a></li> <li><a href="top11_operations.php?action=write_ins">See Top 11 Write-in Votes</a></li> <li><a href="top11_operations.php?action=winner">Get Random Top 11 Winner</a></li> <li><a href="top11_operations.php?action=contestants">See All Top 11 Contestants</a></li> <li><a href="top11_operations.php?action=export">Export Top 11 Contestants</a></li> <li><a href="top11_operations.php?action=nuke" onClick="return confirm(\'Are you sure you want to Nuke the Top 11 Data?\')">Nuke Top 11 Stats, Write-ins, Contestants & IP Addresses</a></li> <li><a href="top11_operations.php?action=status">Top 11 is currently <b>' . top11_status() . '</b> (click to change)</a></li> </ul>'; } if ($action != '') { echo "<p>\n<a href=\"top11_operations.php\">Top 11 Operations</a>"; } ?> <p> <a href="cp.php">Control Panel</a> </div> </div> <!-- end of row div --> <?php } require "partials/_footer.php"; ?>