function printnode($nodeid, $text) { global $Language; print '<br />'; for ($i = 0; $i < $GLOBALS[depth]; $i++) { print " "; } print html_image('ic/cfolder15.png', '15', '13', array()); print ' ' . $text . " "; print url_make_link("trove_cat_add.php?parent_trove_cat_id='.{$nodeid}.'", "[" . _('Add') . "]"); if ($nodeid != 0) { print url_make_link("trove_cat_edit.php?parent_trove_cat_id='.{$nodeid}.'", "[" . _('Edit') . "]"); print help_button('trove_cat', $nodeid) . "\n"; } $GLOBALS['depth']++; $res_child = db_query("\n\t\tSELECT trove_cat_id,fullname FROM trove_cat \n\t\tWHERE parent='{$nodeid}'\n\t\tAND trove_cat_id!=0;\n\t"); while ($row_child = db_fetch_array($res_child)) { printnode($row_child["trove_cat_id"], $row_child["fullname"]); } $GLOBALS["depth"]--; }
/** * Return a link to the diff between two versions of a File in cvsweb * * @param String $GroupName is the Name of the project * @param String $FileName is the FileName ( with path ) * @param String $PrevVersion First version to retrieve * @param String $ActualVersion Second version to retrieve * * @return String The string containing a link to the File in the cvsweb * */ function getDiffLink($GroupName, $FileName, $PrevVersion, $ActualVersion) { return url_make_link('/scm/viewvc.php/' . $FileName . '?root=' . $GroupName . '&r1=' . $PrevVersion . '&r2=' . $ActualVersion, _('Diff To') . ' ' . $PrevVersion); }
$page = getIntFromGet('page'); $projectsResult = $category->getProjects($offset); // store this as a var so it can be printed later as well $html_limit = '<span style="text-align:center;font-size:smaller">'; $html_limit .= sprintf(ngettext('<strong>%d</strong> project in result set.', '<strong>%d</strong> projects in result set.', $querytotalcount), $querytotalcount); // only display pages stuff if there is more to display if ($querytotalcount > $TROVE_BROWSELIMIT) { $html_limit .= ' ' . sprintf(ngettext('Displaying %d project per page. Projects sorted by activity ranking.', 'Displaying %d projects per page. Projects sorted by activity ranking.', $TROVE_BROWSELIMIT), $TROVE_BROWSELIMIT) . '<br />'; // display all the numbers for ($i = 1; $i <= ceil($querytotalcount / $TROVE_BROWSELIMIT); $i++) { $html_limit .= ' '; $displayed_i = "<{$i}>"; if ($page == $i) { $html_limit .= "<strong>{$displayed_i}</strong>"; } else { $html_limit .= url_make_link("/softwaremap/trove_list.php?form_cat={$form_cat}&page={$i}", $displayed_i); } $html_limit .= ' '; } } $html_limit .= '</span>'; print $html_limit . "<hr />\n"; ?> <table border="0" cellpadding="0" width="100%"><?php while ($project = db_fetch_array($projectsResult)) { ?> <tr valign="top"> <td colspan="2"><?php echo $count . '. '; echo util_make_link_g($project['unix_group_name'], $project['group_id'], '<strong>' . htmlspecialchars($project['group_name']) . '</strong>'); if ($project['short_description']) {