Exemplo n.º 1
0
    $tpl->assign('arr_data', 0);
}
$tpl->assign('total', $total);
// Get the annotations for the user sub list.
if (isset($kga['customer'])) {
    $ann = xp_get_arr_usr($in, $out, null, array($kga['customer']['knd_ID']));
} else {
    $ann = xp_get_arr_usr($in, $out, array($kga['usr']['usr_ID']));
}
formatAnnotations($ann);
$tpl->assign('usr_ann', $ann);
// Get the annotations for the customer sub list.
if (isset($kga['customer'])) {
    $ann = xp_get_arr_knd($in, $out, null, array($kga['customer']['knd_ID']));
} else {
    $ann = xp_get_arr_knd($in, $out, array($kga['usr']['usr_ID']));
}
formatAnnotations($ann);
$tpl->assign('knd_ann', $ann);
// Get the annotations for the project sub list.
if (isset($kga['customer'])) {
    $ann = xp_get_arr_pct($in, $out, null, array($kga['customer']['knd_ID']));
} else {
    $ann = xp_get_arr_pct($in, $out, array($kga['usr']['usr_ID']));
}
formatAnnotations($ann);
$tpl->assign('pct_ann', $ann);
// Get the annotations for the task sub list.
if (isset($kga['customer'])) {
    $ann = xp_get_arr_evt($in, $out, null, array($kga['customer']['knd_ID']));
} else {
Exemplo n.º 2
0
     echo $success ? 1 : 0;
     break;
     // ===========================
     // = Load data and return it =
     // ===========================
 // ===========================
 // = Load data and return it =
 // ===========================
 case 'reload':
     $arr_data = xp_get_arr($in, $out, $filterUsr, $filterKnd, $filterPct, $filterEvt, false, $reverse_order, $default_location, $filter_cleared, $filter_type, false, $filter_refundable);
     $tpl->assign('arr_data', count($arr_data) > 0 ? $arr_data : 0);
     $tpl->assign('total', formatDuration(get_zef_time($in, $out, $filterUsr, $filterKnd, $filterPct, $filterEvt, $filter_cleared)));
     $ann = xp_get_arr_usr($in, $out, $filterUsr, $filterKnd, $filterPct, $filterEvt);
     formatAnnotations($ann);
     $tpl->assign('usr_ann', $ann);
     $ann = xp_get_arr_knd($in, $out, $filterUsr, $filterKnd, $filterPct, $filterEvt);
     formatAnnotations($ann);
     $tpl->assign('knd_ann', $ann);
     $ann = xp_get_arr_pct($in, $out, $filterUsr, $filterKnd, $filterPct, $filterEvt);
     formatAnnotations($ann);
     $tpl->assign('pct_ann', $ann);
     $ann = xp_get_arr_evt($in, $out, $filterUsr, $filterKnd, $filterPct, $filterEvt);
     formatAnnotations($ann);
     $tpl->assign('evt_ann', $ann);
     $tpl->assign('timeformat', $timeformat);
     $tpl->assign('dateformat', $dateformat);
     if (isset($kga['usr'])) {
         $tpl->assign('disabled_columns', xp_get_disabled_headers($kga['usr']['usr_ID']));
     }
     $tpl->display("table.tpl");
     break;