Changeset 51 for Dev


Ignore:
Timestamp:
07/25/11 20:19:23 (14 years ago)
Author:
fpvanagthoven
Message:

Start on survey page. There's something weird in surveycreationtool though. Should fix that.

Location:
Dev/trunk
Files:
1 added
7 edited

Legend:

Unmodified
Added
Removed
  • Dev/trunk/classes/ApplicationDatabaseInterface.php

    r45 r51  
    3232                $aStyle = $application['applicationStyle'];
    3333               
    34                 $this->applicationRDFWriter->setApplicationInfo($aTitle, $aDescription, $aStyle)
     34                $this->applicationRDFWriter->setApplicationInfo($aTitle, $aDescription, $aStyle);
    3535               
    3636                $this->applicationRDFWriter->saveApplications();
  • Dev/trunk/classes/SurveyAnswerRDFReader.php

    r45 r51  
    44{       
    55        protected $tempModel;
    6         protected $answerPath
     6        protected $answerPath;
    77       
    88    public function __construct($surveyUID)
     
    1010        parent::__construct($surveyUID);
    1111               
    12                 / Create empty MemModel
     12                // Create empty MemModel
    1313                $factory = new ModelFactory();
    1414                $this->tempModel = $factory->getDefaultModel();
  • Dev/trunk/classes/SurveyAnswerRDFWriter.php

    r45 r51  
    44{
    55        protected $userUID;
    6         protected $answerPath
     6        protected $answerPath;
    77
    88        public function __construct($surveyUID,$userUID)
  • Dev/trunk/classes/master.php

    r10 r51  
    1414    require 'classes/' . $class_name . '.php';
    1515}
     16
     17
     18// Redirects user to $url
     19function redirect($url = null)
     20{
     21        if (is_null($url))
     22                $url = $_SERVER['PHP_SELF'];
     23
     24        header("Location: $url");
     25        exit();
     26}
  • Dev/trunk/css/style.css

    r50 r51  
    8080#surveyCreation {
    8181    min-height: 10em;
    82     background-color: #eee;
     82    background-color: #f2f1f1;
    8383    -moz-border-radius: 15px;
    8484    border-radius: 15px;
  • Dev/trunk/survey.php

    r50 r51  
    1 <?php 
     1<?php
    22require 'classes/master.php';
     3
     4if (isset($_GET['id']))
     5{
     6    $surveyID = $_GET['id'];
     7
     8    $surveyDBI = new SurveyDatabaseInterface($surveyID);
     9    $info = $surveyDBI->getSurveyInfo();
     10
     11    $savedSurvey = Survey::getSurvey($info);
     12   
     13    var_dump($_POST);
     14}
     15else
     16    redirect('index.php');
    317?>
    418<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
     
    822    <head>
    923        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    10         <title>Facilitator</title>
    11         <link rel="stylesheet" type="text/css" href="css/style.css" />
    12         <script type="text/javascript" src="js/menu.js"></script>
     24            <title>Facilitator</title>
     25            <link rel="stylesheet" type="text/css" href="css/style.css" />
     26            <script type="text/javascript" src="js/menu.js"></script>
    1327    </head>
    14    
     28
    1529    <body>
    1630        <div id="header">
    17 <?php new Logo(); ?>
     31            <?php new Logo(); ?>
    1832        </div>
    1933
    2034        <div id="wrapper">
    21 
    2235            <div id="content">
    23 
     36                <?php new SurveyTool($savedSurvey); ?>
    2437            </div>
    2538        </div>
  • Dev/trunk/surveycreation.php

    r50 r51  
    44$savedSurvey = null;
    55$timeStamp = null;
    6 //var_dump($_POST);
     6
    77
    88/* LOAD SURVEY */
     
    1818    $timeStamp = $_POST['timeStamp'];
    1919
    20 //    echo 'This is what gets sent:';
    21 //    var_dump($_POST);
     20    echo 'This is what gets sent:';
     21    var_dump($_POST);
    2222//    echo '<br/><br/>';
    2323    $surveyDBI = new SurveyDatabaseInterface($_POST['surveyID']);
     
    2525    $info = $surveyDBI->getSurveyInfo();
    2626//    echo '<br/><br/>';
    27 //    echo 'This is what I get back:';
    28 //    var_dump($info);
     27    echo 'This is what I get back:';
     28    var_dump($info);
    2929
    3030    $savedSurvey = Survey::getSurvey($info);
Note: See TracChangeset for help on using the changeset viewer.