blob: b3322e88715891447d5841b99d27669e936e74d0 [file] [log] [blame]
<?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'
#*****************************************************************************
#
# template.php
#
# Author: Bob Fraser
# Date: 2007-01-10
#
# Description: Type your page comments here - these are not sent to the browser
#
#
#****************************************************************************
#
# Begin: page-specific settings. Change these.
$pageTitle = "Web Tools Platform (WTP) Project";
$pageKeywords = "web,J2EE";
$pageAuthor = "Bob Fraser";
$root = $_SERVER['DOCUMENT_ROOT'];
// Import the functions that render news.
// require_once ($root . '/webtools/news.php');
// Import common WTP functions.
require_once ($root . '/webtools/common.php');
require_once ($root . '/webtools/newstohtml.php');
// Generate the HTML content for the news based on the news.xml file
// that appears in the root directory.
$newsTitle = "Eclipse Web Tools Platform Project: News";
$wtpnews = news_to_html($root . "/webtools/news.xml", "$newsTitle", "/webtools/wtpnews.rss", "/webtools/news.php", true, "long", "5");
// Get the project descriptions
$wtpoverview = read_file('project-info/description.html');
$wstoverview = read_file('project-info/wst-description.html');
$jstoverview = read_file('project-info/jst-description.html');
$atfoverview = read_file('project-info/atf-description.html');
$dalioverview = read_file('project-info/dali-description.html');
$jsfoverview = read_file('project-info/jsf-description.html');
# Add page-specific Nav bars here
# Format is Link text, link URL (can be http://www.someothersite.com/), target (_self, _blank), level (1, 2 or 3)
# $Nav->addNavSeparator("My Page Links", "downloads.php");
# $Nav->addCustomNav("My Link", "mypage.php", "_self", 3);
# $Nav->addCustomNav("Google", "http://www.google.com/", "_blank", 3);
# End: page-specific settings
#
# Paste your HTML content between the EOHTML markers!
$html = <<<EOHTML
<div id="maincontent">
<div id="midcolumn">
<h1>$pageTitle</h1>
<table>
<tr>
<td>
<p>
$wtpoverview
<br /> <a href="about.php">more about wtp &raquo;</a>
</p>
</td>
<td>
<img src="/webtools/images/wtplogosmall.jpg" align="middle" height="129" hspace="50" width="207" />
</td>
</tr>
</table>
<div class="homeitem3col">
$wtpnews
</div>
<div class="homeitem3col">
<h3>Subprojects</h3>
<ul>
<li>
<b>Web Standard Tools (WST)</b>&nbsp;<a href="wst/main.php"><img src="/images/more.gif" title="More..." alt="More..." /></a>
<br/>
$wstoverview
<br /> <a href="wst/main.php">more about wst &raquo;</a>
</li>
<li>
<b>J2EE Standard Tools (JST)</b>&nbsp;<a href="jst/main.php"><img src="/images/more.gif" title="More..." alt="More..." /></a>
<br/>
$jstoverview
<br /> <a href="jst/main.php">more about jst &raquo;</a>
</li>
<li>
<b>AJAX Toolkit Framework (ATF) - incubating</b>&nbsp;<a href="atf/main.php"><img src="/images/more.gif" title="More..." alt="More..." /></a>
<br/>
$atfoverview
<br /> <a href="atf/main.php">more about atf &raquo;</a>
</li>
<li>
<b>Dali JPA Tools</b>&nbsp;<a href="dali/main.php"><img src="/images/more.gif" title="More..." alt="More..." /></a>
<br/>
$dalioverview
<br /> <a href="dali/main.php">more about dali &raquo;</a>
</li>
<li>
<b>JavaServer Faces Tools (JSF)</b>&nbsp;<a href="jsf/main.php"><img src="/images/more.gif" title="More..." alt="More..." /></a>
<br/>
$jsfoverview
<br /> <a href="jsf/main.php">more about jsf &raquo;</a>
</li>
</ul>
</div>
<p></p>
<p></p>
</div>
<div id="rightcolumn">
<div class="sideitem">
<h6>Discover WTP</h6>
<ul>
<li><a href="http://download.eclipse.org/webtools/downloads/">Download</a></li>
<li><a href="community/communityresources.html#tutorials">Tutorials</a></li>
<li><a href="community/communityresources.html#articles">Articles</a></li>
<li><a href="community/community.html">Upcoming Presentations</a></li>
<li><a href="faq/main.html">FAQ</a></li>
<li><a href="/newsgroups/main.html#wtp">Newsgroup</a></li>
</ul>
</div>
</div>
</div>
EOHTML;
# Generate the web page
$App->generatePage($theme, $Menu, $Nav, $pageAuthor, $pageKeywords, $pageTitle, $html);
?>