Esempio n. 1
0
     $ann = export_get_user_annotations($in, $out, $filterUsers, $filterCustomers, $filterProjects, $filterActivities);
     Kimai_Format::formatAnnotations($ann);
     $view->assign('user_annotations', $ann);
     $ann = export_get_customer_annotations($in, $out, $filterUsers, $filterCustomers, $filterProjects, $filterActivities);
     Kimai_Format::formatAnnotations($ann);
     $view->assign('customer_annotations', $ann);
     $ann = export_get_project_annotations($in, $out, $filterUsers, $filterCustomers, $filterProjects, $filterActivities);
     Kimai_Format::formatAnnotations($ann);
     $view->assign('project_annotations', $ann);
     $ann = export_get_activity_annotations($in, $out, $filterUsers, $filterCustomers, $filterProjects, $filterActivities);
     Kimai_Format::formatAnnotations($ann);
     $view->assign('activity_annotations', $ann);
     $view->assign('timeformat', $timeformat);
     $view->assign('dateformat', $dateformat);
     if (isset($kga['user'])) {
         $view->assign('disabled_columns', export_get_disabled_headers($kga['user']['userID']));
     }
     echo $view->render("table.php");
     break;
     // Export as html file
 // Export as html file
 case 'export_html':
     $database->user_set_preferences(array('print_summary' => isset($_REQUEST['print_summary']) ? 1 : 0, 'reverse_order' => isset($_REQUEST['reverse_order']) ? 1 : 0), 'ki_export.print.');
     $exportData = export_get_data($in, $out, $filterUsers, $filterCustomers, $filterProjects, $filterActivities, false, $reverse_order, $default_location, $filter_cleared, $filter_type, false, $filter_refundable);
     $timeSum = 0;
     $wageSum = 0;
     $budgetSum = 0;
     $approvedSum = 0;
     foreach ($exportData as $data) {
         $timeSum += $data['decimalDuration'];
         $wageSum += $data['wage'];
Esempio n. 2
0
$view->user_annotations = $ann;
// Get the annotations for the customer sub list.
if (isset($kga['customer'])) {
    $ann = export_get_customer_annotations($in, $out, null, array($kga['customer']['customerID']));
} else {
    $ann = export_get_customer_annotations($in, $out, array($kga['user']['userID']));
}
Format::formatAnnotations($ann);
$view->customer_annotations = $ann;
// Get the annotations for the project sub list.
if (isset($kga['customer'])) {
    $ann = export_get_project_annotations($in, $out, null, array($kga['customer']['customerID']));
} else {
    $ann = export_get_project_annotations($in, $out, array($kga['user']['userID']));
}
Format::formatAnnotations($ann);
$view->project_annotations = $ann;
// Get the annotations for the activity sub list.
if (isset($kga['customer'])) {
    $ann = export_get_activity_annotations($in, $out, null, array($kga['customer']['customerID']));
} else {
    $ann = export_get_activity_annotations($in, $out, array($kga['user']['userID']));
}
Format::formatAnnotations($ann);
$view->activity_annotations = $ann;
// Get the columns the user had disabled last time.
if (isset($kga['user'])) {
    $view->disabled_columns = export_get_disabled_headers($kga['user']['userID']);
}
$view->table_display = $view->render("table.php");
echo $view->render('main.php');