Пример #1
0
    $view->exportData = export_get_data($in, $out, array($kga['user']['userID']));
}
$view->total = $total;
// Get the annotations for the user sub list.
if (isset($kga['customer'])) {
    $ann = export_get_user_annotations($in, $out, null, array($kga['customer']['customerID']));
} else {
    $ann = export_get_user_annotations($in, $out, array($kga['user']['userID']));
}
Format::formatAnnotations($ann);
$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 {
Пример #2
0
     // save selected columns
 // save selected columns
 case 'toggle_header':
     // $axValue: header name
     $success = export_toggle_header($axValue);
     echo $success ? 1 : 0;
     break;
     // Load data and return it
 // Load data and return it
 case 'reload':
     $view->assign('exportData', export_get_data($in, $out, $filterUsers, $filterCustomers, $filterProjects, $filterActivities, false, $reverse_order, $default_location, $filter_cleared, $filter_type, false, $filter_refundable));
     $view->assign('total', Kimai_Format::formatDuration($database->get_duration($in, $out, $filterUsers, $filterCustomers, $filterProjects, $filterActivities, $filter_cleared)));
     $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;
Пример #3
0
$customers = null;
if (isset($kga['customer'])) {
    $customers = array($kga['customer']['customerID']);
} else {
    $users = array($kga['user']['userID']);
}
// Get the total amount of time shown in the table.
$total = Kimai_Format::formatDuration($database->get_duration($in, $out, $users, $customers, null));
$view->assign('total', $total);
$view->assign('exportData', export_get_data($in, $out, $users, $customers));
// Get the annotations for the user sub list.
$userAnnotations = export_get_user_annotations($in, $out, $users, $customers);
Kimai_Format::formatAnnotations($userAnnotations);
$view->assign('user_annotations', $userAnnotations);
// Get the annotations for the customer sub list.
$customerAnnotations = export_get_customer_annotations($in, $out, $users, $customers);
Kimai_Format::formatAnnotations($customerAnnotations);
$view->assign('customer_annotations', $customerAnnotations);
// Get the annotations for the project sub list.
$projectAnnotations = export_get_project_annotations($in, $out, $users, $customers);
Kimai_Format::formatAnnotations($projectAnnotations);
$view->assign('project_annotations', $projectAnnotations);
// Get the annotations for the activity sub list.
$activityAnnotations = export_get_activity_annotations($in, $out, $users, $customers);
Kimai_Format::formatAnnotations($activityAnnotations);
$view->assign('activity_annotations', $activityAnnotations);
// Get the columns the user had disabled last time.
if (isset($kga['user'])) {
    $view->assign('disabled_columns', export_get_disabled_headers($kga['user']['userID']));
}
$view->assign('table_display', $view->render("table.php"));