Пример #1
0
echo "\" tabindex=\"7\"></td><td class=\"fieldlabel\">";
echo $aInt->lang("fields", "phonenumber");
echo "</td><td class=\"fieldarea\"><input type=\"text\" size=\"20\" name=\"phonenumber\" value=\"";
echo $phonenumber;
echo "\" tabindex=\"14\"></td></tr>\n<tr><td class=\"fieldlabel\"><br /></td><td class=\"fieldarea\"></td><td class=\"fieldlabel\"></td><td class=\"fieldarea\"></td></tr>\n<tr><td class=\"fieldlabel\">";
echo $aInt->lang("clients", "latefees");
echo "</td><td class=\"fieldarea\"><input type=\"checkbox\" name=\"latefeeoveride\"";
if ($latefeeoveride == "on") {
    echo " checked";
}
echo " tabindex=\"15\"> ";
echo $aInt->lang("clients", "latefeesdesc");
echo "</td><td class=\"fieldlabel\">";
echo $aInt->lang("fields", "paymentmethod");
echo "</td><td class=\"fieldarea\">";
echo paymentMethodsSelection($aInt->lang("clients", "changedefault"), 20);
echo "</td></tr>\n<tr><td class=\"fieldlabel\">";
echo $aInt->lang("clients", "overduenotices");
echo "</td><td class=\"fieldarea\"><input type=\"checkbox\" name=\"overideduenotices\"";
if ($overideduenotices == "on") {
    echo " checked";
}
echo " tabindex=\"16\"> ";
echo $aInt->lang("clients", "overduenoticesdesc");
echo "</td><td class=\"fieldlabel\">";
echo $aInt->lang("clients", "billingcontact");
echo "</td><td class=\"fieldarea\">";
echo "<s";
echo "elect name=\"billingcid\" tabindex=\"21\"><option value=\"\">";
echo $aInt->lang("global", "default");
echo "</option>";
Пример #2
0
     }
     $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'];
         $optionhidden = $configoption['hidden'];
Пример #3
0
 echo "?userid=";
 echo $userid;
 echo "&sub=save&id=";
 echo $id;
 echo "\" name=\"calendarfrm\">\n\n<table class=\"form\" width=\"100%\" border=\"0\" cellspacing=\"2\" cellpadding=\"3\">\n<tr><td width=\"15%\" class=\"fieldlabel\">";
 echo $aInt->lang("fields", "date");
 echo "</td><td class=\"fieldarea\"><input type=\"text\" size=\"12\" name=\"date\" value=\"";
 echo $date;
 echo "\" class=\"datepick\"></td><td width=\"15%\" class=\"fieldlabel\" width=110>";
 echo $aInt->lang("fields", "transid");
 echo "</td><td class=\"fieldarea\"><input type=\"text\" name=\"transid\" size=20 value=\"";
 echo $transid;
 echo "\"></td></tr>\n<tr><td class=\"fieldlabel\">";
 echo $aInt->lang("fields", "paymentmethod");
 echo "</td><td class=\"fieldarea\">";
 echo paymentMethodsSelection($aInt->lang("global", "none"));
 echo "</td><td class=\"fieldlabel\">";
 echo $aInt->lang("transactions", "amountin");
 echo "</td><td class=\"fieldarea\"><input type=\"text\" name=\"amountin\" size=10 value=\"";
 echo $amountin;
 echo "\"></td></tr>\n<tr><td class=\"fieldlabel\">";
 echo $aInt->lang("fields", "description");
 echo "</td><td class=\"fieldarea\"><input type=\"text\" name=\"description\" size=50 value=\"";
 echo $description;
 echo "\"></td><td class=\"fieldlabel\">";
 echo $aInt->lang("transactions", "fees");
 echo "</td><td class=\"fieldarea\"><input type=\"text\" name=\"fees\" size=10 value=\"";
 echo $fees;
 echo "\"></td></tr>\n<tr><td class=\"fieldlabel\">";
 echo $aInt->lang("fields", "invoiceid");
 echo "</td><td class=\"fieldarea\"><input type=\"text\" name=\"invoiceid\" size=8 value=\"";
