<?
// Actions
$tasks = new main_tasks();
if($_GET["release"])
{
  $tasks->autoRelease($_GET["release"]);
}
if($_GET["finish"])
{
  $tasks->autoFinish($_GET["finish"]);
}
if($_GET["wip"])
{
  $tasks->autoWip($_GET["wip"]);
}
if($_GET["move"] && $_GET["to"])
{
  $tasks->moveToSprint($_GET["move"],$_GET["to"]);
}
// Display
$tasks = new main_tasks();
$sprint = new main_sprints();
$status = $sprint->getVelocity();
$projects = new main_projects();
$projects->getActiveProjects($_GET["team"]);
$teamName = " All Teams";
if($_GET["team"]){
    $team = new main_teams();
    $team->getOne($_GET["team"]);
    $team->load();
    $teamName = "Team ".$team->get_team_name();