| <?php |
| /******************************************************************************* |
| * Copyright (c) 2010 Eclipse Foundation and others. |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v1.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/epl-v10.html |
| * |
| * Contributors: |
| * Eclipse Foundation - initial API and implementation |
| *******************************************************************************/ |
| require_once($_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/system/app.class.php"); |
| require_once($_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/system/nav.class.php"); |
| require_once($_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/system/menu.class.php"); |
| |
| $App = new App(); |
| $Nav = new Nav(); |
| $Menu = new Menu(); |
| |
| include($App->getProjectCommon()); |
| |
| /* 221934 - this page to remain on eclipse.org */ |
| |
| require_once($_SERVER['DOCUMENT_ROOT'] . "/projects/classes/Project.class.php"); |
| require_once($_SERVER['DOCUMENT_ROOT'] . "/projects/classes/debug.php"); |
| trace_file_info(__FILE__); |
| |
| $pageTitle = "Eclipse Projects"; |
| $pageAuthor = ""; |
| $pageKeywords = "Eclipse, project, download, list"; |
| |
| $App->PageRSS = "/projects/reviews-rss.php"; |
| $App->PageRSSTitle = "Eclipse Reviews and Proposals"; |
| |
| include( '_commonLeftNav.php' ); |
| |
| ob_start(); |
| ?> |
| <style> |
| a.info{ |
| position:relative; /*this is the key*/ |
| z-index:24; |
| text-decoration:none} |
| |
| a.info:hover{z-index:25; background-color:#ccc} |
| |
| a.info span{display: none} |
| |
| a.info:hover span{ /*the span will display just on :hover state*/ |
| display:block; |
| position:absolute; |
| top:2em; left:-4em; width:8em; |
| border:1px solid #000; |
| background-color:#eee; color:#000; |
| text-align: center} |
| |
| th { |
| padding-left: 4px; |
| padding-right: 4px; |
| } |
| </style> |
| <div id="maincontent"> |
| <div id="midcolumn"> |
| |
| <?php /* ------------------ P R O J E C T S -------------------- */ ?> |
| <div class="homeitem3col"> |
| <h2><a name="Projects"></a>Eclipse Projects</h2> |
| <div style="margin: 5px 15px 15px 0; "> |
| |
| <table> |
| <tr><th><a href="explain/projects-table-columns.php" class="info">Name & Project Information Page<span style="left: -2em; width: 20em;">Project Name and Project Web Page</span></a></th> |
| <th><a href="explain/projects-table-columns.php" class="info">Phase<span>Phase</span></a></th> |
| <th><a href="explain/projects-table-columns.php" class="info">Home<span>Home page</span></a></th> |
| <th><a href="explain/projects-table-columns.php" class="info">Forum<span>Discussion Forum</span></a></th> |
| <th><a href="explain/projects-table-columns.php" class="info">Ma<span>Mailing List</span></a></th> |
| <th><a href="explain/projects-table-columns.php" class="info">Wiki<span>Wiki Page</span></a></th> |
| <th><a href="explain/projects-table-columns.php" class="info">IP<span>IP Log</span></a></th> |
| </tr> |
| <?php |
| |
| $includeComponents = isset($_GET['components']); |
| trace("Components " . ($includeComponents ? "included" : "not included")); |
| |
| $projects = get_project_hierarchy(); |
| dumpProjectInfo($projects, $includeComponents); |
| |
| function dumpProjectInfo($projects, $includeComponents, $indent=0) { |
| foreach( $projects as $project ) { |
| if (!$includeComponents && $project->isComponent()) continue; |
| $border = ''; |
| if($project->isTopLevel()) $border = ' style="border-top: 2px solid #444;"'; |
| |
| $projectId = $project->getId(); |
| $projectName = $project->getName(); |
| |
| if ($project->isComponent()) $projectName = "$projectName (component)"; |
| |
| echo "<tr>"; |
| |
| // Basic info |
| $indentPixels = ($indent * 15) . 'px'; |
| echo "<td $border>"; |
| echo "<div style=\"padding-left:$indentPixels\"><a name=\"$projectId\"></a><a href=\"/projects/project.php?id=$projectId\">$projectName</a></div>\n"; |
| echo "</td>"; |
| |
| |
| // Phase |
| if ($project->isInIncubationConformingPhase()) { |
| $phaseLink = "http://wiki.eclipse.org/Development_Resources/HOWTO/Incubation_Phase"; |
| $phaseImage = '/projects/images/egg.gif'; |
| } else if ($project->isInIncubationNonConformingPhase()) { |
| $phaseLink = "http://wiki.eclipse.org/Development_Resources/HOWTO/Conforming_Incubation_Branding"; |
| $phaseImage = '/projects/images/egg-redx.jpg'; |
| } else { |
| $phaseLink = "http://wiki.eclipse.org/Development_Resources/HOWTO/Mature_Phase"; |
| $phaseImage = '/projects/images/ok.gif'; |
| } |
| |
| echo "<td $border><a href=\"$phaseLink\"><img src=\"$phaseImage\" align=\"middle\" border=\"0\"></a></td>"; |
| |
| |
| // Home page |
| $projectUrl = $project->getProjectUrl(); |
| echo "<td $border>"; |
| if ($projectUrl) echo "<a href=\"$projectUrl\"><img src=\"/home/categories/images/wiki.gif\" border=\"0\"></a>"; |
| echo "</td>"; |
| |
| // Newsgroup |
| $newsgroups = $project->getNewsgroups(); |
| echo "<td $border>"; |
| foreach ($newsgroups as $newsgroup) { |
| $name = $newsgroup->getName(); |
| echo "<a href=\"http://www.eclipse.org/forums/$name\"><img src=\"/home/categories/images/newsgroups.gif\" border=\"0\"></a>"; |
| break; |
| } |
| echo "</td>"; |
| |
| // Mailing lists |
| $mailingLists = $project->getMailingLists(); |
| echo "<td $border>"; |
| foreach ($mailingLists as $mailingList) { |
| $name = $mailingList->getName(); |
| echo "<a href=\"http://dev.eclipse.org/mailman/listinfo/$name\"><img src=\"/home/categories/images/mailinglist.gif\" border=\"0\"></a>"; |
| break; |
| } |
| echo "</td>"; |
| |
| // Wiki |
| $wikiurl = $project->getWikiUrl(); |
| echo "<td $border>"; |
| if ($wikiurl) echo "<a href=\"$wikiurl\"><img src=\"/home/categories/images/wiki.gif\" border=\"0\"></a>"; |
| echo "</td>"; |
| |
| // IP Log |
| $logurl = $project->getIplogUrl(); |
| echo "<td $border>"; |
| if ($logurl) echo "<a href=\"$logurl\"><img src=\"/home/categories/images/docs.gif\" border=\"0\"></a>"; |
| echo "</td>"; |
| |
| echo "</tr>"; |
| |
| dumpProjectInfo($project->getChildren(), $includeComponents, $indent+1); |
| } |
| } |
| |
| |
| ?> |
| </table> |
| </div><!-- style --> |
| <div align="right" style="margin-right: 10px; margin-top: -10px;"> |
| <a href="explain/projects-table.php">explain...</a> |
| </div><!-- right --> |
| </div><!-- homeitem3col --> |
| |
| <?php echo get_trace_html(); ?> |
| |
| </div><!-- midcolumn --> |
| |
| </div><!-- maincontent --> |
| <?php |
| # Paste your HTML content between the EOHTML markers! |
| $html = ob_get_contents(); |
| ob_end_clean(); |
| |
| # Generate the web page |
| $App->generatePage($theme, $Menu, $Nav, $pageAuthor, $pageKeywords, $pageTitle, $html); |
| ?> |