License card info

getLicenseCardDetails($serialNumber); if ($apiResult != NULL) { $date = Datetime::createFromFormat("Y.m.d H:i:s", $apiResult->UsageDateString); } if ($apiResult != NULL) { if ($apiResult->HasBeenUsedString == 1) { echo '
This license has already been used.
'; if ($email != NULL && (strtolower($email) == strtolower($apiResult->Email))) { foreach ($apiResult->Items as $item) { echo '
'; $imgurl = "FREE_1.png"; switch (intval($item->ProductType)) { case 4: $imgurl = "PRO_1.png"; break; case 5: $imgurl = "BNS_1.png"; break; case 21: $imgurl = "TAPE_1.png"; break; case 23: $imgurl = "FLOOR_1.png"; break; default: break; } echo '' . $item->Name . ''; echo $item->Name; echo '
'; } } } else { echo '
This license has not been used yet.
'; foreach ($apiResult->Items as $item) { echo '
'; $imgurl = "FREE_1.png"; switch (intval($item->ProductType)) { case 4: $imgurl = "PRO_1.png"; break; case 5: $imgurl = "BNS_1.png"; break; case 6: $imgurl = "EMP_1.png"; break; case 21: $imgurl = "TAPE_1.png"; break; case 23: $imgurl = "FLOOR_1.png"; break; default: break; } echo '' . $item->Name . ''; echo $item->Name; echo '
'; } } if ($token == NULL) { echo '
'; echo '
For more details, please Log In
'; } } } else { echo '
License Card not found.
'; } } elseif ($apiResult == NULL && $isPostBack == TRUE) { echo '
License Card not found.
'; } ?>