<?php /*if (!isset($_SESSION['user'])) { header ("Location: http://mc.turco.com"); die(); }*/ include 'func.php'; if ($_GET["remove"]) { removePick($_GET["remove"]); } if ($_POST["cmd"] == "player_search") { } ?> <!DOCTYPE html> <html> <head lang="en"> <meta charset="UTF-8"> <title>Charity Draft</title> <link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css"> <script src="//code.jquery.com/jquery-1.10.2.js"></script> <script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"></script> <script> $(function() { var availableTags = [ <?php $m = new MongoClient(); $db = $m->bb; $collection = $db->players; $cursor = $collection->find(array(), array('name' => 1, 'playerid' => 1))->sort(array('name' => 1)); foreach ($cursor as $document) {
<body> <?php include "func.php"; $player = $_GET["player"]; if ($player == NULL) { echo "Please pass in player"; } else { ?> Removing a pick for <br> user: <?php echo $user; ?> <br> event: <?php echo $event; ?> <br> player: <?php echo $player; ?> <br> <?php removePick($player); } // Show picks $x = getPicks(); foreach ($x as $pick) { echo var_dump($pick) . "<hr>\n"; }
<?php /*if (!isset($_SESSION['user'])) { header ("Location: http://mc.turco.com"); die(); }*/ include 'func.php'; if ($_REQUEST["remove"]) { removePick($_REQUEST["remove"]); } if ($_REQUEST["add"]) { addPick($_REQUEST["add"]); } $search = $_REQUEST["searchField"]; $team = $_REQUEST["team"]; if ($team) { setcookie("team", $team, time() + 60 * 60 * 24 * 30); } if ($team == NULL) { $team = $_COOKIE["team"]; } ?> <style type="text/css"> .col-xs-5{ border: 2px solid black; background-color: #E3AE57; border-radius: 25px; } .col-xs-6{ border: 2px solid black;