$name = $corp->getName(); $typeURL = edkURI::page('corp_detail', $ctrTypeID, 'crp_id'); break; case "alliance": $alliance = new Alliance($ctrTypeID); $name = $alliance->getName(); $typeURL = edkURI::page('alliance_detail', $ctrTypeID, 'all_id'); break; case "region": $region = new Region($ctrTypeID); $name = $region->getName(); $typeURL = edkURI::page('detail_view', $ctrTypeID, 'region_id'); break; case "system": $system = new SolarSystem($ctrTypeID); $name = $system->getName(); $typeURL = edkURI::page('system_detail', $ctrTypeID, 'sys_id'); break; } if ($typeURL) { $html .= '<tr class=kb-table-row-odd><td class=kb-table-cell><b><a href="' . $typeURL . '">' . $name . '</b></td><td class=kb-table-cell align=center>'; } else { $html .= "<tr class=kb-table-row-odd><td class=kb-table-cell><b>" . $name . "</b></td><td class=kb-table-cell align=center>"; } if ($type == "corp") { $html .= "x"; } $html .= "</td><td class=kb-table-cell align=center>"; if ($type == "alliance") { $html .= "x"; }