} // ######################## AnonFTP // 2003-02-21 helix if ($project->usesFtp()) { print '<HR SIZE="1" NoShade>'; print "<A href=\"ftp://" . $sys_ftp_host . "/pub/" . $project->getUnixName() . "/\">"; print html_image("images/ic/ftp16b.png", '20', '20', array('alt' => $Language->GROUP_LONG_FTP)); print " " . $Language->GROUP_LONG_FTP . "</A>"; } // 2003-02-21 helix // ######################### Screenshots if ($project->usesScreenshots()) { print '<HR SIZE="1" NoShade><A href="/screenshots/?group_id=' . $group_id . '">'; print html_image("images/ic/frame_image16b.png", '20', '20', array('alt' => $Language->GROUP_SHORT_SCREENSHOTS)); print " " . $Language->GROUP_LONG_SCREENSHOTS . "</A>"; echo ' ( <B>' . project_get_screenshots_count($group_id) . '</B> screenshots )'; } // 2003-01-31 helix // ######################## Wiki if ($project->usesWiki()) { print '<HR SIZE="1" NoShade><A href="/wiki/?group_id=' . $group_id . '">'; print html_image("images/ic/manual16b.png", '20', '20', array('alt' => $Language->GROUP_LONG_WIKI)); print " " . $Language->GROUP_LONG_WIKI . "</A>"; } $HTML->box1_bottom(); if ($project->usesNews()) { // COLUMN BREAK ?> </TD> <TD WIDTH="15"> </TD>
function project_summary($group_id, $mode, $no_table) { if (!$group_id) { return 'Error - No Group ID'; } if (!$mode) { $mode = 'full'; } $project = project_get_object($group_id); // ################## forums if (!$no_table) { $return .= ' <TABLE BORDER=0 WIDTH="100%"><TR><TD BGCOLOR="#EAECEF">'; } if ($project->usesForum()) { $return .= ' <HR SIZE="1" NoShade>'; $return .= '<A href="http://' . $GLOBALS['sys_default_host'] . '/forum/?group_id=' . $group_id . '">'; $return .= html_image("images/ic/notes16.png", "20", "20", array("BORDER" => "0", "ALT" => "Forums")); $return .= ' Forums</A>'; if ($mode != 'compact') { $return .= " ( <B>" . project_get_public_forum_count($group_id) . "</B> messages in "; $return .= "<B>" . project_get_public_forum_message_count($group_id) . "</B> forums )\n"; } } // ##################### Bug tracking if ($project->usesBugs()) { $return .= ' <HR SIZE="1" NoShade>'; $return .= '<A href="http://' . $GLOBALS['sys_default_host'] . '/bugs/?group_id=' . $group_id . '">'; $return .= html_image("images/ic/bug16b.png", "20", "20", array("BORDER" => "0", "ALT" => "Bugs")); $return .= ' Bug Tracker</A>'; if ($mode != 'compact') { $return .= " ( <B>" . project_get_open_bug_count($group_id) . "</B>"; $return .= " open bugs, <B>" . project_get_total_bug_count($group_id) . "</B> total )"; } } // ##################### Support Manager if ($project->usesSupport()) { $return .= ' <HR SIZE="1" NoShade>'; $return .= '<A href="http://' . $GLOBALS['sys_default_host'] . '/support/?group_id=' . $group_id . '">'; $return .= html_image("images/ic/support16b.jpg", "20", "20", array("BORDER" => "0", "ALT" => "Support")); $return .= ' Tech Support</A>'; if ($mode != 'compact') { $return .= " ( <B>" . project_get_open_support_count($group_id) . "</B>"; $return .= " open requests, <B>" . project_get_total_support_count($group_id) . "</B> total )"; } } // ##################### Feature Request if ($project->usesFeature()) { $return .= ' <HR SIZE="1" NoShade>'; $return .= '<A href="http://' . $GLOBALS['sys_default_host'] . '/feature/?group_id=' . $group_id . '">'; $return .= html_image("images/ic/support16b.jpg", "20", "20", array("BORDER" => "0", "ALT" => "Feature Requests")); $return .= ' Feature Requests</A>'; if ($mode != 'compact') { $return .= " ( <B>" . project_get_open_feature_count($group_id) . "</B>"; $return .= " open requests, <B>" . project_get_total_feature_count($group_id) . "</B> total )"; } } // ##################### Doc Manager if ($project->usesDocman()) { $return .= ' <HR SIZE="1" NoShade>'; $return .= '<A href="http://' . $GLOBALS['sys_default_host'] . '/docman/?group_id=' . $group_id . '">'; $return .= html_image("images/ic/docman16b.png", "20", "20", array("BORDER" => "0", "ALT" => "Docs")); $return .= ' Doc Manager</A>'; } // ##################### Patch Manager if ($project->usesPatch()) { $return .= ' <HR SIZE="1" NoShade>'; $return .= '<A href="http://' . $GLOBALS['sys_default_host'] . '/patch/?group_id=' . $group_id . '">'; $return .= html_image("images/ic/patch.png", "20", "20", array("BORDER" => "0", "ALT" => "Patches")); $return .= ' Patch Manager</A>'; if ($mode != 'compact') { $return .= " ( <B>" . project_get_open_patch_count($group_id) . "</B>"; $return .= " open patches, <B>" . project_get_total_patch_count($group_id) . "</B> total )"; } } // ##################### Mailing lists if ($project->usesMail()) { $return .= ' <HR SIZE="1" NoShade>'; $return .= '<A href="http://' . $GLOBALS['sys_default_host'] . '/mail/?group_id=' . $group_id . '">'; $return .= html_image("images/ic/mail16b.png", "20", "20", array("BORDER" => "0", "ALT" => "Mail Lists")); $return .= ' Mailing Lists</A>'; if ($mode != 'compact') { $return .= " ( <B>" . project_get_mail_list_count($group_id) . "</B> public lists )"; } } // ##################### Task Manager if ($project->usesPm()) { $return .= ' <HR SIZE="1" NoShade>'; $return .= '<A href="http://' . $GLOBALS['sys_default_host'] . '/pm/?group_id=' . $group_id . '">'; $return .= html_image("images/ic/taskman16b.png", "20", "20", array("BORDER" => "0", "ALT" => "Tasks")); $return .= ' Task Manager</A>'; if ($mode != 'compact') { //get a list of publicly available projects $sql = "SELECT * FROM project_group_list WHERE group_id='{$group_id}' AND is_public=1"; $result = db_query($sql); $rows = db_numrows($result); if (!$result || $rows < 1) { $return .= '<BR><I>There are no public subprojects available</I>'; } else { for ($j = 0; $j < $rows; $j++) { $return .= ' <BR> - <A HREF="http://' . $GLOBALS['sys_default_host'] . '/pm/task.php?group_project_id=' . db_result($result, $j, 'group_project_id') . '&group_id=' . $group_id . '&func=browse">' . db_result($result, $j, 'project_name') . '</A>'; } db_free_result($result); } } } // ######################### Surveys if ($project->usesSurvey()) { $return .= ' <HR SIZE="1" NoShade>'; $return .= '<A href="http://' . $GLOBALS['sys_default_host'] . '/survey/?group_id=' . $group_id . '">'; $return .= html_image("images/ic/survey16b.png", "20", "20", array("BORDER" => "0", "ALT" => "Surveys")); $return .= " Surveys</A>"; if ($mode != 'compact') { $return .= ' ( <B>' . project_get_survey_count($group_id) . '</B> surveys )'; } } // ######################### CVS if ($project->usesCVS()) { $return .= ' <HR SIZE="1" NoShade>'; $return .= '<A href="http://' . $GLOBALS['sys_default_host'] . '/cvs/?group_id=' . $group_id . '">'; $return .= html_image("images/ic/cvs16b.png", "20", "20", array("BORDER" => "0", "ALT" => "CVS")); $return .= " CVS Tree</A>"; if ($mode != 'compact') { $sql = "SELECT SUM(cvs_commits) AS commits,SUM(cvs_adds) AS adds from stats_project where group_id='{$group_id}'"; $result = db_query($sql); $return .= ' ( <B>' . db_result($result, 0, 0) . '</B> commits, <B>' . db_result($result, 0, 1) . '</B> adds )'; } } // 2002-03-03 by helix // ######################## Screenshots if ($project->usesScreenshots()) { $return .= ' <HR SIZE="1" NoShade>'; $return .= '<A href="http://' . $GLOBALS['sys_default_host'] . '/screenshots/?group_id=' . $group_id . '">'; $return .= html_image("images/ic/frame_image16b.png", "20", "20", array("BORDER" => "0", "ALT" => "Screenshots")); $return .= " Screenshots</A>"; if ($mode != 'compact') { $return .= ' ( <B>' . project_get_screenshots_count($group_id) . '</B> screenshots )'; } } // ######################## Released Files if ($project->isActive()) { $return .= ' <HR SIZE="1" NoShade>'; $return .= '<A href="http://' . $GLOBALS['sys_default_host'] . '/project/showfiles.php?group_id=' . $group_id . '">'; $return .= html_image("images/ic/ftp16b.png", "20", "20", array("BORDER" => "0", "ALT" => "FTP")); $return .= " Released Files</A>"; } if (!$no_table) { $return .= ' </TD></TR></TABLE>'; } return $return; }