imgproj; $title = $Language->getText('project_home','title').'- '. $project->getPublicName(); site_project_header(array('title'=>$title,'group'=>$group_id,'toptab'=>'home','pagename'=>'projects','sectionvals'=>array(group_getname($group_id)))); // ########################################### end top area // two column deal ?>
getStatus() == 'H') {
print " ".$Language->getText('project_home','holding_note',$GLOBALS['sys_name'])." \n"; } if ($project->getDescription()) { print "" . $project->getDescription() . ' '; } else { print "" . $Language->getText('group', 'nodescription') . ' '; } // trove info print "\n"; print stripslashes(trove_getcatlisting($group_id,0,1)); // registration date print($Language->getText('group', 'registered') . date($sys_datefmt, $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 ' '.$Language->getText('group', 'activity'). substr($actv_res, 0, 5). '%'; print ' '.$Language->getText('group', 'activitystat', $group_id); } 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 ' '.$Language->getText('project_home','help_wanted').' '; if ($num==1) { print ''. db_result($jobs_res,0,"name").'(s)'; } else { print $Language->getText('project_home','help_wanted_multiple', '').' '; } } } } plugin_hook ("project_after_description",false) ; ?> |
boxTop($Language->getText('group','developer_info'));
if (db_numrows($res_admin) > 0) {
?>
getText('group','project_admins'); ?>: createLinkToUserHome($row_admin[user_name], $row_admin[realname])." "; } ?> getText('group','developers'); ?>: [getText('project_home','view_members') ?>] boxBottom(); ?> |
usesFRS()) { echo $HTML->boxTop($Language->getText('frs','latest_file_releases')); $unix_group_name = $project->getUnixName(); echo '
'.$Language->getText('frs','file_package').' | '.$Language->getText('frs','file_version').' | '.$Language->getText('frs','file_rel_date').' | '.$Language->getText('frs','file_notes').' / '.$Language->getText('frs','file_monitor').' | '.$Language->getText('frs','file_download').' |
'.$Language->getText('group', 'norelease').' | ||||
' . 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'=>$Language->getText('project_home','release_notes'))); echo ' - '; echo html_image('ic/mail16d.png','15','15',array('alt'=>$Language->getText('project_home','monitor_package'))); echo ' | '.$Language->getText('frs','file_download').' |
boxTop($Language->getText('group','public_area'));
// ################# Homepage Link
print "getHomePage() . "\">";
print html_image('ic/home16b.png','20','20',array('alt'=>$Language->getText('group','short_homepage')));
print ' '.$Language->getText('group','long_homepage').'';
// ################## ArtifactTypes
// CB hide tracker if desired
if ($project->usesTracker()) {
print ' '; print html_image('ic/tracker20g.png','20','20',array('alt'=>$Language->getText('group','short_tracker'))); print $Language->getText('group', 'long_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 ' '.$Language->getText('project_home','no_trackers').''; } else { for ($j = 0; $j < $rows; $j++) { echo ' - '. db_result($result, $j, 'name') .' ( '.$Language->getText('project_home','tracker_open',array((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'=>$Language->getText('group','short_forum'))); print ' '.$Language->getText('group','long_forum').''; $forums_count = project_get_public_forum_count($group_id); if ($forums_count > 1) { $label = 'forum_messages'; } else { $label = 'forum_messages_only_one_forum'; } print " ( ".$Language->getText('project_home',$label,array(project_get_public_forum_message_count($group_id), $forums_count))." "; print ")\n"; } // ##################### Doc Manager if ($project->usesDocman()) { print ' '; print html_image('ic/docman16b.png','20','20',array('alt'=>$Language->getText('group','short_docman'))); print ' '.$Language->getText('group','long_docman').''; } // ##################### Mailing lists if ($project->usesMail()) { print ' '; print html_image('ic/mail16b.png','20','20',array('alt'=>$Language->getText('group','short_mail'))); print ' '.$Language->getText('group','long_mail').''; print " ( ". project_get_mail_list_count($group_id) ." ".$Language->getText('project_home','public_mailing_lists').")"; } // ##################### Task Manager if ($project->usesPm()) { print ' '; print html_image('ic/taskman20g.png','20','20',array('alt'=>$Language->getText('group','short_pm'))); print ' '.$Language->getText('group','long_pm').''; $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 ' '.$Language->getText('project_home','no_subprojects').''; } else { for ($j = 0; $j < $rows; $j++) { echo ' - '.db_result($result, $j, 'project_name').''; } } } // ######################### Surveys if ($project->usesSurvey()) { print ' '; print html_image('ic/survey16b.png','20','20',array('alt'=>$Language->getText('group','short_survey'))); print " ".$Language->getText('group','long_survey').""; echo ' ( '. project_get_survey_count($group_id) .' '.$Language->getText('project_home','surveys').' )'; } // ######################### SCM if ($project->usesSCM()) { print ' '; print html_image('ic/cvs16b.png','20','20',array('alt'=>$Language->getText('group','short_scm'))); print " ".$Language->getText('group','long_scm').""; $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) ; } // ######################## AnonFTP // CB hide FTP if desired if ($project->usesFTP()) { if ($project->isActive()) { print ' '; print "getUnixName() . "." . $GLOBALS['sys_default_domain'] . "/pub/". $project->getUnixName() ."/\">"; print html_image('ic/ftp16b.png','20','20',array('alt'=>$Language->getText('group','long_ftp'))); print $Language->getText('group','long_ftp').""; } } echo $HTML->boxBottom(); if ($project->usesNews()) { // COLUMN BREAK ?> |
boxTop($Language->getText('group','long_news')); echo news_show_latest($group_id,10,false); echo $HTML->boxBottom(); } ?> |