| <?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' |
| /******************************************************************************* |
| * Copyright (c) 2013 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 |
| *******************************************************************************/ |
| $documentRoot = $_SERVER['DOCUMENT_ROOT']; |
| $pageAuthor = "Nathan Gervais"; |
| |
| |
| require_once ($documentRoot .'/home/categories/scripts/globals.php'); |
| |
| $tab = $App->getHTTPParameter('tab'); |
| if ($tab == ""){ |
| $tab = "start"; |
| } |
| $category = $App->getHTTPParameter('category'); |
| if ($category == "") |
| { |
| $category = "enterprise"; |
| } |
| # Sanitize |
| $valid = array("entreprise", "mobile", "web", "modeling", "soa", "frameworks", "ide", "rt"); |
| if(!in_array($category, $valid)) { |
| $category = "entreprise"; |
| } |
| |
| $pageTitle = $categoriesArray[$category]['fulltitle']; |
| |
| ob_start(); |
| ?> |
| <link rel="stylesheet" type="text/css" href="/home/categories/nova.css" media="screen" /> |
| <div id="fullcolumn"> |
| <div id="contentContainer"> |
| <div id="categoryNav"> |
| <ul> |
| <li><a <? if ($category == 'enterprise') { echo "class='active'"; } ?> href="/home/categories/?category=enterprise&tab=<?=$tab;?>">Enterprise</a></li> |
| <li><a href="/eclipsert">Eclipse RT</a></li> |
| <li><a href="/eclipsesoa">Eclipse SOA</a></li> |
| <?/*<li><a href="?category=soa&tab=<?=$tab;?>">SOA</a></li>*/?> |
| <li><a href="/pulsar">Pulsar</a></li> |
| <li><a <? if ($category == 'ide') { echo "class='active'"; } ?> href="/home/categories/?category=ide&tab=<?=$tab;?>">IDE</a></li> |
| <li><a <? if ($category == 'modeling') { echo "class='active'"; } ?> href="/home/categories/?category=modeling&tab=<?=$tab;?>">Modeling</a></li> |
| <li><a <? if ($category == 'frameworks') { echo "class='active'"; } ?> href="/home/categories/?category=frameworks&tab=<?=$tab;?>">Frameworks</a></li> |
| </ul> |
| </div> |
| <div id="synopsis"> |
| <div id="image"><img src="<?=$categoriesArray[$category]['icon']?>" width="170"></div> |
| <div id="text"> |
| <h1><?=$categoriesArray[$category]['fulltitle']?></h1> |
| <p class="description"><?=$categoriesArray[$category]['description'];?></p> |
| <ul> |
| <li><a <? if ($tab == 'start') { echo "class='active'"; } ?> href="?category=<?=$category;?>&tab=start">Get Started</a></li> |
| <li><a <? if ($tab == 'learn') { echo "class='active'"; } ?> href="?category=<?=$category;?>&tab=learn">Learn More</a></li> |
| <li><a <? if ($tab == 'participate') { echo "class='active'"; } ?> href="?category=<?=$category;?>&tab=participate">Participate</a></li> |
| </ul> |
| </div> |
| </div> |
| <div id="contentBox"> |
| <div id="top" class="<?=$tab;?>"></div> |
| <div id="content"> |
| <?switch($tab) { |
| case "start": |
| include($documentRoot .'/home/categories/fetch/getstarted.php'); |
| break; |
| case "learn": |
| include($documentRoot .'/home/categories/fetch/expert.php'); |
| break; |
| case "participate": |
| include($documentRoot .'/home/categories/fetch/community.php'); |
| break; |
| }?> |
| <hr class="clearer"/> |
| </div> |
| <div id="bottom"></div> |
| </div> |
| </div> |
| </div> |
| <? |
| $html = ob_get_contents(); |
| ob_end_clean(); |
| |
| # Generate the web page |
| $App->generatePage("Nova", $Menu, NULL, $pageAuthor, $pageKeywords, $pageTitle, $html); |
| ?> |