-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtool.php
More file actions
31 lines (24 loc) · 779 Bytes
/
Copy pathtool.php
File metadata and controls
31 lines (24 loc) · 779 Bytes
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
<?php
/**
* report form and build report
*/
require('./inc/config.php');
// Allowed ?
$user->checkAuthent();
// No $_POST or $_GET data -> display the form
if (count($_GET) == 0) {
$smarty->caching = true;
if(!$smarty->is_cached('frmTool.tpl', $_SESSION['strUserId'])) {
$project = new Project;
$task = new Task;
$smarty->assign_by_ref( 'arrProject', $project->get()); // to fill the projects dropdown list
$smarty->assign_by_ref( 'arrTask', $task->get()); // to fill the tasks dropdown list
}
$smarty->display('frmTool.tpl', $_SESSION['strUserId']);
}
// else $_GET data -> execut action
else {
$smarty->assign_by_ref('strMessage', $sillaj->move());
$smarty->display('frmReport.tpl');
}
?>