Changeset 153 for Dev/trunk/classes
- Timestamp:
- 11/15/11 11:01:31 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/trunk/classes/pipelineSequencer.php
r152 r153 21 21 22 22 public function init() { 23 $stringPipeline = ""; 24 foreach ($this->loadedSession->pipeline as $object) { 25 $stringPipeline .= "$object->uid,"; 26 } 27 $stringPipeline = rtrim($stringPipeline, ","); 23 28 ?> 24 29 <br /><form name="sequencer" action="pipelineEditor.php" method="post"> … … 27 32 28 33 <div id="seqContent"> 29 <?php $this->DrawSteps(); ?> 34 30 35 </div> 31 36 … … 37 42 <input type="submit" name="clearPipeline" value="Clear pipeline" class="surveyButton dis" disabled="true"/> 38 43 <input type="checkbox" name="confirmClear" onChange="IsCheckEnabled(this, document.sequencer.clearPipeline);" />Really clear? 39 <input type="hidden" name="selectedStep" /> 40 <input type="hidden" name="numSteps" /> 41 <input type="hidden" name="pipeline" /> 44 </div> 45 <div id="hiddeInputs"> 46 <input type="hidden" name="selectedStep" id="selectedStepField" value="" /> 47 <input type="hidden" name="pipelineString" id="pipelineStringField" value="123,456,123" /> 42 48 </div> 43 49 </fieldset> … … 47 53 48 54 public function DrawSteps() { 49 55 // Use AJAX to draw visual representations of step objects in a pipeline 56 // <TODO> Implement parameters such as screen size in the drawing of objects </TODO> 57 ?> 58 <script type="text/javascript"> 59 drawSteps(); 60 </script> 61 62 63 <?php 50 64 } 51 65 52 private function Javascript() { 66 public function Javascript() { 67 $pipelineString = "ERROR"; 68 69 echo "<!--$pipelineString-->"; 70 53 71 ?> 54 72 <script type="text/javascript" src="js/sequencerScripts.js"></script> 55 73 <script type="text/javascript" src="js/jquery.js"></script> 74 <script type="text/javascript"> 75 $(document).ready(function() { 76 drawSteps(); 77 }); 78 </script> 56 79 <?php 57 80 } … … 63 86 redirect("selectSession.php"); 64 87 } 65 88 66 89 $sessionResults = $dbi->get("Session", array("uid" => $currentSession)); 67 90 if (count($sessionResults) > 0) { 68 91 $this->loadedSession = $sessionResults[0]; 69 } 70 else { 92 } else { 71 93 die("Invalid session!"); 72 94 }
Note: See TracChangeset
for help on using the changeset viewer.