Changeset 178 for Dev/trunk/getInfo.php


Ignore:
Timestamp:
12/07/11 14:36:09 (13 years ago)
Author:
fpvanagthoven
Message:
  • returnQuestionDisplay.php is vergelijkbaar met returnStep.php. Stuur "uids=blablablabla" erheen en je krijgt de HTML markup voor de question display terug als plain text. Deze gaat worden gebruikt in de surveyEditor, zelfde principe als pipelineSequencer/returnStep.php
  • Nieuwe icons, alpha channel. Betere styling mee mogelijk, formaat/cropping is nog wel een beetje weird.
  • surveyEditorWidget.php is de survey versie van pipelineSequencer.php. (Ook hier weer een consistent naming scheme toepassen? Als in: pipelineEditor->pipelineEditorWidget, surveyEditor->surveyEditorWidget, etc...?
  • layout van pipelineEditor.php klopt nu weer en werkt nu helemaal op de nieuwe stylesheet, visualeditors.css. Logo, header en navbar stuff moet nog wel gemaakt worden.
  • surveyEditorScripts.js: scripts voor, verrassing, surveyEditor.php. loadSurvey werkt, drawQuestions ook bijna. BELANGRIJK! Deze editor werkt met global variables ipv de hidden fields die in pipelineSequencer.php gebruikt worden. Om conflicten te voorkomen wordt alles opgeslagen in een object literal "surveyEditor".
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Dev/trunk/getInfo.php

    r168 r178  
    2222if (count($results) > 0) {      // check if DB object exists and assign it to variable
    2323    if ($results[0] != null) {
    24         $returnString = "<table border='0'>";
     24        $returnString = "";
    2525        $result = $results[0];
    2626    } else
     
    3131switch ($type) {
    3232    case "Session":
    33         $returnString .= "<tr> <td>Name</td> <td>$result->title</td> </tr>";
    34         $returnString .= "<tr><td>Created</td><td>" . $result->datetime->format("H:i:s, d-m-Y") . " by " . $result->creator[0]->name . "</td></tr>";
     33        $returnString .= "<span class='property'>Title: </span><span class='value'>$result->title</span>";
     34        $returnString .= "<span class='property'>Created: </span><span class='value'>" . $result->datetime->format("H:i:s, d-m-Y") . " by " . $result->creator[0]->name . "</span>";
    3535        $cS = 0; $cD = 0; $cA = 0;
    3636        foreach ($result->pipeline as $step) {
     
    5050            }
    5151        }
    52         $returnString .= "<tr><td>Number of steps</td><td><ul style='list-style-type: none;'><li style='margin-left: -40px;'>$cS Surveys<li style='margin-left: -40px;'>$cA Applications<li style='margin-left: -40px;'>$cD Dashboards</ul></td></tr>";
     52        $returnString .= "<span class='property'>Number of steps: </span><span class='value'><ul style='list-style-type: none;'><li style='margin-left: -40px;'>$cS Surveys<li style='margin-left: -40px;'>$cA Applications<li style='margin-left: -40px;'>$cD Dashboards</ul></span>";
    5353        break;
    5454    case "Survey":
    55         $returnString .= "<tr> <td>Name</td><td>$result->title</td> </tr>";
    56         $returnString .= "<tr> <td>Creator</td> <td>LOLOL ME!!!</td> </tr>";
     55        $returnString .= "<span class='property'>Title: </span><span class='value'>$result->title</span>";
     56        $returnString .= "<span class='property'>Creator: </span><span class='value'>LOLOL ME!!!</span>";
    5757        $qCount = 0;
    58         foreach ($result->questions as $q) {
    59             $qCount++;
    60         }
    61         $returnString .= "<tr> <td>Questions</td> <td>$qCount</td> </tr>";
    62         $returnString .= "<tr> <td>Description</td> <td>$result->description</td> </tr>";
    63        
     58        $qCount = count($result->questions);
     59        $returnString .= "<span class='property'>Questions: </span><span class='value'>$qCount</span>";
     60        $returnString .= "<span class='property'>Description: </span><span class='value'>$result->description</span>";
    6461        break;
    6562    case "Application":
    66         $returnString .= "<tr> <td>Name</td> <td>$result->title</td> </tr>";
    67         $returnString .= "<tr> <td>Location</td> <td>C:/folder_of_awesomeness/epicgame.exe</td> </tr>";
    68         $returnString .= "<tr> <td>Description</td> <td>$result->description</td> </tr>";
     63        $returnString .= "<span class='property'>Title: </span><span class='value'>$result->title</span>";
     64        $returnString .= "<span class='property'>Path: </span><span class='value'>C:/folder_of_awesomeness/epicgame.exe</span>";
     65        $returnString .= "<span class='property'>Description: </span><span class='value'>$result->description</span>";
    6966        break;
    7067    case "Dashboard":
     
    8077}
    8178
    82 $returnString .= "</table>";
    8379echo $returnString;
    8480?>
Note: See TracChangeset for help on using the changeset viewer.