source: Dev/trunk/pipelineEditor.php @ 144

Last change on this file since 144 was 144, checked in by fpvanagthoven, 13 years ago

Fixed mkdir call in ApplicationConnector?.php, now actually makes a directory instead of errors.
Cleaning up of pipeline Sequencer, smaller icons, etc. Trying to get non-db version of editor working properly, then integrate db calls.

File size: 1.5 KB
Line 
1<?php
2require 'classes/master.php'; //should be at top of every page
3
4
5$pipeline = $_SESSION['currentPipeline'];
6
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
15if (isset($_POST['objectToCreate'])){
16    $pipeline[] = new Step($_POST['objectToCreate'], $_POST['objectToCreate']." NEW", 4);
17    unset($_POST);
18}
19
20$_SESSION['currentPipeline'] = $pipeline;
21
22$pipelineCount = 3;
23$pipelineName = "Test pipeline";
24
25$dbi = new DatabaseInterface();       //mkdir error?!?!?!
26?>
27
28<!--
29To change this template, choose Tools | Templates
30and open the template in the editor.
31-->
32<!DOCTYPE html>
33
34<html>
35    <head>
36        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
37        <title></title>
38        <?php new StyleSheet("awesome"); ?>
39        <script type="text/javascript" src="js/menu.js"></script>
40        <script type="text/javascript" src="js/jquery.jps"></script>
41        <script type="text/javascript" src="js/editorScripts.js"></script>
42    </head>
43    <body>
44        <div id="header">
45            <?php new Logo(); ?>
46        </div>
47
48        <div id="wrapper">
49            <div id="content">
50                <?php new pipelineSequencer($pipeline); ?>
51                <?php new Toolbox(); ?>
52            </div>
53    </body>
54</html>
Note: See TracBrowser for help on using the repository browser.