Exemplo n.º 1
0
 } 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, "-"));
         $ca->assign("status", $service->getStatusDisplay());
         $ca->assign("rawstatus", strtolower($service->getData("status")));
         $ca->assign("dedicatedip", $service->getData("dedicatedip"));
         $ca->assign("assignedips", $service->getData("assignedips"));
         $ca->assign("ns1", $service->getData("ns1"));