Ignore:
Timestamp:
11/07/11 14:41:16 (13 years ago)
Author:
fpvanagthoven
Message:

Merged step/displaystep class functionality, division is unnecessary.
Added some javascript to manipulate editor objects in sequencerScripts.js

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Dev/trunk/pipelineEditor.php

    r144 r146  
    22require 'classes/master.php'; //should be at top of every page
    33
     4/* if (!isset($_SESSION['user'])){
     5  redirect('index.php');
     6  } */
    47
    5 $pipeline = $_SESSION['currentPipeline'];
     8//var_dump($_POST);
    69
    7 // generate a set array of pipeline contents, in lieue of working database interface
    8 //if (isset($pipeline)){
    9 //$pipeline = array(new Step("Questionnaire", "Questionnaire 1", 1), new Step("Dashboard", "Dashboard 1", 2), new Step("Application", "Application 1", 3));
    10 //}
    11 //else {
    12     $pipeline = $_SESSION['currentPipeline'];
    13 //}
    14 
    15 if (isset($_POST['objectToCreate'])){
    16     $pipeline[] = new Step($_POST['objectToCreate'], $_POST['objectToCreate']." NEW", 4);
    17     unset($_POST);
     10if (isset($_SESSION['currentPipeline'])) {
     11    $sequencer = new PipelineSequencer($_SESSION['currentPipeline'], "Test Pipeline #1", 1);
     12} else {
     13    $sequencer = new PipelineSequencer(null, "Test Pipeline #1", 1);
    1814}
    1915
    20 $_SESSION['currentPipeline'] = $pipeline;
     16$sequencer->GetFromDB();    // doesn't actually currently get from db, uses session/post as a temporary alternative.
    2117
    22 $pipelineCount = 3;
    23 $pipelineName = "Test pipeline";
    2418
    25 $dbi = new DatabaseInterface();       //mkdir error?!?!?!
     19//$dbi = new DatabaseInterface();
    2620?>
    2721
     
    3630        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    3731        <title></title>
    38         <?php new StyleSheet("awesome"); ?>
     32<?php new StyleSheet("awesome"); ?>
    3933        <script type="text/javascript" src="js/menu.js"></script>
    4034        <script type="text/javascript" src="js/jquery.jps"></script>
    41         <script type="text/javascript" src="js/editorScripts.js"></script>
     35        <script type="text/javascript" src="js/sequencerScripts.js"></script>
    4236    </head>
    4337    <body>
    4438        <div id="header">
    45             <?php new Logo(); ?>
     39<?php new Logo(); ?>
    4640        </div>
    4741
    4842        <div id="wrapper">
    4943            <div id="content">
    50                 <?php new pipelineSequencer($pipeline); ?>
    51                 <?php new Toolbox(); ?>
     44<?php $sequencer->DrawSequencer(); ?>
     45                <?php $toolbox = new Toolbox(); ?>
    5246            </div>
    5347    </body>
Note: See TracChangeset for help on using the changeset viewer.