예제 #1
0
     if ($promo_type == "Free Setup") {
         $promo_value = $aInt->lang("promos", "freesetup");
     }
     $promo_recurring = $promo_recurring ? $aInt->lang("status", "recurring") : $aInt->lang("status", "onetime");
     if ($promo_type == "Price Override") {
         $promo_recurring = $aInt->lang("promos", "priceoverride");
     }
     if ($promo_type == "Free Setup") {
         $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);
예제 #2
0
    if ($server == $id) {
        $servertemp .= " selected";
    }
    $servertemp .= ">" . $servername . "</option>";
    if ($serverdisabled) {
        $disabledservers .= $servertemp;
    }
    $servers .= $servertemp;
}
echo $servers . $disabledservers;
echo "</select></td></tr>\n<tr><td class=\"fieldlabel\">";
echo $aInt->lang("fields", "product");
echo "</td><td class=\"fieldarea\">";
echo "<s";
echo "elect name=\"package\">";
echo $aInt->productDropDown($package, 0, true);
echo "</select></td><td class=\"fieldlabel\">";
echo $aInt->lang("fields", "paymentmethod");
echo "</td><td class=\"fieldarea\">";
echo paymentMethodsSelection($aInt->lang("global", "any"));
echo "</td></tr>\n<tr><td class=\"fieldlabel\">";
echo $aInt->lang("fields", "billingcycle");
echo "</td><td class=\"fieldarea\">";
echo $aInt->cyclesDropDown($billingcycle, true);
echo "</td><td class=\"fieldlabel\">";
echo $aInt->lang("fields", "status");
echo "</td><td class=\"fieldarea\">";
echo $aInt->productStatusDropDown($status, true);
echo "</td></tr>\n<tr><td class=\"fieldlabel\">";
echo $aInt->lang("fields", "domain");
echo "</td><td class=\"fieldarea\"><input type=\"text\" name=\"domain\" size=\"35\" value=\"";
예제 #3
0
 echo "<h2>" . $pagetitle . "</h2>";
 $jquerycode = "\$(\".itemselect\").change(function () {\n    var itemid = \$(this).val();\n    \$.post(\"clientsbillableitems.php\", { action: \"getproddesc\", id: itemid },\n    function(data){\n        \$(\"#desc\").val(data);\n    });\n    \$.post(\"clientsbillableitems.php\", { action: \"getprodprice\", id: itemid, currency: \"" . $currency['id'] . "\" },\n    function(data){\n        \$(\"#rate\").val(data);\n    });\n});";
 echo "\n<form method=\"post\" action=\"";
 echo $_SERVER['PHP_SELF'];
 echo "?action=save&userid=";
 echo $userid;
 echo "&id=";
 echo $id;
 echo "\">\n<table class=\"form\" width=\"100%\" border=\"0\" cellspacing=\"2\" cellpadding=\"3\">\n";
 if (!$id) {
     echo "<tr><td width=\"20%\" class=\"fieldlabel\">";
     echo $aInt->lang("fields", "product");
     echo "</td><td class=\"fieldarea\">";
     echo "<s";
     echo "elect name=\"pid[]\" class=\"itemselect\" id=\"i'.{$i}.'\">";
     echo $aInt->productDropDown(0, true);
     echo "</select></td></tr>";
 }
 echo "<tr><td class=\"fieldlabel\">";
 echo $aInt->lang("fields", "description");
 echo "</td><td class=\"fieldarea\"><input type=\"text\" name=\"description\" value=\"";
 echo $description;
 echo "\" size=\"75\" id=\"desc\" /></td></tr>\n<tr><td class=\"fieldlabel\">";
 echo $aInt->lang("billableitems", "hoursqty");
 echo "</td><td class=\"fieldarea\"><input type=\"text\" name=\"hours\" value=\"";
 echo $hours;
 echo "\" size=\"8\" /> ";
 echo $aInt->lang("billableitems", "hours");
 echo "</td></tr>\n<tr><td class=\"fieldlabel\">";
 echo $aInt->lang("fields", "amount");
 echo "</td><td class=\"fieldarea\"><input type=\"text\" name=\"amount\" value=\"";
예제 #4
0
     echo "'\"";
     if ($type == "configoptions") {
         echo " checked";
     }
     echo " /> <label for=\"typeconfigoptions\">";
     echo $aInt->lang("setup", "configoptions");
     echo "</label>";
 }
 echo "</td></tr>\n";
 if ($type == "product") {
     echo "<tr><td class=\"fieldlabel\">";
     echo $aInt->lang("services", "newservice");
     echo "</td><td class=\"fieldarea\">";
     echo "<s";
     echo "elect name=\"newproductid\" id=\"newpid\">";
     echo $aInt->productDropDown($service_pid);
     echo "</select></td></tr>\n<tr><td class=\"fieldlabel\">";
     echo $aInt->lang("fields", "billingcycle");
     echo "</td><td class=\"fieldarea\" id=\"billingcyclehtml\">";
     ajax_getcycles($service_pid);
     echo "</td></tr>\n";
 } else {
     if ($type == "configoptions") {
         foreach ($configoptions as $configoption) {
             $optionid = $configoption['id'];
             $optionhidden = $configoption['hidden'];
             $optionname = $optionhidden ? $configoption['optionname'] . " <i>(" . $aInt->lang("fields", "hidden") . ")</i>" : $configoption['optionname'];
             $optiontype = $configoption['optiontype'];
             $selectedvalue = $configoption['selectedvalue'];
             $selectedqty = $configoption['selectedqty'];
             echo "<tr><td class=\"fieldlabel\">" . $optionname . "</td><td class=\"fieldarea\">";