blob: 10e47532a4238441b889b608911982fcb586d79c [file]
<?php 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()); # All on the same line to unclutter the user's desktop'
/* 221934 - this page to remain on eclipse.org */
require_once($_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/classes/projects/projectInfoData.class.php"); // use the project info system
$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}
</style>
<div id="maincontent">
<div id="midcolumn">
<?php /* ------------------ P R O J E C T S -------------------- */ ?>
<div class="homeitem3col">
<h3><a name="Projects"></a>Eclipse Projects</h3>
<div style="margin: 5px 15px 15px 0; ">
<table>
<tr><th><a href="explain/projects-table-columns.php" class="info">Name &amp; 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">Ph<span>Phase</span></a></th>
<th><a href="explain/projects-table-columns.php" class="info">Hm<span>Home page</span></a></th>
<th><a href="explain/projects-table-columns.php" class="info">Nw<span>Newsgroup</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">Wi<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
function row_cmp( $a, $b ) {
$ia = strpos( $a['ProjectID'] . '.', '.' );
$ib = strpos( $b['ProjectID'] . '.', '.' );
$wa = substr( $a['ProjectID'], 0, $ia );
$wb = substr( $b['ProjectID'], 0, $ib );
if( $wa == $wb ) {
if( $a['Level'] == $b['Level'] ) {
$sa = $a['Name'];
$sb = $b['Name'];
$sa = strtolower($sa);
$sb = strtolower($sb);
if( substr($sa,0,4) == 'the ' ) $sa = substr($sa,4);
if( substr($sa,0,8) == 'eclipse ' ) $sa = substr($sa,8);
if( substr($sb,0,4) == 'the ' ) $sb = substr($sb,4);
if( substr($sb,0,8) == 'eclipse ' ) $sb = substr($sb,8);
$v = strcmp( $sa, $sb );
return $v;
} else {
if( $a['Level'] < $b['Level'] ) $v = -1;
else if( $a['Level'] > $b['Level'] ) $v = 1;
else $v = 0;
return $v;
}
} else {
$v = strcmp( $wa, $wb );
return $v;
}
}
$result = $App->foundation_sql("SELECT * FROM Projects WHERE IsComponent = 0 ORDER BY ProjectID");
$rows = array();
while( $row = mysql_fetch_assoc($result) ) {
$rows[] = $row;
}
usort( $rows, 'row_cmp' );
foreach( $rows as $row ) {
// ---- Load up ProjectInfo ----
$projectid = $row['ProjectID'];
$projectinfo = new ProjectInfoData($projectid);
// ---- Exclude internal and archived projects ----
if( !$row['IsActive'] ) continue;
if( $row['ProjectID'] == "foundation-internal"
|| $row['ParentProjectID'] == 'foundation-internal' ) continue;
if( $row['ProjectPhase'] == 'Archive'
|| strpos( $row['Name'], "[archived]")
|| strpos( $row['Name'], "[closed]" ) ) continue;
if( $row['Level'] == 0 ) continue;
$border = '';
if( $row['Level'] == 1 ) $border = ' style="border-top: 2px solid #444;"';
// ---- Project name and info page ----
$spacer = '';
if( $row['Level'] == 2 ) $spacer = '&nbsp;&nbsp;&nbsp;&nbsp;';
?><tr><td <?= $border ?>><?= $spacer ?>
<a name="<?= $projectid ?>"></a>
<a href="/projects/project_summary.php?projectid=<?= $projectid ?>"><?= strlen($projectinfo->projectnames[0]) > 0 ? $projectinfo->projectnames[0] : $row['Name'] ?></a><?php
?></td><?php
// ---- Phase ----
if( $row['ProjectPhase'] == 'Regular' ) {
?><td <?= $border ?>><a href="http://wiki.eclipse.org/Development_Resources/HOWTO/Mature_Phase"><img src="/projects/images/ok.gif" align="middle" border="0"></a></td><?php
} else if( $row['ProjectPhase'] == 'Incubation' ) {
?><td <?= $border ?>><a href="http://wiki.eclipse.org/Development_Resources/HOWTO/Incubation_Phase"><img src="/projects/images/egg.gif" align="middle" border="0"></a></td><?php
} else if( $row['ProjectPhase'] == 'Incubation.nc' ) {
?><td <?= $border ?>><a href="http://wiki.eclipse.org/Development_Resources/HOWTO/Conforming_Incubation_Branding"><img src="/projects/images/egg-redx.jpg" align="middle" border="0"></a></td><?php
} else {
?><td <?= $border ?>>&nbsp;</td><?php
}
if(!isset($projectinfo)) {
continue;
}
// ---- Home page ----
?><td <?= $border ?>><a href="<?= $projectinfo->projecturls[0] ?>"><img src="/home/categories/images/wiki.gif" border="0"></a></td><?php
// ---- Newsgroup ----
$newsurl = newsgroup_url($projectinfo);
if($newsurl !== '') {
?><td <?= $border ?>><a href="<?= $newsurl ?>"><img src="/home/categories/images/newsgroups.gif" border="0"></a></td><?php
} else {
?><td <?= $border ?>>&nbsp;</td><?php
}
// ---- Mailing List ----
$mailurl = mailinglist_url($projectinfo);
if($mailurl !== '') {
?><td <?= $border ?>><a href="<?= $mailurl ?>"><img src="/home/categories/images/mailinglist.gif" border="0"></a></td><?php
} else {
?><td <?= $border ?>>&nbsp;</td><?php
}
// ---- Wiki ----
$wikiurl = $projectinfo->wikiurls[0];
if($wikiurl !== NULL) {
if(!preg_match('/wiki.eclipse.org/', $wikiurl)) {
$wikiurl = "http://wiki.eclipse.org/$wikiurl";
}
?><td <?= $border ?>><a href="<?= $wikiurl ?>"><img src="/home/categories/images/wiki.gif" border="0"></a></td><?php
} else {
?><td <?= $border ?>>&nbsp;</td><?php
}
// ---- IP Log ----
$logurl = $projectinfo->iplogurl;
if($logurl !== NULL) {
?><td <?= $border ?>><a href="<?= $projectinfo->iplogurls[0] ?>"><img src="/home/categories/images/docs.gif" border="0"></a></td><?php
} else {
?><td <?= $border ?>>&nbsp;</td><?php
}
?></tr>
<?php
}
?>
</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 -->
</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);
// Utility functions
function newsgroup_url($projectinfo) {
if($projectinfo === NULL) return "";
$x = $projectinfo->newsgroups;
if( !$x ) return "";
if( count($x) > 0) $x = $x[0];
if($x->name)
return "http://www.eclipse.org/newsportal/thread.php?group=" . $x->name;
else
return '';
}
function mailinglist_url($projectinfo) {
if($projectinfo === NULL) return "";
$x = $projectinfo->mailinglists;
if( !$x ) return "";
if( count($x) > 0) $x = $x[0];
if($x->name)
return "https://dev.eclipse.org/mailman/listinfo/" . $x->name;
else
return '';
}
?>