$title,'group'=>$group_id,'toptab'=>'home')); // ########################################### end top area // two column deal ?>
getStatus() == 'H') {
print " ".sprintf(_('NOTE: This project entry is maintained by the %1$s staff. We are not the official site for this product. Additional copyright information may be found on this project\'s homepage.'), $GLOBALS['sys_name'])." \n"; } $hook_params = array () ; $hook_params['group_id'] = $group_id ; plugin_hook ("project_before_description",$hook_params) ; if ($project->getDescription()) { print "" . nl2br($project->getDescription()) . ' '; } else { print "" . _('This project has not yet submitted a description.') . ' '; } if($GLOBALS['sys_use_trove']) { print "\n"; print stripslashes(trove_getcatlisting($group_id,0,1)); } // registration date print(_('Registered: ') . date(_('Y-m-d H:i'), $project->getStartDate())); // Get the activity percentile // CB hide stats if desired if ($project->usesStats()) { $actv = db_query("SELECT percentile FROM project_weekly_metric WHERE group_id='$group_id'"); $actv_res = db_result($actv,0,"percentile"); if (!$actv_res) { $actv_res=0; } print ' '._('Activity Percentile: '). substr($actv_res, 0, 5). '%'; print ' '.sprintf(_('View project Statistics or Activity.'), $group_id); print ' '.sprintf(_('View list of RSS feeds available for this project.'), $group_id). ' ' . html_image('ic/rss.png',16,16,array('border'=>'0')); } if($GLOBALS['sys_use_people']) { $jobs_res = db_query("SELECT name FROM people_job,people_job_category WHERE people_job.category_id=people_job_category.category_id AND people_job.status_id=1 AND group_id='$group_id' GROUP BY name",2); if ($jobs_res) { $num=db_numrows($jobs_res); if ($num>0) { print ' '; printf( ngettext('HELP WANTED: This project is looking for a "%2$s".', 'HELP WANTED: This project is looking for people to fill several different positions.', $num), util_make_url ('/people/?group_id='.$group_id), db_result($jobs_res,0,"name")); } } } $hook_params = array () ; $hook_params['group_id'] = $group_id ; plugin_hook ("project_after_description",$hook_params) ; ?> |
boxTop(_('Developer Info'));
if (db_numrows($res_admin) > 0) {
?>
: '. _('Developers').': '; } echo util_make_link ('/users/'.$row_admin['user_name'].'/',$row_admin['realname']).' '; } ?> boxBottom(); ?> |
'._('Package').' | '._('Version').' | '._('Date').' | '._('Notes').' / '._('Monitor').' | '._('Download').' |
'._('This Project Has Not Released Any Files').' | ||||
' . db_result($res_files,$f,'package_name'). ' | '; // Releases to display print ''.db_result($res_files,$f,'release_name') .' | ' . $rel_date["month"] . ' ' . $rel_date["mday"] . ', ' . $rel_date["year"] . ' | '; echo html_image('ic/manual16c.png','15','15',array('alt'=>_('Release Notes'))); echo ' - '; echo html_image('ic/mail16d.png','15','15',array('alt'=>_('Monitor this package'))); echo ' | '.util_make_link ('/frs/?group_id=' . $group_id . '&release_id=' . db_result($res_files,$f,'release_id'),_('Download')).' |
boxTop(_('Public Areas'));
// ################# Homepage Link
print '';
print html_image('ic/home16b.png','20','20',array('alt'=>_('Home Page')));
print ' '._('Project Home Page').'';
// ################## ArtifactTypes
// CB hide tracker if desired
if ($project->usesTracker()) {
print ' '; print html_image('ic/tracker20g.png','20','20',array('alt'=>_('Tracker'))); print _('Tracker').''; $result=db_query("SELECT agl.*,aca.count,aca.open_count FROM artifact_group_list agl LEFT JOIN artifact_counts_agg aca USING (group_artifact_id) WHERE agl.group_id='$group_id' AND agl.is_public=1 ORDER BY group_artifact_id ASC"); $rows = db_numrows($result); if (!$result || $rows < 1) { echo ' '._('There are no public trackers available').''; } else { for ($j = 0; $j < $rows; $j++) { echo ' - '.util_make_link ('/tracker/?atid='. db_result($result, $j, 'group_artifact_id') . '&group_id='.$group_id.'&func=browse',db_result($result, $j, 'name')) .sprintf(ngettext(' (%1$s open / %2$s total)', ' (%1$s open / %2$s total)', (int) db_result($result, $j, 'open_count')), (int) db_result($result, $j, 'open_count'), (int) db_result($result, $j, 'count')) .' '. db_result($result, $j, 'description'); } } } // ################## forums if ($project->usesForum()) { print ' '; print html_image('ic/forum20g.png','20','20',array('alt'=>_('Forums'))); print ' '._('Public Forums').' ( '; $messages_count = project_get_public_forum_message_count($group_id); $forums_count = project_get_public_forum_count($group_id); printf(ngettext("%d message","%d messages",$messages_count),$messages_count); print ' in '; printf(ngettext("%d forum","%d forums",$forums_count),$forums_count); print ' )' ; } // ##################### Doc Manager if ($project->usesDocman()) { print ' '; print html_image('ic/docman16b.png','20','20',array('alt'=>_('Docs'))); print ' '._('DocManager: Project Documentation').''; } // ##################### Mailing lists if ($project->usesMail()) { print ' '; print html_image('ic/mail16b.png','20','20',array('alt'=>_('Lists'))); print ' '._('Mailing Lists').''; $n = project_get_mail_list_count($group_id); printf(ngettext('(%1$s public mailing list)', '(%1$s public mailing lists)', $n), $n); } // ##################### Task Manager if ($project->usesPm()) { print ' '; print html_image('ic/taskman20g.png','20','20',array('alt'=>_('Tasks'))); print ' '._('Task Manager').''; $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) { echo ' '._('There are no public subprojects available').''; } else { for ($j = 0; $j < $rows; $j++) { echo ' - '.util_make_link ('/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')); } } } // ######################### Surveys if ($project->usesSurvey()) { print ' '; print html_image('ic/survey16b.png','20','20',array('alt'=>_('Surveys'))); print " "._('Surveys').""; echo ' ( '. project_get_survey_count($group_id) .' '._('surveys').' )'; } // ######################### SCM if ($project->usesSCM()) { print ' '; print html_image('ic/cvs16b.png','20','20',array('alt'=>_('SCM'))); print " "._('SCM Repository').""; /* $result = db_query(" SELECT sum(commits) AS commits,sum(adds) AS adds FROM stats_cvs_group WHERE group_id='$group_id' ", -1, 0, SYS_DB_STATS); $cvs_commit_num = db_result($result,0,0); $cvs_add_num = db_result($result,0,1); if (!$cvs_commit_num) { $cvs_commit_num=0; } if (!$cvs_add_num) { $cvs_add_num=0; } */ $hook_params = array () ; $hook_params['group_id'] = $group_id ; plugin_hook ("scm_stats", $hook_params) ; } // ######################### Plugins $hook_params = array (); $hook_params['group_id'] = $group_id; plugin_hook ("project_public_area", $hook_params); // ######################## AnonFTP // CB hide FTP if desired if ($project->usesFTP()) { if ($project->isActive()) { print ' '; print ''; print html_image('ic/ftp16b.png','20','20',array('alt'=>_('Anonymous FTP Space'))); print _('Anonymous FTP Space').""; } } //webcalendar plugin_hook("cal_link_group",$group_id); echo $HTML->boxBottom(); if ($project->usesNews()) { // COLUMN BREAK ?> |
boxTop(_('Latest News')); echo news_show_latest($group_id,10,false); echo $HTML->boxBottom(); } // // Linked projects (hierarchy) // plugin_hook('project_home_link',$group_id); ?> |