Changeset 146 for Dev/trunk/pipelineEditor.php
- Timestamp:
- 11/07/11 14:41:16 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/trunk/pipelineEditor.php
r144 r146 2 2 require 'classes/master.php'; //should be at top of every page 3 3 4 /* if (!isset($_SESSION['user'])){ 5 redirect('index.php'); 6 } */ 4 7 5 $pipeline = $_SESSION['currentPipeline'];8 //var_dump($_POST); 6 9 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); 10 if (isset($_SESSION['currentPipeline'])) { 11 $sequencer = new PipelineSequencer($_SESSION['currentPipeline'], "Test Pipeline #1", 1); 12 } else { 13 $sequencer = new PipelineSequencer(null, "Test Pipeline #1", 1); 18 14 } 19 15 20 $ _SESSION['currentPipeline'] = $pipeline;16 $sequencer->GetFromDB(); // doesn't actually currently get from db, uses session/post as a temporary alternative. 21 17 22 $pipelineCount = 3;23 $pipelineName = "Test pipeline";24 18 25 $dbi = new DatabaseInterface(); //mkdir error?!?!?! 19 //$dbi = new DatabaseInterface(); 26 20 ?> 27 21 … … 36 30 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 37 31 <title></title> 38 32 <?php new StyleSheet("awesome"); ?> 39 33 <script type="text/javascript" src="js/menu.js"></script> 40 34 <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> 42 36 </head> 43 37 <body> 44 38 <div id="header"> 45 39 <?php new Logo(); ?> 46 40 </div> 47 41 48 42 <div id="wrapper"> 49 43 <div id="content"> 50 <?php new pipelineSequencer($pipeline); ?>51 <?php new Toolbox(); ?>44 <?php $sequencer->DrawSequencer(); ?> 45 <?php $toolbox = new Toolbox(); ?> 52 46 </div> 53 47 </body>
Note: See TracChangeset
for help on using the changeset viewer.