blob: f4ad21b53a7dbfb88c236eeeaa94417927f7fb21 [file] [log] [blame]
<?php
require_once($_SERVER['DOCUMENT_ROOT'] . "/projects/common/project-info.class.php");
$p_name = "eclipse";
if(isset($_REQUEST['project']) && strlen($_REQUEST['project']) > 0)
{
$p_name = $_REQUEST['project'];
$p_name = strtolower($p_name);
}
if(isset( $_REQUEST['fetch']))
$pi = new ProjectInfo($p_name, $_REQUEST['fetch']);
else
$pi = new ProjectInfo($p_name, 0);
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'
# Begin: page-specific settings. Change these.
$pageTitle = $pi->getname();
$pageKeywords = "Automatically Generated from poject-info.xml";
$pageAuthor = "Eduardo A. Romero Gomez";
$projectKey = $p_name;
# Add page-specific left nav menu here
#
#$Nav->addNavSeparator("Cool Links", "#");
#$Nav->addCustomNav("OCM", "http://www.openmex.com", "_blank", 1);
ob_start();
?>
<div id="maincontent">
<style type="text/css">
h4 {
font-weigth: normal;
border-bottom: thin dotted;
}
hr
{
border-bottom: solid;
}
</style>
<div id="midcolumn">
<h1>Name: <a href="<?= $pi->getUrlIndex(); ?>" target="_blank"><?= $pi->getname();?></a></h1>
<h2>Project Info <?= ( ($pi->islocal()) ? "(Local)" : "")?></h2>
<p>
<h3>Executive Summary:</h3><div align="justify"><?= $pi->getParagraph() ?></div><br /><a href="<?= $pi->getUrlIndex();?>">
more &raquo;</a>
<br/>
<br/>
</p>
<div class="homeitem">
<h3>More Information</h3>
<ul>
<?if(strlen($pi->contributors_url())>0)
{ ?>
<li><a href="<?= $pi->contributors_url() ?>">Contributors</a></li>
<?
}
?>
<?if(strlen($pi->committers_url())>0)
{ ?>
<li><a href="<?= $pi->committers_url() ?>">Committers</a></li>
<?
}
?>
<?if(strlen($pi->getting_started_url())>0)
{ ?>
<li><a href="<?= $pi->getting_started_url() ?>">Getting Started</a></li>
<?
}
?>
</ul>
</div>
<div class="homeitem">
<h3>Currently Shipping:</h3>
<table width="100%" align="left" cellpadding="2">
<tr>
<td bgcolor="#c0c0c0">Release </td>
<td bgcolor="#c0c0c0">Date </td>
</tr>
<?php
$num_shipps = $pi->hasshippings();
for($i=0; $i<$num_shipps; $i++)
{
$shipp = $pi->getshipping($i);
$name = $shipp->getName();
$url = $shipp->getDownload();
$date = $shipp->getDate();
?>
<tr>
<td><a href="<?= $url ?>"><?= $name ?></a></td><td><?= $date ?></td>
</tr>
<?
}
?>
<tr><td><br></td></tr>
</table>
</div>
<?php
if($pi->hasreleases())
{
?>
<div class="homeitem3col">
<h3>Planned Releases </h3>
<table cellpadding="2" width="100%">
<tr>
<td bgcolor="#c0c0c0">Release </td>
<td bgcolor="#c0c0c0">Date</td>
<td bgcolor="#c0c0c0">Status</td>
<td bgcolor="#c0c0c0">Download URL </td>
<td bgcolor="#c0c0c0">Plan</td>
</tr>
<?php
$num_rels = $pi->hasreleases();
for($r=0; $r<$num_rels;$r++)
{
$rel = $pi->getrelease($r);
$name = $rel->getName();
$date = $rel->getDate();
$status = $rel->getStatus();
$download = $rel->getDownload();
$plan = $rel->getPlan();
?>
<tr>
<td><?= $name ?></td>
<td><span class="dates"><?= $date ?></span></td>
<td><?= $status ?></td>
<td><?php
if($download != "")
{?>
<a href="<?= ( ($download == "") ? "#" : $download )?>">Download</a></td>
<?}?>
<td>
<?php
if($plan != "")
{
?>
<a href="<?= ( ($plan == "") ? "#" : $plan )?>">Plan</a></td>
<?
}
?>
</td>
</tr>
<?
}
?>
</table>
</div>
<?
}
?>
<div class="homeitem3col">
<h3>COMMUNITY</h3>
<br>
<?php
$cvs = $pi->cvs_url();
if(strlen($cvs) > 0)
{
?>
<h4>CVS:</h4>
<ul><li><a href="<?= $cvs?>" target="_blank"><?= $cvs ?></a></li></ul>
<?php
if($pi->hascvsmodules())
{
?>
<h4>Modules:</h4>
<ul>
<?
for($m =0; $m<$pi->hascvsmodules(); $m++)
{
?>
<li><?= $pi->getcvsmodule($m); ?></li>
<?
}
?>
</ul>
<?
}
}
?>
<?php
if($pi->hasblogs())
{
?>
<h4>Blog(s):</h4>
<ul>
<?php
$num_blogs = $pi->hasblogs();
for($i=0; $i<$num_blogs; $i++)
{
$blog = $pi->getblog($i);
$name = $blog->getName();
$url = $blog->getURL();
?>
<li><a href="<?= $url?>" target="_blank"><?= $name ?></a></li>
<?
}
?>
</ul>
<?
} // End Blogs
?>
<?php
if($pi->hasArticles())
{
?>
<h4>Article(s):</h4>
<ul>
<?php
$num_articles = $pi->hasArticles();
for($i=0; $i<$num_articles; $i++)
{
$url = $pi->getArticleAt($i);
?>
<li><a href="<?= $url ?>" target="_blank"><?= $url ?></a></li>
<?
}
?>
</ul>
<?
} // End Articles
?>
<h4>Bugzilla: </h4>
<br/>
&nbsp;<a href="<?=$pi->bugs_url()?>" targe="_blank">Bugs</a><br/><br/>
<?php
if($pi->hasbugzilla())
{
?>
&nbsp;<b>Products</b>: (<?= $pi->hasbugzilla()?>)
<table width="95%" cellpadding="2" align="center">
<tr>
<td bgcolor="#c0c0c0">Name</td>
</tr>
<?php
$num_bugzilla = $pi->hasbugzilla();
for($i=0; $i<$num_bugzilla; $i++)
{
$name = $pi->getbugzillaproduct($i);
$url = $pi->getbugzilla($i);
?>
<tr>
<td>
<a href="<?= $url ?>" target="_blank"><?= $name ?></a>
</td>
</tr>
<?
}
?>
</table>
<?
} // End lists
?>
</div>
<div class="homeitem">
<?php
if($pi->haslists())
{
?>
<h3>Mailing Lists:</h3>
<ul>
<?php
$num_lists = $pi->haslists();
for($i=0; $i<$num_lists; $i++)
{
$name = $pi->getlist($i);
?>
<li><?= $name ?></li>
<?
}
?>
</ul>
<?
} // End lists
?>
</div>
<div class="homeitem">
<?php
if($pi->hasnewsgroups())
{
?>
<h3>Newsgroups Categories:</h3>
<ul>
<?php
$num_news = $pi->hasnewsgroups();
for($i=0; $i<$num_news; $i++)
{
$name = $pi->getnewsgroup($i);
?>
<li>
<?= $name ?>
</li>
<?
}
?>
</ul>
<?
} // End lists
?>
</div>
</div>
<div id="rightcolumn">
<div class="sideitem">
<h6>Project Info</h6>
<ul>
<li><b>Parent Project:</b> <?= $pi->getParentProjectID() ?><br></li>
<li><b>Level:</b> <?= $pi->getLevel() ?><br></li>
</ul>
</div>
<div class="sideitem">
<h6>Related links</h6>
<ul>
<?if(strlen($pi->contributors_url())>0)
{ ?>
<li><a href="<?= $pi->contributors_url() ?>">Contributors</a></li>
<?
}
?>
<?if(strlen($pi->committers_url())>0)
{ ?>
<li><a href="<?= $pi->committers_url() ?>">Committers</a></li>
<?
}
?>
<?if(strlen($pi->getting_started_url())>0)
{ ?>
<li><a href="<?= $pi->getting_started_url() ?>">Getting Started</a></li>
<?
}
?>
</ul>
<br/>
<h6>Dashboard Information</h6>
<table width="100%" align="center">
<tr>
<td>Bugs: <?= $pi->dashboard_bugs_lights(); ?></td>
</tr>
<tr>
<td>News: <?= $pi->dashboard_news_lights(); ?></td>
</tr>
</table>
</div>
</div>
</div>
<?php
$html = ob_get_contents();
ob_end_clean();
# Generate the web page
$App->generatePage($theme, $Menu, $Nav, $pageAuthor, $pageKeywords, $pageTitle, $html);
?>