echo '<option></option>'; echo '<option value="decCosts">Highest-Lowest Total Costs</option>'; echo '<option value="incCosts">Lowest-Highest Costs</option></select>'; echo '<input type="submit" value="go"></form>';*/ calculateTotalCosts(); if (isset($_GET['sortBy'])) { $sortType = $_GET['sortBy']; if (in_array("decCosts", $sortType, true)) { uasort($masterArray, "sortDecCosts"); } else { if (in_array("incCosts", $sortType, true)) { uasort($masterArray, "sortIncCosts"); } } } printValues(); function printValues() { global $masterArray, $masterData, $masterWithNew, $ticketData, $invalidReasons, $changesArray; $number = 0; $rowNum = 0; foreach (array_keys($masterArray) as $value) { // The expand button and the number of bounced tickets echo "<button class='expand' id='expand" . $number . "' onclick='showChildren(" . $number . ")'>+</button>\n"; echo "<span class='masterTicket'>"; if (in_array($value, $masterWithNew)) { echo " <i class='fa fa-star'></i>"; } echo " Ticket #" . $value . " - " . (count($masterArray[$value]) - 1) . " child issues.</span>"; echo "<div class='masterTicketInfo' id=m" . $number . ">"; echo "<b>Status: </b>" . "<td valign='top'><select class=\"cell editable\" name=\"status[]\" value=\"" . $masterData[$value]["status"] . "\" data-column=\"status\" data-edited=\"false\" data-master=\"" . $value . "\" data-ticket=\"" . $value . "\"><option value='Open'";
if (isset($_GET['v'])) { $v = $_GET['v']; } else { exit("error 1"); } if (isset($_GET['t'])) { $t = $_GET['t']; } else { exit("error 2"); } echo '<h3>' . $v . '</h3>'; switch ($t) { case "string": echo $redis->get($v); break; case "set": echo $redis->get($v); break; case "list": printValues($redis->lrange($v, 0, -1)); break; case "sortedset": printValues($redis->zrange($v, 0, -1)); break; case "hash": printValues($redis->hgetall($v)); break; case "undefined": $typeOfKey = "undefined"; break; }