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
Line 
1<?php require 'classes/master.php'; //should be at top of every page   
2
3/* make an array of survey mock objects */
4$surveys = array();
5
6$surveyDBI = new SurveyDatabaseInterface(null);
7$surveyIDTitles = $surveyDBI->getExistingSurveys();
8
9
10foreach ($surveyIDTitles as $id => $title) {
11    $survey = new Survey($id, $title);
12    array_push($surveys, $survey);
13}
14?>
15
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" />
22        <script type="text/javascript" src="js/menu.js"></script>
23    </head>
24    <body>
25        <div id="header">
26                <?php new Logo(); ?>
27            </div>
28       
29        <div id="wrapper">
30           
31            <div id="content">
32                <div id="menu">               
33                    <?php
34                    SurveyButton::newSurveyButton();
35                    SurveyButton::loadSurveyButton($surveys);
36                    ?>
37                </div>
38            </div>
39        </div>
40    </body>
41</html>
Note: See TracBrowser for help on using the repository browser.