예제 #1
0
         $promo_recurring = "";
     }
     $promoarr[$promo_id] = $promo_code . " - " . $promo_value . " " . $promo_recurring;
 }
 $tbl = new WHMCS_Table();
 $tbl->add($aInt->lang("fields", "ordernum"), $orderid . " - <a href=\"orders.php?action=view&id=" . $orderid . "\">" . $aInt->lang("orders", "vieworder") . "</a>");
 $tbl->add($aInt->lang("fields", "regdate"), $frm->date("regdate", $regdate));
 $tbl->add($aInt->lang("fields", "product"), $frm->hidden("oldpackageid", $packageid) . $frm->dropdown("packageid", $aInt->productDropDown($packageid), "", "submit()"));
 $tbl->add($aInt->lang("fields", "firstpaymentamount"), $frm->text("firstpaymentamount", $firstpaymentamount, "10"));
 $tbl->add($aInt->lang("fields", "server"), $frm->dropdown("server", $serversarr, $server, "submit()", "", true));
 $tbl->add($aInt->lang("fields", "recurringamount"), $frm->text("amount", $amount, "10") . " " . $frm->checkbox("autorecalcrecurringprice", $aInt->lang("services", "autorecalc"), $autorecalcdefault ? true : false));
 $tbl->add($producttype == "server" ? $aInt->lang("fields", "hostname") : $aInt->lang("fields", "domain"), $frm->text("domain", $domain, "40") . " <a href=\"http://" . $domain . "\" target=\"_blank\" style=\"color:#cc0000\">www</a> <a href=\"#\" onclick=\"\$('#frmWhois').submit();return false\">" . $aInt->lang("domains", "whois") . "</a> <a href=\"http://www.intodns.com/" . $domain . "\" target=\"_blank\" style=\"color:#006633\">intoDNS</a>");
 $tbl->add($aInt->lang("fields", "nextduedate"), in_array($billingcycle, array("One Time", "Free Account")) ? "N/A" : $frm->hidden("oldnextduedate", $nextduedate) . $frm->date("nextduedate", $nextduedate));
 $tbl->add($aInt->lang("fields", "dedicatedip"), $frm->text("dedicatedip", $dedicatedip, "25"));
 $tbl->add($aInt->lang("fields", "billingcycle"), $aInt->cyclesDropDown($billingcycle));
 $tbl->add($aInt->lang("fields", "username"), $frm->text("username", $username, "20") . (function_exists($module . "_LoginLink") ? " " . ServerLoginLink($id) : ""));
 $tbl->add($aInt->lang("fields", "paymentmethod"), paymentMethodsSelection() . " <a href=\"clientsinvoices.php?userid=" . $userid . "&serviceid=" . $id . "\">" . $aInt->lang("invoices", "viewinvoices") . "</a>");
 $tbl->add($aInt->lang("fields", "password"), $frm->text("password", $password, "20"));
 $tbl->add($aInt->lang("fields", "promocode"), $frm->dropdown("promoid", $promoarr, $promoid, "", "", true) . " (" . $aInt->lang("services", "noaffect") . ")");
 $tbl->add($aInt->lang("fields", "status"), $aInt->productStatusDropDown($domainstatus, false, "domainstatus", "prodstatus") . ($domainstatus == "Suspended" ? " (" . $aInt->lang("services", "suspendreason") . ": " . (!$suspendreason ? $_LANG['suspendreasonoverdue'] : $suspendreason) . ")" : ""));
 $tbl->add($aInt->lang("fields", "subscriptionid"), $frm->text("subscriptionid", $subscriptionid, "25"));
 if ($producttype == "server") {
     $tbl->add($aInt->lang("fields", "assignedips"), $frm->textarea("assignedips", $assignedips, "4", "30"), 1);
     $tbl->add($aInt->lang("fields", "nameserver") . " 1", $frm->text("ns1", $ns1, "35"), 1);
     $tbl->add($aInt->lang("fields", "nameserver") . " 2", $frm->text("ns2", $ns2, "35"), 1);
 }
 $configoptions = array();
 $configoptions = getCartConfigOptions($packageid, "", $billingcycle, $id);
 if ($configoptions) {
     foreach ($configoptions as $configoption) {
         $optionid = $configoption['id'];
예제 #2
0
     $service_name = $data['name'];
     $service_domain = $data['domain'];
     $service_status = $data['domainstatus'];
     $service_regdate = $data['regdate'];
     $service_nextduedate = $data['nextduedate'];
     $service_username = $data['username'];
     $service_password = decrypt($data['password']);
     $service_servertype = $data['servertype'];
     if ($service_servertype) {
         if (!isValidforPath($service_servertype)) {
             exit("Invalid Server Module Name");
         }
         include "../modules/servers/" . $service_servertype . "/" . $service_servertype . ".php";
         if (function_exists($service_servertype . "_LoginLink")) {
             ob_start();
             ServerLoginLink($service_id);
             $service_loginlink = ob_get_contents();
             ob_end_clean();
         }
     }
     $smartyvalues['relatedproduct'] = array("id" => $service_id, "name" => $service_name, "regdate" => fromMySQLDate($service_regdate), "domain" => $service_domain, "nextduedate" => fromMySQLDate($service_nextduedate), "username" => $service_username, "password" => $service_password, "loginlink" => $service_loginlink, "status" => $service_status);
     break;
 case "D":
     $result = select_query("tbldomains", "", array("id" => substr($service, 1)));
     $data = mysql_fetch_array($result);
     $service_id = $data['id'];
     $service_userid = $data['userid'];
     $service_type = $data['type'];
     $service_domain = $data['domain'];
     $service_status = $data['status'];
     $service_nextduedate = $data['nextduedate'];