-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpropositions.php
35 lines (26 loc) · 1.11 KB
/
propositions.php
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
<?php
require('./config/config.php');
require('./config/img_vars.php');
require('./code/init.php');
require('./code/dbaccess.class.php');
require('./code/dbaccess-users.class.php');
require('./code/dbaccess-propositions.class.php');
require('./code/template.class.php');
require('./code/displaytable.php');
require('./code/pagination.class.php');
require('./html/' . $_GET['prj'] . '/project_vars.php');
$ui = parse_ini_file('./html/' . $_GET['prj'] . '/ui.ini', TRUE);
$tab = (isset($_GET['tab']) and ($_GET['tab'] == 'E' or $_GET['tab'] == 'R' or $_GET['tab'] == 'T')) ? $_GET['tab'] : 'E';
$db = new Database();
$dbaUsers = new dbaccessUsers($db);
$dbaPropositions = new dbaccessPropositions($db);
$template = new Template();
$template->SetPageVars($_GET['prj'], 'propositions', $dbaUsers);
$template->SetTrunkVar('TAB_TITLE', $ui['tabs'][$tab]);
$rank = $dbaUsers->getUserRankFor($_GET['prj']);
displaytable($dbaPropositions, $_GET['prj'], $tab, NULL, $template);
// display
$template->Grow('./html/div.head.tpl.html');
$template->Grow('./html/propositions.div.tpl.html');
$template->Grow('./html/div.foot.tpl.html');
?>