public function GetOutput($Db)
 {
     $Contacts = new eveApiContacts($Db);
     $full_url = FULL_URL;
     // TODO
     $time_start = microtime_float();
     if (!$Contacts->fetch(CHAR_ID, USER_ID, API_KEY, CORP_MODE)) {
         $this->Output = $Contacts->Error;
         return false;
     }
     $time_end = microtime_float();
     $time_api = $time_end - $time_start;
     $this->Updated = APITime($Contacts);
     $this->Title = "Contacts for " . USER_NAME;
     if (count($Contacts->Contacts) > 0) {
         $redIDS = GetContactInfo($Contacts->Contacts, $Db);
         $this->Output .= "<br><table class=\"fancy notification\" style=\"font-size:83%;\" border=1>";
         $this->Output .= "<tr><th>Contact</th><th>Standing</th><th>Corp</th><th>Alliance</th><th>In Watchlist</th></tr>";
         $alt = " class=\"main\"";
         foreach ($Contacts->Contacts as $contact) {
             if (in_array($contact['contactID'], $redIDS)) {
                 if (strpos(strtolower($alt), 'main') !== false) {
                     $alt = " class=\"redAlt\"";
                 } else {
                     $alt = " class=\"redMain\"";
                 }
             } else {
                 if (strpos(strtolower($alt), 'main') !== false) {
                     $alt = " class=\"alt\"";
                 } else {
                     $alt = " class=\"main\"";
                 }
             }
             $this->Output .= "<tr{$alt}>";
             $this->Output .= "<td>" . $contact["contactName"] . "</td>";
             $this->Output .= "<td>" . $contact["standing"] . "</td>";
             if (isset($contact['corpID'])) {
                 $this->Output .= "<td>" . $contact["corpName"] . "</td>";
             } else {
                 $this->Output .= "<td></td>";
             }
             if (isset($contact['allianceID'])) {
                 $this->Output .= "<td>" . $contact["allianceName"] . "</td>";
             } else {
                 $this->Output .= "<td></td>";
             }
             $this->Output .= "<td>" . ($contact["inWatchlist"] == "True" ? "&#10004" : "") . "</td>";
             $this->Output .= "</tr>";
         }
         $this->Output .= "</table>";
     } else {
         $this->Output .= "<br>Character has no contacts.<br>";
     }
     $this->Times = getPageTimes($Db, $time_api, microtime_float() - $time_start);
     return true;
 }
 public function GetOutput($Db)
 {
     $Contacts = new eveApiContacts($Db);
     $full_url = FULL_URL;
     // TODO
     $time_start = microtime_float();
     if (!$Contacts->fetch(CHAR_ID, USER_ID, API_KEY)) {
         $this->Output = $Contacts->Error;
         return false;
     }
     $time_end = microtime_float();
     $time_api = $time_end - $time_start;
     $this->Updated = APITime($Contacts);
     $this->Title = "Contacts for " . USER_NAME;
     if (count($Contacts->Contacts) > 0) {
         $this->Output .= "<br><table class=\"fancy notification\" style=\"font-size:83%;\" border=1>";
         $this->Output .= "<tr><th>Contact</th><th>Standing</th><th>In Watchlist</th></tr>";
         $alt = " class=\"main\"";
         foreach ($Contacts->Contacts as $contact) {
             if ($alt == " class=\"main\"") {
                 $alt = " class=\"alt\"";
             } else {
                 $alt = " class=\"main\"";
             }
             $this->Output .= "<tr{$alt}>";
             $this->Output .= "<td>" . $contact["contactName"] . "</td>";
             $this->Output .= "<td>" . $contact["standing"] . "</td>";
             $this->Output .= "<td>" . ($contact["inWatchlist"] == "True" ? "&#10004" : "") . "</td>";
             $this->Output .= "</tr>";
         }
         $this->Output .= "</table>";
     } else {
         $this->Output .= "<br>Character has no contacts.<br>";
     }
     $this->Times = getPageTimes($Db, $time_api, microtime_float() - $time_start);
     return true;
 }