[go: up one dir, main page]

Menu

[r63]: / trunk / progress.php  Maximize  Restore  History

Download this file

49 lines (40 with data), 1.5 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?php
session_start();
include_once('inc/config.php');
mysql_connect($db_server, $db_username, $db_password);
mysql_select_db($db_database);
include_once('inc/util.inc');
include_once('inc/progress_class.php');
// Setup Theme
$modules = getModules();
$pageTitle = _('Progress');
$curPage = 'progress';
$theme = getTheme();
include($theme.'header.php');
$prg = new Progress();
$showList = true;
$message = '';
//-------------------------------------------------------------------------------------------------
// Show Project
//-------------------------------------------------------------------------------------------------
if (isset($_GET['project'])) {
if (ctype_digit($_GET['project'])) {
$showList = false;
// group by
$group = isset($_GET['group']) ? $_GET['group'] : 'status';
$prg->displayProject($_GET['project'], $group);
} else {
$message = array('error', _('Invalid Project.'));
}
}
//-------------------------------------------------------------------------------------------------
// Show List of Open Projects
//-------------------------------------------------------------------------------------------------
if ($showList) {
if (isLoggedInAdmin()) {
$prg->displayProjectMenu();
}
$show_finished = isset($_GET['showfinished']) ? true : false;
$prg->displayProjectList($message, $show_finished);
}
include($theme.'footer.php');