} $accounts[] = array("id" => $id, "regdate" => $regdate, "group" => $productgroup, "product" => $productname, "module" => $module, "server" => $serverarray, "domain" => $domain, "firstpaymentamount" => formatCurrency($firstpaymentamount), "recurringamount" => formatCurrency($recurringamount), "amount" => $billingcycle == "One Time" ? formatCurrency($firstpaymentamount) : formatCurrency($recurringamount), "nextduedate" => $nextduedate, "billingcycle" => $_LANG["orderpaymentterm" . $langbillingcycle], "username" => $username, "status" => $status, "rawstatus" => $rawstatus, "statustext" => $_LANG["clientarea" . $rawstatus], "class" => strtolower($xstatus), "addons" => get_query_val("tblhostingaddons", "id", array("hostingid" => $id), "id", "DESC") ? "1" : "", "packagesupgrade" => $upgradepackages ? "1" : "", "downloads" => $downloads ? "1" : "", "showcancelbutton" => $CONFIG['ShowCancellationButton']); } $ca->assign("services", $accounts); $smartyvalues = array_merge($smartyvalues, clientAreaTablePageNav($numitems)); } else { if ($action == "productdetails") { checkContactPermission("products"); $ca->setTemplate("clientareaproductdetails"); $service = new WHMCS_Service($id, $client->getID()); if ($service->isNotValid()) { redir("action=products", "clientarea.php"); } $ca->addToBreadCrumb("clientarea.php?action=products", $whmcs->get_lang("clientareaproducts")); $ca->addToBreadCrumb("clientarea.php?action=productdetails#", $whmcs->get_lang("clientareaproductdetails")); $customfields = $service->getCustomFields(); $ca->assign("id", $service->getData("id")); $ca->assign("pid", $service->getData("packageid")); $ca->assign("type", $service->getData("type")); $ca->assign("regdate", fromMySQLDate($service->getData("regdate"), 0, 1, "-")); $ca->assign("modulename", $service->getModule()); $ca->assign("module", $service->getModule()); $ca->assign("serverdata", $service->getServerInfo()); $ca->assign("domain", $service->getData("domain")); $ca->assign("groupname", $service->getData("groupname")); $ca->assign("product", $service->getData("productname")); $ca->assign("paymentmethod", $service->getPaymentMethod()); $ca->assign("firstpaymentamount", formatCurrency($service->getData("firstpaymentamount"))); $ca->assign("recurringamount", formatCurrency($service->getData("amount"))); $ca->assign("billingcycle", $service->getBillingCycleDisplay()); $ca->assign("nextduedate", fromMySQLDate($service->getData("nextduedate"), 0, 1, "-"));