예제 #1
0
                foreach ($fraudresults as $key => $value) {
                    ++$i;
                    echo "<td class=\"fieldlabel\" width=\"30%\">" . $key . "</td><td class=\"fieldarea\"";
                    if ($key == "Explanation") {
                        echo " colspan=\"3\"";
                        $i = 2;
                    } else {
                        echo " width=\"20%\"";
                    }
                    echo ">" . $value . "</td>";
                    if ($i == "2") {
                        echo "</tr><tr>";
                        $i = 0;
                        continue;
                    }
                }
                echo "</tr></table></div>";
                $jquerycode .= "\$(\"#rerunfraud\").click(function () {\n    \$(\"#rerunfraud\").html(\"<img src=\\\"../images/spinner.gif\\\" align=\\\"absmiddle\\\" /> Performing Check...\");\n    \$.post(\"orders.php\", { action: \"view\", rerunfraudcheck: \"true\", orderid: " . $id . ", token: \"" . generate_token("plain") . "\" },\n    function(data){\n        \$(\"#fraudresults\").html(data);\n        \$(\"#rerunfraud\").html(\"Update Completed\");\n    });\n    return false;\n});";
            }
        }
        echo "\n</form>\n\n";
        echo $aInt->jqueryDialog("affassign", $aInt->lang("orders", "affassign"), $aInt->lang("global", "loading"), array($aInt->lang("global", "savechanges") => "\$('#affiliatefield').html(\$('#affid option:selected').text());\$(this).dialog('close');\$.post('orders.php', { action: 'affassign', orderid: " . $id . ", affid: \$('#affid').val(), token: '" . generate_token("plain") . "' });", $aInt->lang("global", "cancelchanges") => ""));
        $jquerycode .= "\$(\"#showaffassign\").click(\n    function() {\n        \$(\"#affassign\").dialog(\"open\");\n        \$(\"#affassign\").load(\"orders.php?action=affassign\");\n        return false;\n    }\n);\n\$(\"#togglenotesbtn\").click(function() {\n\t\$(\"#notesholder\").slideToggle(\"slow\", function() {\n\t\ttoggletext = \$(\"#togglenotesbtn\").attr(\"value\");\n\t\tif(toggletext == \"Add Notes\") { \$(\"#togglenotesbtn\").fadeOut(\"fast\",function(){ \$(\"#togglenotesbtn\").attr(\"value\",\"Hide Notes\"); \$(\"#togglenotesbtn\").fadeIn(); }); }\n\t\tif(toggletext == \"Hide Notes\") { \$(\"#togglenotesbtn\").fadeOut(\"fast\",function(){ \$(\"#togglenotesbtn\").attr(\"value\",\"Add Notes\"); \$(\"#togglenotesbtn\").fadeIn(); }); }\n\t\t\$(\"#shownotesbtnholder\").slideToggle();\n\t});\n\treturn false;\n});\n\$(\"#savenotesbtn\").click(function() {\n\t\$.post(\"" . $PHP_SELF . "?action=view&id=" . $id . "\", { updatenotes: true, notes: \$('#notes').val(), token: \"" . generate_token("plain") . "\" });\n\t\$(\"#savenotesbtn\").attr(\"value\",\"Saved\");\n\treturn false;\n});\n\$(\"#notes\").keyup(function() {\n\t\$(\"#savenotesbtn\").attr(\"value\",\"Save Notes\");\n});";
        $aInt->jquerycode = $jquerycode;
        $aInt->jscode = $jscode;
    }
}
$content = ob_get_contents();
ob_end_clean();
$aInt->content = $content;
$aInt->display();
예제 #2
0
        echo "<tr><td class=\"fieldlabel\">" . $aInt->lang("gateways", "currencyconvert") . "</td><td class=\"fieldarea\"><select name=\"field[convertto]\"><option value=\"\">" . $aInt->lang("global", "none") . "</option>";
        foreach ($currenciesarray as $currencydata) {
            echo "<option value=\"" . $currencydata['id'] . "\"";
            if ($currencydata['id'] == $GatewayValues[$module]['convertto']) {
                echo " selected";
            }
            echo ">" . $currencydata['code'] . "</option>";
        }
        echo "</select></td></tr>";
    }
    echo "<tr><td class=\"fieldlabel\"></td><td class=\"fieldarea\"><input type=\"submit\" value=\"";
    echo $aInt->lang("global", "savechanges");
    echo "\">";
    if ($GatewayConfig[$module]['UsageNotes']['Value']) {
        echo " (" . $GatewayConfig[$module]['UsageNotes']['Value'] . ")";
    }
    echo "</td></tr>\n</table>\n\n<br />\n\n</form>\n\n";
    if ($count != $order) {
        update_query("tblpaymentgateways", array("order" => $count), array("setting" => "name", "gateway" => $module));
    }
    ++$count;
    $newgateways .= "<option value=\"" . $module . "\">" . $GatewayConfig[$module]['FriendlyName']['Value'] . "</option>";
}
echo $aInt->jqueryDialog("deactivategw", $aInt->lang("gateways", "deactivatemodule"), "<p>" . $aInt->lang("gateways", "deactivatemoduleinfo") . ("</p><form method=\"post\" action=\"configgateways.php?action=deactivate\" id=\"deactivategwfrm\"><input type=\"hidden\" name=\"gateway\" value=\"\" id=\"deactivategwfield\"><input type=\"hidden\" name=\"friendlygateway\" value=\"\" id=\"friendlygatewayname\"><div align=\"center\"><select id=\"newgateway\" name=\"newgateway\">" . $newgateways . "</select></div></form>"), array($aInt->lang("gateways", "deactivate") => "\$('#deactivategwfrm').submit();", $aInt->lang("supportreq", "cancel") => "\$('#newgateway').append(\"<option value='\"+\$(\"#deactivategwfield\").val()+\"'>\"+\$(\"#friendlygatewayname\").val()+\"</option>\"); \$('#deactivategw').dialog('close');"));
$jscode .= "\nfunction deactivateGW(module,friendlyname) {\n    \$(\"#deactivategwfield\").val(module);\n    \$(\"#friendlygatewayname\").val(friendlyname);\n    \$(\"#newgateway option[value='\"+module+\"']\").remove();\n    showDialog(\"deactivategw\");\n}";
$content = ob_get_contents();
ob_end_clean();
$aInt->content = $content;
$aInt->jquerycode = $jquerycode;
$aInt->jscode = $jscode;
$aInt->display();
예제 #3
0
     echo "</td><td class=\"fieldarea\"><input type=\"text\" size=\"100\" value=\"";
     echo $CONFIG['SystemSSLURL'] ? $CONFIG['SystemSSLURL'] : $CONFIG['SystemURL'];
     echo "/cart.php?a=add&pid=";
     echo $id;
     echo "&sld=whmcs&tld=.com\" readonly></td></tr>\n<tr><td class=\"fieldlabel\">";
     echo $aInt->lang("products", "productgcartlink");
     echo "</td><td class=\"fieldarea\"><input type=\"text\" size=\"100\" value=\"";
     echo $CONFIG['SystemSSLURL'] ? $CONFIG['SystemSSLURL'] : $CONFIG['SystemURL'];
     echo "/cart.php?gid=";
     echo $gid;
     echo "\" readonly></td></tr>\n</table>\n\n  </div>\n</div>\n\n<p align=\"center\"><input type=\"submit\" value=\"Save Changes\" class=\"button\"> <input type=\"button\" value=\"";
     echo $aInt->lang("products", "backtoproductlist");
     echo "\" onClick=\"window.location='configproducts.php'\" class=\"button\"></p>\n\n<input type=\"hidden\" name=\"tab\" id=\"tab\" value=\"";
     echo $_REQUEST['tab'];
     echo "\" />\n\n</form>\n\n";
     echo $aInt->jqueryDialog("quickupload", "Quick File Upload", "Loading...", array("Save" => "\$('#quickuploadfrm').submit();\n", "Cancel" => ""));
     echo $aInt->jqueryDialog("adddownloadcat", "Add Category", "Loading...", array("Save" => "\$('#adddownloadcatfrm').submit();\n", "Cancel" => ""));
 } else {
     if ($action == "create") {
         checkPermission("Create New Products/Services");
         echo "\n<h2>Add New Product</h2>\n\n<form method=\"post\" action=\"";
         echo $PHP_SELF;
         echo "?action=add\">\n<table class=\"form\" width=\"100%\" border=\"0\" cellspacing=\"2\" cellpadding=\"3\">\n<tr><td width=150 class=\"fieldlabel\">";
         echo $aInt->lang("fields", "producttype");
         echo "</td><td class=\"fieldarea\">";
         echo "<s";
         echo "elect name=\"type\"><option value=\"hostingaccount\"";
         if ($type == "hostingaccount") {
             echo " SELECTED";
         }
         echo ">";
예제 #4
0
             echo "<tr style=\"text-align:center;\"><td" . $bgcolor . ("><input type=\"checkbox\" name=\"selectedclients[]\" value=\"" . $serviceid . "\"></td><td") . $bgcolor . ("><a href=\"clientshosting.php?userid=" . $userid . "&id=" . $serviceid . "\">" . $domain . "</a></td><td") . $bgcolor . (">" . $ipaddress . "</td><td") . $bgcolor . (">" . $package . "</td><td") . $bgcolor . (">" . $status . "</td><td") . $bgcolor . ("><a href=\"clientssummary.php?userid=" . $userid . "\">" . $client . "</a></td></tr>");
         }
         if (!$serviceid) {
             echo "<tr bgcolor=\"#ffffff\"><td colspan=\"6\" align=\"center\">" . $aInt->lang("global", "norecordsfound") . "</td></tr>";
         }
     }
     echo "</table>\n</div>\n\n<p>";
     echo $aInt->lang("global", "withselected");
     echo ": <input type=\"submit\" value=\"";
     echo $aInt->lang("global", "sendmessage");
     echo "\" class=\"button\" /> <input type=\"button\" value=\"";
     echo $aInt->lang("utilitiesresolvercheck", "terminateonserver");
     echo "\" onclick=\"showDialog('terminateaccts')\" class=\"button\" style=\"color:#cc0000;font-weight:bold;\" /></p>\n\n</form>\n\n<p>";
     echo $aInt->lang("utilitiesresolvercheck", "dediipwarning");
     echo "</p>\n\n";
     echo $aInt->jqueryDialog("terminateaccts", addslashes($aInt->lang("utilitiesresolvercheck", "terminateonserver")), addslashes($aInt->lang("utilitiesresolvercheck", "delsureterminateonserver")), array("Yes" => "window.location='" . $PHP_SELF . "?step=terminate&'+\$('#resolverfrm').serialize();", "No" => ""));
 } else {
     if ($step == "terminate") {
         check_token("WHMCS.admin.default");
         echo "<h3>" . $aInt->lang("utilitiesresolvercheck", "terminatingaccts") . "</h3>\n<ul>";
         foreach ($selectedclients as $serviceid) {
             $result = select_query("tblhosting", "tblhosting.id AS serviceid,tblhosting.domain,tblhosting.domainstatus,tblhosting.userid,tblproducts.name,tblclients.firstname,tblclients.lastname,tblclients.companyname,tblproducts.servertype", array("tblhosting.id" => $serviceid), "", "", "", "tblproducts ON tblhosting.packageid=tblproducts.id INNER JOIN tblclients ON tblhosting.userid=tblclients.id");
             $data = mysql_fetch_array($result);
             $serviceid = $data['serviceid'];
             $domain = $data['domain'];
             $package = $data['name'];
             $status = $data['domainstatus'];
             $userid = $data['userid'];
             $firstname = $data['firstname'];
             $lastname = $data['lastname'];
             $companyname = $data['companyname'];
예제 #5
0
    $result = full_query($query);
    while ($data = mysql_fetch_array($result)) {
        $messid = $data['id'];
        $messagename = $data['name'];
        echo "<option style=\"background-color:#ffffff\">" . $messagename . "</option>";
    }
    if ($type != "general") {
        $result = select_query("tblemailtemplates", "", array("type" => $type, "language" => ""), "custom` ASC,`name", "ASC");
        while ($data = mysql_fetch_array($result)) {
            $messid = $data['id'];
            $messagename = $data['name'];
            echo "<option";
            if ($custom == "") {
                echo " style=\"background-color:#efefef\"";
            }
            echo ">" . $messagename . "</option>";
        }
    }
    echo "</select> <input type=\"submit\"\n            value=\"";
    echo $aInt->lang("home", "load");
    echo "\">\n    </div>\n</form>\n\n";
    echo $aInt->jqueryDialog("previewwnd", $aInt->lang("sendmessage", "preview"), "<div id=\"previewwndcontent\">" . $aInt->lang("global", "loading") . "</div>", array($aInt->lang("global", "ok") => ""), "450", "700", "");
    $jquerycode .= "\$(\"#addfileupload\").click(function () {\n    \$(\"#fileuploads\").append(\"<input type=\\\"file\\\" name=\\\"attachments[]\\\" style=\\\"width:70%;\\\" /><br />\");\n    return false;\n});\n\$(\"#emailoptoutinfo\").hide();\n\$(\"#emailoptout\").click(function(){\n    if (this.checked) {\n        \$(\"#emailoptoutinfo\").slideDown(\"slow\");\n    } else {\n        \$(\"#emailoptoutinfo\").slideUp(\"slow\");\n    }\n});";
    $jscode = "function previewMsg() {\n    if (\$(\"#email_msg1\").tinymce().isHidden()) {\n        alert(\"Cannot preview message while the rich-text editor is disabled - please re-enable and then try again\");\n    } else {\n        \$(\"#previewwnd\").dialog(\"open\");\n        jQuery.post(\"sendmessage.php\", \$(\"#sendmsgfrm\").serialize()+\"&action=preview&messagetxt=\"+\$(\"#email_msg1\").html(),\n        function(data){\n            if (data) {\n                jQuery(\"#previewwndcontent\").html(data);}\n            else {\n                jQuery(\"#previewwndcontent\").html(\"Syntax Error - Please check your email message for invalid template syntax or missing closing tags\");\n            }\n        });\n        return false;\n    }\n}";
}
$content = ob_get_contents();
ob_end_clean();
$aInt->content = $content;
$aInt->jquerycode = $jquerycode;
$aInt->jscode = $jscode;
$aInt->display();
예제 #6
0
}
echo $frmsub->dropdown("messagename", $emailarr);
echo $frmsub->submit($aInt->lang("global", "sendmessage"));
echo $frmsub->close();
echo "</td><td>";
$frmsub = new WHMCS_Form("frm4");
echo $frmsub->form("clientsemails.php?userid=" . $userid);
echo $frmsub->hidden("action", "send");
echo $frmsub->hidden("type", "product");
echo $frmsub->hidden("id", $id);
echo $frmsub->hidden("messagename", "defaultnewacc");
echo $frmsub->submit($aInt->lang("emails", "senddefaultproductwelcome"));
echo $frmsub->close();
echo "</td></tr></table>\n</div>\n\n<form method=\"post\" action=\"whois.php\" target=\"_blank\" id=\"frmWhois\">\n<input type=\"hidden\" name=\"domain\" value=\"" . $domain . "\" />\n</form>\n";
$content = ob_get_contents();
ob_end_clean();
if ($whmcs->get_req_var("ajaxupdate")) {
    $content = preg_replace('/(<form\\W[^>]*\\bmethod=(\'|"|)POST(\'|"|)\\b[^>]*>)/i', '$1' . "\n" . generate_token(), $content);
    echo $content;
    exit;
} else {
    $content = "<div id=\"servicecontent\">" . $content . "</div>";
    $content .= $aInt->jqueryDialog("modcreate", $aInt->lang("services", "confirmcommand"), $aInt->lang("services", "createsure"), array($aInt->lang("global", "yes") => "runModuleCommand('create')", $aInt->lang("global", "no") => ""), "", "450");
    $content .= $aInt->jqueryDialog("modsuspend", $aInt->lang("services", "confirmcommand"), $aInt->lang("services", "suspendsure") . "<br /><div align=\"center\">" . $aInt->lang("services", "suspendreason") . ": <input type=\"text\" id=\"suspreason\" size=\"20\" /><br /><br /><input type=\"checkbox\" id=\"suspemail\" /> " . $aInt->lang("services", "suspendsendemail") . "</div>", array($aInt->lang("global", "yes") => "runModuleCommand('suspend')", $aInt->lang("global", "no") => ""), "", "450");
    $content .= $aInt->jqueryDialog("modunsuspend", $aInt->lang("services", "confirmcommand"), $aInt->lang("services", "unsuspendsure"), array($aInt->lang("global", "yes") => "runModuleCommand('unsuspend')", $aInt->lang("global", "no") => ""), "", "450");
    $content .= $aInt->jqueryDialog("modterminate", $aInt->lang("services", "confirmcommand"), $aInt->lang("services", "terminatesure"), array($aInt->lang("global", "yes") => "runModuleCommand('terminate')", $aInt->lang("global", "no") => ""), "", "450");
    $content .= $aInt->jqueryDialog("modchangepackage", $aInt->lang("services", "confirmcommand"), $aInt->lang("services", "chgpacksure"), array($aInt->lang("global", "yes") => "runModuleCommand('changepackage')", $aInt->lang("global", "no") => ""), "", "450");
    $content .= $aInt->jqueryDialog("delete", $aInt->lang("services", "deleteproduct"), $aInt->lang("services", "proddeletesure"), array($aInt->lang("global", "yes") => "window.location='" . $PHP_SELF . "?userid=" . $userid . "&id=" . $id . "&action=delete" . generate_token("link") . "'", $aInt->lang("global", "no") => ""), "180", "450");
}
$aInt->content = $content;
$aInt->display();
예제 #7
0
    echo "');return false\"><img src=\"images/icons/delete.png\" width=\"16\" height=\"16\" border=\"0\" alt=\"";
    echo $aInt->lang("global", "delete");
    echo "\"></a></td>\n</tr>\n";
}
echo "<tr class=\"addtld\">\n<td><input type=\"text\" name=\"newtld\" size=\"6\"></td>\n<td></td>\n<td><input type=\"checkbox\" name=\"newdns\"></td>\n<td><input type=\"checkbox\" name=\"newemail\"></td>\n<td><input type=\"checkbox\" name=\"newidprot\"></td>\n<td><input type=\"checkbox\" name=\"neweppcode\"></td>\n<td>";
echo getRegistrarsDropdownMenu($autoreg, "newautoreg");
echo "</td>\n<td></td>\n<td></td>\n</tr>\n</table>\n</div>\n\n";
echo "<s";
echo "cript src=\"../includes/jscript/jqueryro.js\"></script>\n";
echo "<s";
echo "tyle>\ntd.sortcol {\n    background-image: url(\"images/updown.gif\");\n    background-repeat: no-repeat;\n    background-position: center center;\n    cursor: move;\n}\ntable.datatable .tDnD_whileDrag td,table.datatable .addtld td {\n    background-color: #eeeeee;\n}\n</style>\n\n<p align=\"center\"><input type=\"submit\" value=\"";
echo $aInt->lang("global", "savechanges");
echo "\" class=\"btn btn-primary\" /> <input type=\"button\" id=\"showduplicatetld\" value=\"";
echo $aInt->lang("domains", "duplicatetld");
echo "\" class=\"btn\" /></p>\n\n</form>\n\n";
echo $aInt->jqueryDialog("duplicatetld", $aInt->lang("domains", "duplicatetld"), $aInt->lang("global", "loading"), array($aInt->lang("global", "ok") => "\$(\"#duplicatetldform\").submit()"));
$jquerycode .= "\$(\"#showduplicatetld\").click(\n    function() {\n        \$(\"#duplicatetld\").dialog(\"open\");\n        \$(\"#duplicatetld\").load(\"configdomains.php?action=showduplicatetld\");\n        return false;\n    }\n);";
echo "\n<h2>";
echo $aInt->lang("domains", "domainaddons");
echo "</h2>\n\n<form method=\"post\" action=\"";
echo $_SERVER['PHP_SELF'];
echo "\">\n<input type=\"hidden\" name=\"action\" value=\"saveaddons\" />\n\n<div class=\"tablebg\" align=\"center\">\n<table class=\"datatable\" width=\"60%\" border=\"0\" cellspacing=\"1\" cellpadding=\"3\" id=\"domainpricing\">\n<tr><th>";
echo $aInt->lang("currencies", "currency");
echo "</th><th>";
echo $aInt->lang("domains", "dnsmanagement");
echo "</th><th>";
echo $aInt->lang("domains", "emailforwarding");
echo "</th><th>";
echo $aInt->lang("domains", "idprotection");
echo "</th></tr>\n";
$result = select_query("tblcurrencies", "id,code", "", "code", "ASC");
예제 #8
0
$promoid = $domain_data['promoid'];
$registrationdate = $domain_data['registrationdate'];
$registrationperiod = $domain_data['registrationperiod'];
$domainstatus = $domain_data['status'];
$additionalnotes = $domain_data['additionalnotes'];
$dnsmanagement = $domain_data['dnsmanagement'];
$emailforwarding = $domain_data['emailforwarding'];
$idprotection = $domain_data['idprotection'];
$donotrenew = $domain_data['donotrenew'];
if (!$did) {
    $aInt->gracefulExit($aInt->lang("domains", "domainidnotfound"));
}
$expirydate = fromMySQLDate($expirydate);
$nextduedate = fromMySQLDate($nextduedate);
$regdate = fromMySQLDate($registrationdate);
echo $aInt->jqueryDialog("renew", $aInt->lang("domains", "renewdomain"), $aInt->lang("domains", "renewdomainq"), array($aInt->lang("global", "yes") => "window.location='" . $PHP_SELF . "?userid=" . $userid . "&id=" . $id . "&regaction=renew" . generate_token("link") . "'", $aInt->lang("global", "no") => ""));
echo $aInt->jqueryDialog("getepp", $aInt->lang("domains", "requestepp"), $aInt->lang("domains", "requesteppq"), array($aInt->lang("global", "yes") => "window.location='" . $PHP_SELF . "?userid=" . $userid . "&id=" . $id . "&regaction=eppcode" . generate_token("link") . "'", $aInt->lang("global", "no") => ""));
echo $aInt->jqueryDialog("reqdelete", $aInt->lang("domains", "requestdel"), $aInt->lang("domains", "requestdelq"), array($aInt->lang("global", "yes") => "window.location='" . $PHP_SELF . "?userid=" . $userid . "&id=" . $id . "&regaction=reqdelete" . generate_token("link") . "'", $aInt->lang("global", "no") => ""));
echo $aInt->jqueryDialog("delete", $aInt->lang("domains", "delete"), $aInt->lang("domains", "deleteq"), array($aInt->lang("global", "yes") => "window.location='" . $PHP_SELF . "?userid=" . $userid . "&id=" . $id . "&action=delete" . generate_token("link") . "'", $aInt->lang("global", "no") => ""));
echo $aInt->jqueryDialog("reldomain", $aInt->lang("domains", "releasedomain"), $aInt->lang("domains", "releasedomainq") . "<br /><br />" . $aInt->lang("domains", "transfertag") . ": <input type=\"text\" id=\"transtag\" size=\"20\" />", array($aInt->lang("global", "submit") => "window.location='" . $PHP_SELF . "?userid=" . $userid . "&id=" . $id . "&regaction=release" . generate_token("link") . "&transtag='+\$(\"#transtag\").val();", $aInt->lang("global", "cancel") => ""));
echo $aInt->jqueryDialog("idprotectdomain", $aInt->lang("domains", "idprotection"), $aInt->lang("domains", "idprotectionq"), array($aInt->lang("global", "yes") => "window.location='" . $PHP_SELF . "?userid=" . $userid . "&id=" . $id . "&regaction=idtoggle" . generate_token("link") . "'", $aInt->lang("global", "no") => ""));
if ($conf) {
    $ns1 = $_SESSION['domainsavetemp']['ns1'];
    $ns2 = $_SESSION['domainsavetemp']['ns2'];
    $ns3 = $_SESSION['domainsavetemp']['ns3'];
    $ns4 = $_SESSION['domainsavetemp']['ns4'];
    $ns5 = $_SESSION['domainsavetemp']['ns5'];
    $oldns1 = $_SESSION['domainsavetemp']['oldns1'];
    $oldns2 = $_SESSION['domainsavetemp']['oldns2'];
    $oldns3 = $_SESSION['domainsavetemp']['oldns3'];
    $oldns4 = $_SESSION['domainsavetemp']['oldns4'];
예제 #9
0
파일: index.php 프로젝트: billyprice1/whmcs
        if (is_file($hooksdir . $hookfile) && $hookfile != "index.php") {
            $extension = explode(".", $hookfile);
            $extension = end($extension);
            if ($extension == "php") {
                include $hooksdir . $hookfile;
            }
        }
    }
}
closedir($dh);
$templatevars['widgets'] = load_admin_home_widgets();
if (checkPermission("View Income Totals", true)) {
    $templatevars['viewincometotals'] = true;
    $jquerycode .= "jQuery.post(\"index.php\", { getincome: 1, token: \"" . generate_token("plain") . "\" },\n    function(data){\n        jQuery(\"#incometotals\").html(data);\n    });";
}
$invoicedialog = $aInt->jqueryDialog("geninvoices", $aInt->lang("invoices", "geninvoices"), $aInt->lang("invoices", "geninvoicessendemails"), array($aInt->lang("global", "yes") => "window.location='index.php?generateinvoices=true" . generate_token("link") . "'", $aInt->lang("global", "no") => "window.location='index.php?generateinvoices=true&noemails=true" . generate_token("link") . "'"));
$cccapturedialog = $aInt->jqueryDialog("cccapture", $aInt->lang("invoices", "attemptcccaptures"), $aInt->lang("invoices", "attemptcccapturessure"), array($aInt->lang("global", "yes") => "window.location='index.php?attemptccpayments=true" . generate_token("link") . "'", $aInt->lang("global", "no") => ""));
$addons_html = run_hook("AdminHomepage", array());
$templatevars['addons_html'] = $addons_html;
if (get_query_val("tbladmins", "roleid", array("id" => (int) $_SESSION['adminid'])) == 1) {
    $infotoggle = unserialize($whmcs->get_config("ToggleInfoPopup"));
    if (!is_array($infotoggle)) {
        $infotoggle = array();
    }
    $showdialog = true;
    if (isset($infotoggle[$_SESSION['adminid']])) {
        $dismissdate = $infotoggle[$_SESSION['adminid']];
        $lastupdate = curlCall("http://api.mtimer.cn/whmcs/popup/popup.php", "lastupdate=1", array("CURLOPT_TIMEOUT" => "5"));
        if ($dismissdate < $lastupdate) {
            unset($infotoggle[$_SESSION['adminid']]);
            $whmcs->set_config("ToggleInfoPopup", serialize($infotoggle));
예제 #10
0
echo "</td><td class=\"fieldarea\"><input type=\"text\" class=\"regdomain\" name=\"regdomain[0]\" size=\"40\" id=\"regdomain0\" onkeyup=\"updatesummary()\" /></td></tr>\n<tr class=\"hiddenrow\" id=\"domrowrp0\" style=\"display:none;\"><td class=\"fieldlabel\">";
echo $aInt->lang("domains", "regperiod");
echo "</td><td class=\"fieldarea\">";
echo "<s";
echo "elect id=\"regperiod1\" name=\"regperiod[0]\" onchange=\"updatesummary()\">";
echo $regperiods;
echo "</select></td></tr>\n<tr class=\"hiddentransrow\" id=\"domrowep0\" style=\"display:none;\"><td class=\"fieldlabel\">";
echo $aInt->lang("domains", "eppcode");
echo "</td><td class=\"fieldarea\"><input type=\"text\" name=\"eppcode[0]\" size=\"20\" /></td></tr>\n<tr class=\"hiddenrow\" id=\"domrowad0\" style=\"display:none;\"><td class=\"fieldlabel\">";
echo $aInt->lang("domains", "addons");
echo "</td><td class=\"fieldarea\"><label><input type=\"checkbox\" name=\"dnsmanagement[0]\" onclick=\"updatesummary()\" /> ";
echo $aInt->lang("domains", "dnsmanagement");
echo "</label> <label><input type=\"checkbox\" name=\"emailforwarding[0]\" onclick=\"updatesummary()\" /> ";
echo $aInt->lang("domains", "emailforwarding");
echo "</label> <label><input type=\"checkbox\" name=\"idprotection[0]\" onclick=\"updatesummary()\" /> ";
echo $aInt->lang("domains", "idprotection");
echo "</label></td></tr>\n<tr id=\"domainaddlfieldserase0\" style=\"display:none;\"></tr>\n</table>\n\n</div>\n\n<p style=\"padding-left:20px;\"><a href=\"#\" class=\"adddomain\"><img src=\"images/icons/add.png\" border=\"0\" align=\"absmiddle\" /> ";
echo $aInt->lang("orders", "anotherdomain");
echo "</a></p>\n\n</td><td valign=\"top\">\n\n<div id=\"ordersumm\" style=\"padding:15px;\"></div>\n\n<div class=\"ordersummarytitle\"><input type=\"submit\" value=\"";
echo $aInt->lang("orders", "submit");
echo " &raquo;\" class=\"btn-primary\" style=\"font-size:20px;padding:12px 30px ;\" /></div>\n\n</td></tr></table>\n\n</form>\n\n";
echo "<s";
echo "cript> updatesummary(); </script>\n\n";
echo $aInt->jqueryDialog("createpromo", $aInt->lang("orders", "createpromo"), "<form id=\"createpromofrm\">\n" . generate_token("form") . "\n<table class=\"form\" width=\"100%\" border=\"0\" cellspacing=\"2\" cellpadding=\"3\">\n<tr><td class=\"fieldlabel\" width=\"110\">" . $aInt->lang("fields", "promocode") . "</td><td class=\"fieldarea\"><input type=\"text\" name=\"code\" id=\"promocode\" /></td></tr>\n<tr><td class=\"fieldlabel\">" . $aInt->lang("fields", "type") . "</td><td class=\"fieldarea\"><select name=\"type\">\n<option value=\"Percentage\">" . $aInt->lang("promos", "percentage") . "</option>\n<option value=\"Fixed Amount\">" . $aInt->lang("promos", "fixedamount") . "</option>\n<option value=\"Price Override\">" . $aInt->lang("promos", "priceoverride") . "</option>\n<option value=\"Free Setup\">" . $aInt->lang("promos", "freesetup") . "</option>\n</select></td></tr>\n<tr><td class=\"fieldlabel\">" . $aInt->lang("promos", "value") . "</td><td class=\"fieldarea\"><input type=\"text\" name=\"pvalue\" size=\"10\" /></td></tr>\n<tr><td class=\"fieldlabel\">" . $aInt->lang("promos", "recurring") . "</td><td class=\"fieldarea\"><input type=\"checkbox\" name=\"recurring\" id=\"recurring\" value=\"1\" /> <label for=\"recurring\">" . $aInt->lang("promos", "recurenable") . "</label> <input type=\"text\" name=\"recurfor\" size=\"3\" value=\"0\" /> " . $aInt->lang("promos", "recurenable2") . "</td></tr>\n</table>\n<p>* " . $aInt->lang("orders", "createpromoinfo") . "</p>\n</form>", array($aInt->lang("global", "ok") => "savePromo()", $aInt->lang("global", "cancel") => ""), "", "500", "");
$jscode .= "function savePromo() {\n    jQuery.post(\"ordersadd.php\", \"action=createpromo&\"+jQuery(\"#createpromofrm\").serialize(),\n    function(data){\n        if (data.substr(0,1)==\"<\") {\n            \$(\"#promodd\").append(data);\n            \$(\"#promodd\").val(\$(\"#promocode\").val());\n            \$(\"#createpromo\").dialog(\"close\");\n        } else {\n            alert(data);\n        }\n    });\n}";
$content = ob_get_contents();
ob_end_clean();
$aInt->content = $content;
$aInt->jquerycode = $jquerycode;
$aInt->jscode = $jscode;
$aInt->display();
예제 #11
0
                    $password = generateClientPW($password, "", true);
                }
                update_query("tblcontacts", array("password" => $password), array("id" => $id));
            }
        }
        global $whmcs;
        $token_manager =& getTokenManager();
        $token_manager->processAdminHTMLSave($whmcs);
        redir("success=true&tab=" . $tab);
        exit;
    }
}
releaseSession();
ob_start();
$jquerycode .= "\$(\"#removewhitelistedip\").click(function () {\n    var removeip = \$('#whitelistedips option:selected;').text();\n    \$('#whitelistedips option:selected').remove();\n    \$.post(\"configgeneral.php\", { action: \"deletewhitelistip\", removeip: removeip, token: '" . generate_token("plain") . "'});\n    return false;\n});\nfunction addwhitelistedip(ipaddress,note) {\n    \$('#whitelistedips').append('<option>'+ipaddress+' - '+note+'</option>');\n    \$.post(\"configgeneral.php\", { action: \"addwhitelistip\", ipaddress: ipaddress, notes: note, token: '" . generate_token("plain") . "'});\n    \$('#addwhitelistip').dialog('close');\n    return false;\n};\n\$(\"#removeapiip\").click(function () {\n    var removeip = \$('#apiallowedips option:selected;').text();\n    \$('#apiallowedips option:selected').remove();\n    \$.post(\"configgeneral.php\", { action: \"deleteapiip\", removeip: removeip, token: '" . generate_token("plain") . "'});\n    return false;\n});\nfunction addapiip(ipaddress,note) {\n    \$('#apiallowedips').append('<option>'+ipaddress+' - '+note+'</option>');\n    \$.post(\"configgeneral.php\", { action: \"addapiip\", ipaddress: ipaddress, notes: note, token: '" . generate_token("plain") . "'});\n    \$('#addapiip').dialog('close');\n    return false;\n};\n";
echo $aInt->jqueryDialog("addwhitelistip", $aInt->lang("general", "addwhitelistedip"), "<table><tr><td>" . $aInt->lang("fields", "ipaddress") . ":</td><td><input type=\"text\" id=\"ipaddress\" size=\"20\" /></td></tr><tr><td>" . $aInt->lang("fields", "reason") . ":</td><td><input type=\"text\" id=\"notes\" size=\"40\" /></td></tr></table>", array($aInt->lang("general", "addip") => "addwhitelistedip(\$(\"#ipaddress\").val(),\$(\"#notes\").val());", $aInt->lang("global", "cancel") => ""), "", "350", "");
echo $aInt->jqueryDialog("addapiip", $aInt->lang("general", "addwhitelistedip"), "<table><tr><td>" . $aInt->lang("fields", "ipaddress") . ":</td><td><input type=\"text\" id=\"ipaddress2\" size=\"20\" /></td></tr><tr><td>" . $aInt->lang("fields", "notes") . ":</td><td><input type=\"text\" id=\"notes2\" size=\"40\" /></td></tr></table>", array($aInt->lang("general", "addip") => "addapiip(\$(\"#ipaddress2\").val(),\$(\"#notes2\").val());", $aInt->lang("global", "cancel") => ""), "", "350", "");
if ($success) {
    infoBox($aInt->lang("general", "changesuccess"), $aInt->lang("general", "changesuccessinfo"));
    echo $infobox;
}
$result = select_query("tblconfiguration", "", "");
while ($data = mysql_fetch_array($result)) {
    $setting = $data['setting'];
    $value = $data['value'];
    $CONFIG["" . $setting] = "" . $value;
}
echo $aInt->Tabs(array($aInt->lang("general", "tabgeneral"), $aInt->lang("general", "tablocalisation"), $aInt->lang("general", "tabordering"), $aInt->lang("general", "tabdomains"), $aInt->lang("general", "tabmail"), $aInt->lang("general", "tabsupport"), $aInt->lang("general", "tabinvoices"), $aInt->lang("general", "tabcredit"), $aInt->lang("general", "tabaffiliates"), $aInt->lang("general", "tabsecurity"), $aInt->lang("general", "tabsocial"), $aInt->lang("general", "tabother")));
echo "\n<form method=\"post\" action=\"";
echo $PHP_SELF;
echo "?action=save\" name=\"configfrm\">\n\n<!-- General -->\n<div id=\"tab0box\" class=\"tabbox\">\n  <div id=\"tab_content\">\n\n<table class=\"form\" width=\"100%\" border=\"0\" cellspacing=\"2\" cellpadding=\"3\">\n<tr><td class=\"fieldlabel\">";
예제 #12
0
$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) {
        $actionlinks[] = $tmplinks3;
    }
}
$templatevars['customactionlinks'] = $actionlinks;
$templatevars['tokenvar'] = generate_token("link");
$templatevars['csrfToken'] = generate_token("plain");
$aInt->templatevars = $templatevars;
echo $aInt->getTemplate("clientssummary");
echo $aInt->jqueryDialog("geninvoices", $aInt->lang("invoices", "geninvoices"), $aInt->lang("invoices", "geninvoicessendemails"), array($aInt->lang("global", "yes") => "window.location='" . $PHP_SELF . "?userid=" . $userid . "&generateinvoices=true" . generate_token("link") . "'", $aInt->lang("global", "no") => "window.location='" . $PHP_SELF . "?userid=" . $userid . "&generateinvoices=true&noemails=true" . generate_token("link") . "'"));
echo $aInt->jqueryDialog("addfunds", $aInt->lang("clientsummary", "createaddfunds"), $aInt->lang("clientsummary", "createaddfundsdesc") . "<br /><div align=\"center\">" . $aInt->lang("fields", "amount") . ": <input type=\"text\" id=\"addfundsamt\" value=\"" . $CONFIG['AddFundsMinimum'] . "\" size=\"10\" /></div>", array($aInt->lang("global", "submit") => "window.location='" . $PHP_SELF . "?userid=" . $userid . "&action=addfunds" . generate_token("link") . "&addfundsamt='+\$('#addfundsamt').val()", $aInt->lang("global", "cancel") => ""));
$content = ob_get_contents();
ob_end_clean();
$aInt->content = $content;
$aInt->jquerycode = $jquerycode;
$aInt->jscode = $jscode;
$aInt->display();
예제 #13
0
        if ($admin && $rating) {
            $i = 1;
            while ($i <= 5) {
                $ratingstars .= $i <= $rating ? "<img src=\"../images/rating_pos.png\" align=\"absmiddle\">" : "<img src=\"../images/rating_neg.png\" align=\"absmiddle\">";
                ++$i;
            }
        }
        $replies[] = array("id" => $replyid, "admin" => $admin, "userid" => $userid, "contactid" => $contactid, "clientname" => $name, "clientemail" => $email, "date" => $date, "friendlydate" => $friendlydate, "friendlytime" => $friendlytime, "message" => $message, "attachments" => $attachments, "numattachments" => count($attachments), "rating" => $ratingstars);
    }
    if ($CONFIG['SupportTicketOrder'] == "DESC") {
        krsort($replies);
    }
    $smartyvalues['replies'] = $replies;
    $smartyvalues['repliescount'] = count($replies);
    $smartyvalues['thumbnails'] = $CONFIG['AttachmentThumbnails'] ? true : false;
    $splitticketdialog = $aInt->jqueryDialog("splitticket", $aInt->lang("support", "splitticketdialogtitle"), "<p>" . $aInt->lang("support", "splitticketdialoginfo") . "</p><table><tr><td align=\"right\" width=\"120\">" . $aInt->lang("support", "department") . (":</td><td><select id=\"splitdeptidx\">" . $departmentshtml . "</select></td></tr><tr><td align=\"right\">") . $aInt->lang("support", "splitticketdialognewticketname") . (":</td><td><input type=\"text\" id=\"splitsubjectx\" size=\"35\" value=\"" . $title . "\" /></td></tr><tr><td align=\"right\">") . $aInt->lang("support", "priority") . ":</td><td><select id=\"splitpriorityx\"><option value=\"High\"" . ($urgency == "High" ? " selected" : "") . ">High</option><option value=\"Medium\"" . ($urgency == "Medium" ? " selected" : "") . ">Medium</option><option value=\"Low\"" . ($urgency == "Low" ? " selected" : "") . ">Low</option></select></td></tr><tr><td align=\"right\">" . $aInt->lang("support", "splitticketdialognotifyclient") . ":</td><td><label><input type=\"checkbox\" id=\"splitnotifyclientx\" /> " . $aInt->lang("support", "splitticketdialognotifyclientinfo") . "</label></td></tr></table>", array($aInt->lang("global", "submit") => "\$('#splitdeptid').val(\$('#splitdeptidx').val());\$('#splitsubject').val(\$('#splitsubjectx').val());\$('#splitpriority').val(\$('#splitpriorityx').val());\$('#splitnotifyclient').val(\$('#splitnotifyclientx').attr('checked'));\$('#ticketreplies').submit();", $aInt->lang("supportreq", "cancel") => ""), "", "400", "");
    $smartyvalues['splitticketdialog'] = $splitticketdialog;
} else {
    if ($action == "open") {
        $result = select_query("tbladmins", "signature", array("id" => $_SESSION['adminid']));
        $data = mysql_fetch_array($result);
        $signature = $data['signature'];
        if ($errormessage != "") {
            infoBox($aInt->lang("global", "validationerror"), $errormessage);
            echo $infobox;
        }
        $jquerycode = "(function() {\n    var fieldSelection = {\n\t    addToReply: function() {\n\t\t    var e = this.jquery ? this[0] : this;\n\t\t    var text = arguments[0] || '';\n\t\t    return (\n\t\t\t    ('selectionStart' in e && function() {\n                    if (e.value==\"\\n\\n" . str_replace("\r\n", "\n", $signature) . "\") {\n                        e.selectionStart=0;\n                        e.selectionEnd=0;\n                    }\n                    e.value = e.value.substr(0, e.selectionStart) + text + e.value.substr(e.selectionEnd, e.value.length);\n                    e.focus();\n\t\t\t\t\treturn this;\n\t\t\t\t}) ||\n\t\t\t\t(document.selection && function() {\n\t\t\t\t\te.focus();\n\t\t\t\t\tdocument.selection.createRange().text = text;\n\t\t\t\t\treturn this;\n\t\t\t\t}) ||\n\t\t\t\tfunction() {\n\t\t\t\t\te.value += text;\n\t\t\t\t\treturn this;\n\t\t\t\t}\n\t\t\t)();\n\t\t}\n\t};\n\tjQuery.each(fieldSelection, function(i) { jQuery.fn[i] = this; });\n    })();\n\$(\"#addfileupload\").click(function () {\n    \$(\"#fileuploads\").append(\"<input type=\\\"file\\\" name=\\\"attachments[]\\\" size=\\\"85\\\"><br />\");\n    return false;\n});\n\$(\"#clientsearchval\").keyup(function () {\n\tvar ticketuseridsearchlength = \$(\"#clientsearchval\").val().length;\n\tif (ticketuseridsearchlength>2) {\n\t\$.post(\"search.php\", { ticketclientsearch: 1, value: \$(\"#clientsearchval\").val() },\n\t    function(data){\n            if (data) {\n                \$(\"#ticketclientsearchresults\").html(data);\n                \$(\"#ticketclientsearchresults\").slideDown(\"slow\");\n                \$(\"#clientsearchcancel\").fadeIn();\n            }\n        });\n\t}\n});\n\$(\"#clientsearchcancel\").click(function () {\n    \$(\"#ticketclientsearchresults\").slideUp(\"slow\");\n    \$(\"#clientsearchcancel\").fadeOut();\n});\n\$(\"#predefq\").keyup(function () {\n    var intellisearchlength = \$(\"#predefq\").val().length;\n    if (intellisearchlength>2) {\n    \$.post(\"supporttickets.php\", { action: \"loadpredefinedreplies\", predefq: \$(\"#predefq\").val(), token: \"" . generate_token("plain") . "\" },\n        function(data){\n            \$(\"#prerepliescontent\").html(data);\n        });\n    }\n});\n";
        $aInt->jquerycode = $jquerycode;
        $jscode = "function insertKBLink(url) {\n    \$(\"#replymessage\").addToReply(url);\n}\nfunction selectpredefcat(catid) {\n    \$.post(\"supporttickets.php\", { action: \"loadpredefinedreplies\", cat: catid, token: \"" . generate_token("plain") . "\" },\n    function(data){\n        \$(\"#prerepliescontent\").html(data);\n    });\n}\nfunction loadpredef(catid) {\n    \$(\"#prerepliescontainer\").slideToggle();\n    \$(\"#prerepliescontent\").html('<img src=\"images/loading.gif\" align=\"top\" /> " . $aInt->lang("global", "loading") . "');\n    \$.post(\"supporttickets.php\", { action: \"loadpredefinedreplies\", cat: catid, token: \"" . generate_token("plain") . "\" },\n    function(data){\n        \$(\"#prerepliescontent\").html(data);\n    });\n}\nfunction selectpredefreply(artid) {\n    \$.post(\"supporttickets.php\", { action: \"getpredefinedreply\", id: artid, token: \"" . generate_token("plain") . "\" },\n    function(data){\n        \$(\"#replymessage\").addToReply(data);\n    });\n    \$(\"#prerepliescontainer\").slideToggle();\n}\nfunction searchselectclient(userid,name,email) {\n    \$(\"#clientsearchval\").val(\"\");\n    \$(\"#clientinput\").val(userid);\n    \$(\"#name\").val(name);\n    \$(\"#email\").val(email);\n\t\$(\"#ticketclientsearchresults\").slideUp(\"slow\");\n    \$(\"#clientsearchcancel\").fadeOut();\n    \$.post(\"supporttickets.php\", { action: \"getcontacts\", userid: userid, token: \"" . generate_token("plain") . "\" },\n    function(data){\n        if (data) {\n            \$(\"#contacthtml\").html(data);\n            \$(\"#contactrow\").show();\n        } else {\n            \$(\"#contactrow\").hide();\n        }\n    });\n}";
        $aInt->jscode = $jscode;
        if ($userid) {
예제 #14
0
            echo "\" size=\"10\" /> ";
            echo $aInt->lang("bundles", "displaypricedesc");
            echo "</td></tr>\n<tr class=\"prodfields\"";
            if (!$showgroup) {
                echo " style=\"display:none;\"";
            }
            echo "><td class=\"fieldlabel\">";
            echo $aInt->lang("products", "sortorder");
            echo "</td><td class=\"fieldarea\"><input type=\"text\" name=\"sortorder\" value=\"";
            echo $sortorder;
            echo "\" size=\"5\" /> ";
            echo $aInt->lang("bundles", "sortorderdesc");
            echo "</td></tr>\n";
            if ($id) {
                echo "<tr><td class=\"fieldlabel\">" . $aInt->lang("bundles", "orderlink") . "</td><td class=\"fieldarea\"><input type=\"text\" name=\"orderlink\" size=\"100\" value=\"" . $url . "/cart.php?a=add&bid=" . $id . "\" /></td></tr>";
            }
            echo "</table>\n\n<p align=\"center\"><input type=\"submit\" value=\"";
            echo $aInt->lang("global", "savechanges");
            echo "\" class=\"button\"></p>\n\n</form>\n\n";
            echo $aInt->jqueryDialog("prodconfig", $aInt->lang("bundles", "configureproduct"), "<img src=\"images/loading.gif\" /> " . $aInt->lang("global", "loading", 1), array($aInt->lang("global", "savechanges") => "\$('#conffrm').submit()", $aInt->lang("global", "cancelchanges") => ""), "400", "600", "");
            $jquerycode .= "\$(\".bundleitems\").sortable({\n    stop: function(event, ui) { saveBundleOrder() }\n});";
            $jscode .= "function manageitem(id,i) {\n    \$(\"#prodconfig\").html(\"<img src=\\\"images/loading.gif\\\" /> " . $aInt->lang("global", "loading", 1) . "\");\n    \$(\"#prodconfig\").dialog(\"open\");\n    \$(\"#prodconfig\").load(\"configbundles.php?action=confproduct&id=\"+id+\"&i=\"+i+\"" . generate_token("link") . "\");\n}\nfunction deleteitem(id,i) {\n    if (confirm(\"" . $aInt->lang("bundles", "removeitemconfirm") . "\")) {\n        window.location='" . $_SERVER['PHP_SELF'] . "?action=deleteitem&id='+id+'&i='+i+'" . generate_token("link") . "';\n    }\n}\nfunction saveBundleOrder() {\n    var order = \$(\".bundleitems\").sortable(\"toArray\");\n    for (var i = 0; i < order.length; i++) {\n        \$(\"#num\"+order[i]).html(i+1);\n    }\n    \$.post(\"configbundles.php\", { saveorder: \"1\", id: \"" . $id . "\", orderdata: order, token: \"" . generate_token("plain") . "\" });\n}\nfunction toggleProdFields() {\n    \$(\".prodfields\").fadeToggle();\n}\n";
        }
    }
}
$content = ob_get_contents();
ob_end_clean();
$aInt->content = $content;
$aInt->jquerycode = $jquerycode;
$aInt->jscode = $jscode;
$aInt->display();
예제 #15
0
        echo "';\"";
        if (!$id) {
            echo " disabled=\"true\"";
        }
        echo " /> <input type=\"button\" value=\"Email as PDF\" class=\"button\" onclick=\"window.location='quotes.php?action=sendpdf&id=";
        echo $id . generate_token("link");
        echo "';\"";
        if (!$id) {
            echo " disabled=\"true\"";
        }
        echo " /> <input type=\"button\" value=\"Convert to Invoice\" onClick=\"showDialog('quoteconvert')\"";
        if (!$id) {
            echo " disabled=\"true\"";
        }
        echo " /> <input type=\"button\" value=\"Delete\" class=\"btn warn\" onclick=\"doDelete('";
        echo $id;
        echo "');\"";
        if (!$id) {
            echo " disabled=\"true\"";
        }
        echo " /></p>\n\n</form>\n\n";
        $content = "<form id=\"convertquotefrm\">\n" . generate_token("form") . "\n<label><input type=\"radio\" name=\"invoicetype\" value=\"single\" onclick=\"selectSingle()\" checked /> Generate a single invoice for the entire amount</label><br />\n<div id=\"singleoptions\" align=\"center\">\n<br />\nDue Date of Invoice: <input type=\"text\" name=\"invoiceduedate\" value=\"" . getTodaysDate() . "\" class=\"datepick\" />\n<br /><br />\n</div>\n<label><input type=\"radio\" name=\"invoicetype\" value=\"deposit\" onclick=\"selectDeposit()\" /> Split into 2 invoices - a deposit and final payment</label><br />\n<div id=\"depositoptions\" align=\"center\" style=\"display:none;\">\n<br />\nEnter Deposit Percentage: <input type=\"text\" name=\"depositpercent\" value=\"50\" size=\"5\" />%<br />\nDue Date of Deposit: <input type=\"text\" name=\"depositduedate\" value=\"" . getTodaysDate() . "\" class=\"datepick\" /><br />\nDue Date of Final Payment: <input type=\"text\" name=\"finalduedate\" value=\"" . fromMySQLDate(date("Y-m-d", mktime(0, 0, 0, date("m") + 1, date("d"), date("Y")))) . "\" class=\"datepick\" />\n</div>\n<br />\n<label><input type=\"checkbox\" name=\"sendemail\" checked /> Send Invoice Notification Email</label>\n</form>";
        echo $aInt->jqueryDialog("quoteconvert", "Convert to Invoice", $content, array("Submit" => "window.location='" . $PHP_SELF . "?action=convert&id=" . $id . "&'+\$('#convertquotefrm').serialize();"), "", "500", "");
    }
}
$content = ob_get_contents();
ob_end_clean();
$aInt->content = $content;
$aInt->jquerycode = $jquerycode;
$aInt->jscode = $jscode;
$aInt->display();