| <?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: Denis Roy |
| # Date: 2005-06-16 |
| # |
| # Description: Type your page comments here - these are not sent to the browser |
| # |
| # |
| #**************************************************************************** |
| |
| # |
| # Begin: page-specific settings. Change these. |
| $pageTitle = "Eclipse Books"; |
| $pageKeywords = "Type, page, keywords, here"; |
| $pageAuthor = "Type your name here"; |
| |
| # 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", 1); |
| # $Nav->addCustomNav("Google", "http://www.google.com/", "_blank", 1); |
| |
| # End: page-specific settings |
| # |
| include("scripts/books.php"); |
| $books = get_books(); |
| |
| $date_sort = "<a href=\"?sort=date\">by date</a>"; |
| $title_sort = "<a href=\"?sort=title\">by title</a>"; |
| $author_sort = "<a href=\"?sort=author\">by author</a>"; |
| |
| $sort_by = $_GET['sort']; |
| if ($sort_by == "author") $author_sort = "<b>by author</b>"; |
| else if ($sort_by == "title") $title_sort = "<b>by title</b>"; |
| else $date_sort = "<b>by date</b>"; |
| |
| # Paste your HTML content between the EOHTML markers! |
| $html = <<<EOHTML |
| <div id="maincontent"> |
| <div id="midcolumn"> |
| <h1>$pageTitle</h1> |
| <p>The eclipse library represents the dedication of many authors and eclipse |
| fans. Writing a book is a huge undertaking and we'd like to thank |
| the people who have made the monolithic effort to make these books happen!</p> |
| |
| $books |
| </div> |
| <div id="rightcolumn"> |
| <div class="sideitem"> |
| <h6>Sort</h6> |
| <ul> |
| <li>$date_sort</li> |
| <li>$title_sort</li> |
| <li>$author_sort</li> |
| </ul> |
| </div> |
| </div> |
| </div> |
| |
| |
| EOHTML; |
| |
| |
| # Generate the web page |
| $App->generatePage($theme, $Menu, $Nav, $pageAuthor, $pageKeywords, $pageTitle, $html); |
| ?> |