Пример #4
0
echo "</td><td class=\"fieldarea\">";
echo getRegistrarsDropdownMenu($registrar);
echo "</td><td class=\"fieldlabel\">";
echo $aInt->lang("fields", "nextduedate");
echo "</td><td class=\"fieldarea\"><input type=\"hidden\" name=\"oldnextduedate\" value=\"";
echo $nextduedate;
echo "\"><input type=\"text\" name=\"nextduedate\" value=\"";
echo $nextduedate;
echo "\" class=\"datepick\"></td></tr>\n<tr><td class=\"fieldlabel\">";
echo $aInt->lang("fields", "firstpaymentamount");
echo "</td><td class=\"fieldarea\"><input type=\"text\" name=\"firstpaymentamount\" size=10 value=\"";
echo $firstpaymentamount;
echo "\"></td><td class=\"fieldlabel\">";
echo $aInt->lang("fields", "paymentmethod");
echo "</td><td class=\"fieldarea\">";
echo paymentMethodsSelection();
echo " <a href=\"clientsinvoices.php?userid=";
echo $userid;
echo "&domainid=";
echo $id;
echo "\">";
echo $aInt->lang("invoices", "viewinvoices");
echo "</a></td></tr>\n<tr><td class=\"fieldlabel\">";
echo $aInt->lang("fields", "recurringamount");
echo "</td><td class=\"fieldarea\"><input type=\"text\" name=\"recurringamount\" size=10 value=\"";
echo $recurringamount;
echo "\"> <label><input type=\"checkbox\" name=\"autorecalc\" ";
if ($autorecalcdefault) {
    echo " checked";
}
echo " /> ";
Пример #5
0
    $datecreated = fromMySQLDate($datecreated);
    $validuntil = fromMySQLDate($validuntil);
    $quotes[] = array("id" => $id, "idshort" => ltrim($id, "0"), "datecreated" => $datecreated, "subject" => $subject, "stage" => $stage, "total" => $total, "validuntil" => $validuntil);
}
$templatevars['quotes'] = $quotes;
$result = select_query("tblclientsfiles", "", array("userid" => $userid), "title", "ASC");
while ($data = mysql_fetch_array($result)) {
    $id = $data['id'];
    $title = $data['title'];
    $adminonly = $data['adminonly'];
    $dateadded = $data['dateadded'];
    $dateadded = fromMySQLDate($dateadded);
    $files[] = array("id" => $id, "title" => $title, "adminonly" => $adminonly, "date" => $dateadded);
}
$templatevars['files'] = $files;
$paymentmethoddropdown = paymentMethodsSelection("- " . $aInt->lang("global", "nochange") . " -");
$templatevars['paymentmethoddropdown'] = $paymentmethoddropdown;
$templatevars['notes'] = array();
$result = select_query("tblnotes", "tblnotes.*,(SELECT CONCAT(firstname,' ',lastname) FROM tbladmins WHERE tbladmins.id=tblnotes.adminid) AS adminuser", array("userid" => $userid, "sticky" => "1"), "modified", "DESC");
while ($data = mysql_fetch_assoc($result)) {
    $data['created'] = fromMySQLDate($data['created'], 1);
    $data['modified'] = fromMySQLDate($data['modified'], 1);
    $data['note'] = autoHyperLink(nl2br($data['note']));
    $templatevars['notes'][] = $data;
}
$addons_html = run_hook("AdminAreaClientSummaryPage", array("userid" => $userid));
$templatevars['addons_html'] = $addons_html;
$tmplinks = run_hook("AdminAreaClientSummaryActionLinks", array("userid" => $userid));
$actionlinks = array();
foreach ($tmplinks as $tmplinks2) {
    foreach ($tmplinks2 as $tmplinks3) {