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/surveyEditor.php

    r177 r178  
    11<?php
    22require "classes/master.php";
     3
     4$surveyEditor = new surveyEditorWidget();
     5$surveyEditor->handlePost();
    36?>
    47
     
    1114    <head>
    1215        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    13         <title></title>
    14         <?php new StyleSheet("visualeditors"); ?>
     16        <title>Edit survey</title>
     17        <?php
     18        $surveyEditor->javascript();
     19        new StyleSheet("visualeditors");
     20        ?>
    1521    </head>
    1622    <body>
    1723        <div id="wrapper">
    1824            <div id="content">
    19                 <div id="surveyEditor" class="largeFrame">
    20                     <div class="largeTitle">
    21                         Survey name
    22                     </div>
    23                     <div id="surveyEditorContent" class="innerLargeFrame">
    24 
    25                         <div id="questionUID" class="smallFrame">
    26                             <div class="smallTitle"><div class="listNumber">1</div>#QUESTION-IDENT-NO</div>
    27                             <div class="content">
    28                                 <p class="questionBody">
    29                                     This is the question body text. This is what the user will read when he is answering the survey.This is the question body text. This is what the user will read when he is answering the survey.This is the question body text. This is what the user will read when he is answering the survey.
    30                                 </p>
    31                                 <div class="questionParamsView">
    32                                     PARAMETERS GO HERE, probably in one line (Only answer type and identifier?) Tags?
    33                                 </div>
    34                             </div>
    35                             <div id="questionDisplayControls" class="controls">
    36                                 <input type="button" value="Edit" onClick="javascript:alert('editing not yet supported');" class =" smallButton"/>
    37                                 <input type="button" value="Remove" onClick="javascript:alert('removing not yet supported');" class =" smallButton"/>
    38                             </div>
    39                         </div>
    40                        
    41 
    42                     </div>
    43                     <div id="surveyEditorControls" class="controls">
    44                         <input type="button" value="Discard survey" onClick="javascript:alert('discard not yet supported');" class="smallButton" />
    45                         <input type="button" value="Save survey" onClick="javascript:alert('save not yet supported');" class="smallButton" />
    46                     </div>
    47 
    48                 </div>
     25                <?php $surveyEditor->init(); ?>
    4926            </div>
    5027        </div>
Note: See TracChangeset for help on using the changeset viewer.