echo "<td {$classAdd} style='padding:3px;'>" . $lastImportDetails . "<br /><a href='" . $logFileURL . "'>view full log</a></td>"; echo "<td {$classAdd} style='padding:3px;'><a href='ajax_forms.php?action=getSushiRunForm&sushiServiceID=" . $sushi['sushiServiceID'] . "&height=216&width=348&modal=true' class='thickbox'>run now</a></td>"; echo "<td {$classAdd} style='padding:3px;'><a href='publisherPlatform.php?" . $urlstring . "&showTab=sushi'>change/test connection</a></td>"; echo "</tr>"; } echo "</table>"; } else { echo "(no failed imports found)"; } break; //display sushi outstanding approval queue //display sushi outstanding approval queue case 'getAllSushiServices': $sushiService = new SushiService(); $sushiArray = array(); $sushiArray = $sushiService->allServices(); if (count($sushiArray) > 0) { echo "<table class='dataTable' style='width:830px; max-width:830px;'>"; echo "<tr>"; echo "<th style='padding:3px;'>Platform/Publisher</th>"; echo "<th style='padding:3px;'>Report(s)</th>"; echo "<th style='padding:3px;'>Next Run</th>"; echo "<th style='padding:3px;'>Latest Run</th>"; echo "<th style='padding:3px;'>Latest Status</th>"; echo "<th style='padding:3px;'> </th>"; echo "<th style='padding:3px;'> </th>"; echo "</tr>"; foreach ($sushiArray as $sushi) { if ($sushi['platformID'] > 0) { $urlstring = "platformID=" . $sushi['platformID']; $obj = new Platform(new NamedArguments(array('primaryKey' => $sushi['platformID'])));