$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();