| <?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 |
| # |
| # |
| #**************************************************************************** |
| |
| include("scripts/candidate.php"); |
| //$id = $_GET['id']; |
| $year="2011"; |
| $candidates = get_all_candidates($year); |
| |
| # |
| # Begin: page-specific settings. Change these. |
| $pageTitle = "$year Board Candidates"; |
| $pageKeywords = "foundation, governance, board, elections"; |
| $pageAuthor = "Mike & Wayner"; |
| |
| # 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> |
| <h2>Committer Candidates</h2> |
| <ul> |
| <li>Chris Aniszczyk</li> |
| <li>Boris Bokowski</li> |
| <li>Ed Merks</li> |
| <li>Gunnar Wagenknecht</li> |
| </ul> |
| <h2>Sustaining Member Candidates</h2> |
| <ul> |
| <li>Tim Barnes</li> |
| <li>Weber George Canova</li> |
| <li>Eric Clayberg</li> |
| <li>John Cunningham</li> |
| <li>Hans Kamutzki</li> |
| <li>Mik Kersten</li> |
| <li>Adam Lieber</li> |
| </ul> |
| <p><b>The individual candidate pages will be available on February 8, 2011.</b></p> |
| |
| <div class="homeitem"> |
| <a name="Candidates"></a>$committer_candidates |
| </div> |
| <div class="homeitem"> |
| $addin_candidates |
| </div> |
| </div> |
| <div id="rightcolumn"> |
| <div class="sideitem"> |
| <h6>Quick Links</h6> |
| <ul> |
| <li><a href=".">Election Home</a></li> |
| <li><a href="nominees.php">Candidates</a></li> |
| <li><a href="keydates.php">Key Dates</a></li> |
| <li><a href="election_process.php">Election Process</a></li> |
| </ul> |
| </div> |
| </div> |
| |
| <!--</div>--> |
| <script language="javascript"> |
| <!-- |
| if (top.location != location) { |
| top.location.href = document.location.href ; |
| } |
| |
| --> |
| </script> |
| EOHTML; |
| |
| # Generate the web page |
| $App->generatePage($theme, $Menu, $Nav, $pageAuthor, $pageKeywords, $pageTitle, $html); |
| |
| function get_candidates_list_as_html(&$candidates, $year, $type) { |
| $type_name = strcmp($type, 'committer') == 0 ? 'Committer' : 'Sustaining Member'; |
| $html = "<h3>$type_name Candidates</h3><table border=\"0\" cellpadding=\"5\">"; |
| foreach ($candidates as $candidate) { |
| if (strcmp($candidate->type, $type) != 0) continue; |
| $html .= <<<EOHTML |
| <tr> |
| <td valign="top"><a href="candidate.php?year=$year&id=$candidate->id"><img src="$candidate->image" width="75"></a></td> |
| <td valign="top" style="border-bottom: dashed 1px #494949;"> |
| <strong><a href="candidate.php?year=$year&id=$candidate->id">$candidate->name</a></strong> |
| <br>$candidate->title |
| <p>$candidate->contact</p> |
| </td> |
| </tr> |
| EOHTML; |
| } |
| $html .= "</table>"; |
| |
| return $html; |
| } |
| ?> |