[4269] | 1 | <?php |
---|
| 2 | |
---|
| 3 | if(!isset($GLOBALS['phpgw_info'])){ |
---|
| 4 | $GLOBALS['phpgw_info']['flags'] = array( |
---|
| 5 | 'currentapp' => 'agileProjects', |
---|
| 6 | 'nonavbar' => true, |
---|
| 7 | 'noheader' => true |
---|
| 8 | ); |
---|
| 9 | } |
---|
| 10 | require_once '../header.session.inc.php'; |
---|
| 11 | |
---|
| 12 | $currentTab = $_GET['tabs']; |
---|
| 13 | switch($currentTab){ |
---|
| 14 | case 'tabs-1': |
---|
| 15 | include_once('inc/class.uiprojects.inc.php'); |
---|
| 16 | $projectsGui = new uiprojects(); |
---|
| 17 | echo $projectsGui->output; |
---|
| 18 | break; |
---|
| 19 | |
---|
| 20 | case 'tabs-2': |
---|
| 21 | include_once('inc/class.uibacklogs.inc.php'); |
---|
| 22 | $uibacklogs = new uibacklogs(); |
---|
| 23 | break; |
---|
| 24 | |
---|
| 25 | case 'tabs-3': |
---|
| 26 | include_once('inc/class.uisprints.inc.php'); |
---|
| 27 | $sprintsGui = new uisprints(); |
---|
| 28 | break; |
---|
| 29 | |
---|
| 30 | case 'tabs-4': |
---|
| 31 | include_once('inc/class.uikanban.inc.php'); |
---|
| 32 | $kanbanGui = new uikanban(); |
---|
| 33 | break; |
---|
| 34 | } |
---|
| 35 | if($_POST['type'] == 'project'){ |
---|
| 36 | include_once('inc/class.soinsertElement.inc.php'); |
---|
| 37 | $projectInsert = new soinsertElement(); |
---|
| 38 | $projectInsert->soinsertProject( $_POST['name'], |
---|
| 39 | $_POST['description'], |
---|
| 40 | $_POST['particArray'], |
---|
| 41 | $_POST['adminArray']); |
---|
| 42 | } |
---|
| 43 | if($_POST['type'] == 'saveProject'){ |
---|
| 44 | include_once('inc/class.sosaveElement.inc.php'); |
---|
| 45 | $projectSave = new sosaveElement( $_POST['projId'], |
---|
| 46 | $_POST['name'], |
---|
| 47 | $_POST['description'], |
---|
| 48 | $_POST['particArray'], |
---|
| 49 | $_POST['adminArray']); |
---|
| 50 | } |
---|
| 51 | if($_POST['type'] == 'removeProject'){ |
---|
| 52 | include_once('inc/class.soremoveElement.inc.php'); |
---|
| 53 | $projectRemove = new soremoveElement(); |
---|
| 54 | $projectRemove->soRemoveProject($_POST['projId']); |
---|
| 55 | } |
---|
| 56 | if($_POST['type'] == 'editProject'){ |
---|
| 57 | include_once('inc/class.uiprojectEdit.inc.php'); |
---|
| 58 | $projectEdit = new uiprojectEdit($_POST['projId']); |
---|
| 59 | } |
---|
| 60 | if($_GET['type'] == 'activeProject'){ |
---|
| 61 | $_SESSION['phpgw_info']['expresso']['agileProjects']['active'] = $_GET['projId']; |
---|
| 62 | $_SESSION['phpgw_info']['expresso']['agileProjects']['projectName'] = $_GET['projName']; |
---|
| 63 | } |
---|
| 64 | if($_GET['type'] == 'activeSprint'){ |
---|
| 65 | include_once('inc/class.sosprints.inc.php'); |
---|
| 66 | $sprintActive = new sosprints(); |
---|
| 67 | $sprintActive->soactiveSprint($_GET['sprintId']); |
---|
| 68 | } |
---|
| 69 | if($_GET['type'] == 'taskInclude'){ |
---|
| 70 | include_once('inc/class.uitaskInclude.inc.php'); |
---|
| 71 | $taskInclude = new uitaskInclude(); |
---|
| 72 | } |
---|
| 73 | if($_POST['type'] == 'newTask'){ |
---|
| 74 | include_once('inc/class.soinsertElement.inc.php'); |
---|
| 75 | $newTask = new soinsertElement(); |
---|
| 76 | $newTask->soinsertTask( $_POST['sprint'], |
---|
| 77 | $_POST['important'], |
---|
| 78 | $_POST['responsable'], |
---|
| 79 | $_POST['title'], |
---|
| 80 | $_POST['description'], |
---|
| 81 | $_POST['estimate']); |
---|
| 82 | } |
---|
| 83 | if($_POST['type'] == 'newSprint'){ |
---|
| 84 | include_once('inc/class.soinsertElement.inc.php'); |
---|
| 85 | $newSprint = new soinsertElement(); |
---|
| 86 | $newSprint->soinsertSprint($_POST['name'], |
---|
| 87 | $_POST['dt_start'], |
---|
| 88 | $_POST['dt_end'], |
---|
| 89 | $_POST['goal']); |
---|
| 90 | } |
---|
| 91 | if($_GET['type'] == 'updateBubble'){ |
---|
| 92 | include_once('inc/class.sotasks.inc.php'); |
---|
| 93 | $sotasks = new sotasks(); |
---|
| 94 | $sotasks->soupdateBubble($_GET['tasks_id'], |
---|
| 95 | $_GET['tasks_status'] |
---|
| 96 | ); |
---|
| 97 | |
---|
| 98 | } |
---|
| 99 | ?> |
---|