isError()) { exit_error(_('Could Not Get ArtifactTypeFactory'),'tracker'); } $at_arr = $atf->getArtifactTypes(); if ($at_arr === false) { exit_permission_denied('tracker'); } use_javascript('/js/sortable.js'); $atf->header(); if (!$at_arr || count($at_arr) < 1) { echo '
'._('No trackers have been set up, or you cannot view them.').'
'; echo ''; echo sprintf(_('The Admin for this project will have to set up data types using the %1$s admin page %2$s'), '', ''); echo "
"; } else { plugin_hook ("blocks", "tracker index"); echo ''._('Choose a tracker and you can browse/edit/add items to it.').'
'; /* Put the result set (list of trackers for this group) into a column with folders */ $tablearr = array(_('Tracker'),_('Description'),_('Open'),_('Total')); echo $HTML->listTableTop($tablearr, false, 'sortable_table_tracker', 'sortable_table_tracker'); for ($j = 0; $j < count($at_arr); $j++) { if (!is_object($at_arr[$j])) { //just skip it } elseif ($at_arr[$j]->isError()) { echo $at_arr[$j]->getErrorMessage(); } else { echo '