Changeset 163 for Dev/trunk/returnStep.php
- Timestamp:
- 11/18/11 15:28:51 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/trunk/returnStep.php
r157 r163 40 40 function processUid($uid) { 41 41 $dbi = new DatabaseInterface(); 42 if ($uid == "123") { // test case for when steps aren't actually working43 $imageURL = "images/icons/unknowntype.png";44 $responsePart = '<div class="displayStep" id="' . "123" . '" onClick="selectStep(this.id);"><div class="displayStepIcon"><img src="' . $imageURL . '" /></div>' . "123" . '</div>';45 return $responsePart;46 } else if ($uid == '456') {47 $imageURL = "images/icons/unknowntype.png";48 $responsePart = '<div class="displayStep" id="' . "456" . '" onClick="selectStep(this.id);"><div class="displayStepIcon"><img src="' . $imageURL . '" /></div>' . "456" . '</div>';49 return $responsePart;50 } else {51 52 53 42 if ($uid == "divider") { //a divider has been requested instead of a displaystep 54 43 $responsePart = '<div class="divider"></div>'; … … 68 57 } 69 58 70 if ($result != null) {59 if ($result == null) { 71 60 $applications = $dbi->get("Application", array("uid" => $uid)); 72 61 if (count($applications) > 0) { … … 79 68 } 80 69 81 if ($result != null) {70 if ($result == null) { 82 71 $dashboards = $dbi->get("Dashboard", array("uid" => $uid)); 83 72 if (count($dashboards) > 0) { … … 116 105 } 117 106 } 118 }107 119 108 } 120 109
Note: See TracChangeset
for help on using the changeset viewer.