source: Dev/trunk/index.php @ 41

Last change on this file since 41 was 41, checked in by fpvanagthoven, 14 years ago

Logo is link. Surveys can be loaded.

File size: 1.1 KB
RevLine 
[38]1<?php require 'classes/master.php'; //should be at top of every page   
[10]2
[38]3/* make an array of survey mock objects */
4$surveys = array();
5
[41]6$surveyDBI = new SurveyDatabaseInterface(null);
7$surveyIDTitles = $surveyDBI->getExistingSurveys();
[38]8
[41]9
10foreach ($surveyIDTitles as $id => $title) {
11    $survey = new Survey($id, $title);
12    array_push($surveys, $survey);
13}
[38]14?>
15
[10]16<!DOCTYPE html>
17<html>
18    <head>
19        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
20        <title>Facilitator</title>
21        <link rel="stylesheet" type="text/css" href="css/style.css" />
[38]22        <script type="text/javascript" src="js/menu.js"></script>
[10]23    </head>
24    <body>
25        <div id="header">
[41]26                <?php new Logo(); ?>
[10]27            </div>
[11]28       
[10]29        <div id="wrapper">
30           
31            <div id="content">
32                <div id="menu">               
[36]33                    <?php
34                    SurveyButton::newSurveyButton();
[38]35                    SurveyButton::loadSurveyButton($surveys);
[36]36                    ?>
[10]37                </div>
38            </div>
39        </div>
40    </body>
41</html>
Note: See TracBrowser for help on using the repository browser.