本文整理汇总了PHP中infoBox函数的典型用法代码示例。如果您正苦于以下问题:PHP infoBox函数的具体用法?PHP infoBox怎么用?PHP infoBox使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了infoBox函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: alertBox
$rows = @mysql_num_rows($tmp);
$flag = 1;
if ($rows >= 1 || strlen($_POST['lavida_id']) > 20 || strlen($_POST['lavida_id']) < 3) {
alertBox("<strong>Error!</strong> User ID '{$_POST['lavida_id']}' is invalid!");
} else {
if ($_POST['lavida_pw'] != $_POST['lavida_pw_confirm']) {
alertBox("<strong>Error!</strong> Check your password!");
} else {
if (!is_valid_user_name($user_id)) {
alertBox("<strong>Error!</strong> User ID '{$_POST['lavida_id']}' is invalid!");
} else {
$pw = md5($_POST['lavida_pw']);
$sql = "insert into `users` (`user_id`,`password`,`ip`,`accesstime`) values('{$_POST['lavida_id']}','{$pw}','{$_SERVER['REMOTE_ADDR']}',now())";
$tmp = @mysql_query($sql);
if ($tmp) {
infoBox("<strong>Success</strong> Register Complete!");
} else {
alertBox("<strong>Error</strong> Contact Administrator!");
}
}
}
}
} else {
?>
<form action="" method="post" class="form-horizontal" id="myform">
<legend>Welcome to Lavida Online Judge!</legend>
<input type="hidden" name="send" value="ok">
<div class="control-group">
<label class="control-label" for="lavida_id">ID</label>
<div class="controls">
<input type="text" name="lavida_id" id="lavida_id" tabindex="1">
示例2: infoBox
} else {
if (!trim($email) && !$cccheck) {
infoBox($aInt->lang("global", "validationerror"), $aInt->lang("clients", "invalidemail"), "error");
} else {
if (!$cccheck && trim($email)) {
$emaildomain = explode("@", $email, 2);
$emaildomain = $emaildomain[1];
if (!preg_match('/^([a-zA-Z0-9&\'.])+([\\.a-zA-Z0-9+_-])*@([a-zA-Z0-9_-])+(\\.[a-zA-Z0-9_-]+)*\\.([a-zA-Z]{2,6})$/', $email)) {
$errormessage .= "<li>" . $_LANG['clientareaerroremailinvalid'];
infoBox($aInt->lang("global", "validationerror"), $aInt->lang("clients", "invalidemail"), "error");
} else {
$query = "subaccount=1 AND email='" . mysql_real_escape_string($email) . "'";
$result = select_query("tblcontacts", "COUNT(*)", $query);
$data = mysql_fetch_array($result);
if ($data[0]) {
infoBox($aInt->lang("clients", "duplicateemail"), $aInt->lang("clients", "duplicateemailexp"), "error");
}
}
}
if (!$infobox) {
$_SESSION['currency'] = $currency;
$userid = addClient($firstname, $lastname, $companyname, $email, $address1, $address2, $city, $state, $postcode, $country, $phonenumber, $password, $securityqid, $securityqans, $sendemail, array("notes" => $notes, "status" => $status, "credit" => $credit, "taxexempt" => $taxexempt, "latefeeoveride" => $latefeeoveride, "overideduenotices" => $overideduenotices, "language" => $language, "billingcid" => $billingcid, "lastlogin" => "00000000000000", "groupid" => $groupid, "separateinvoices" => $separateinvoices, "disableautocc" => $disableautocc, "defaultgateway" => $paymentmethod));
unset($_SESSION['uid']);
unset($_SESSION['upw']);
redir("userid=" . $userid, "clientssummary.php");
}
}
}
}
releaseSession();
ob_start();
示例3: select_query
}
$result = select_query("tblcurrencies", "id,code", "", "code", "ASC");
$i = 0;
while ($currenciesarray[$i] = mysql_fetch_assoc($result)) {
++$i;
}
array_pop($currenciesarray);
ob_start();
if ($activated) {
infoBox($aInt->lang("global", "success"), $aInt->lang("gateways", "activatesuccess"));
}
if ($deactivated) {
infoBox($aInt->lang("global", "success"), $aInt->lang("gateways", "deactivatesuccess"));
}
if ($updated) {
infoBox($aInt->lang("global", "success"), $aInt->lang("gateways", "savesuccess"));
}
echo $infobox;
echo "<p>" . $aInt->lang("gateways", "intro") . " <a href=\"http://docs.whmcs.com/Creating_Modules\" target=\"_blank\">http://docs.whmcs.com/Creating_Modules</a></p>";
echo "\n<p>";
echo "<form method=\"post\" action=\"" . $PHP_SELF . "\"><input type=\"hidden\" name=\"action\" value=\"activate\"><b>" . $aInt->lang("gateways", "activatemodule") . ":</b> ";
if (0 < count($DisabledGateways)) {
$AlphaDisabled = array();
foreach ($DisabledGateways as $modulename) {
$AlphaDisabled[$GatewayConfig[$modulename]['FriendlyName']['Value']] = $modulename;
}
ksort($AlphaDisabled);
echo "<select name=\"gateway\">";
foreach ($AlphaDisabled as $displayname => $modulename) {
echo "<option value=\"" . $modulename . "\">" . $displayname . "</option>";
}
示例4: explode
$affiliatepaytype = $data['affiliatepaytype'];
$affiliateonetime = $data['affiliateonetime'];
$downloads = $data['downloads'];
$retired = $data['retired'];
$freedomainpaymentterms = explode(",", $freedomainpaymentterms);
$freedomaintlds = explode(",", $freedomaintlds);
$overagesenabled = explode(",", $overagesenabled);
$upgradepackages = unserialize($upgradepackages);
$downloads = unserialize($downloads);
$order = $data['order'];
echo "<script type=\"text/javascript\" src=\"../includes/jscript/jquerylq.js\"></script>\n<script type=\"text/javascript\" src=\"../includes/jscript/jqueryFileTree.js\"></script>\n<link href=\"../includes/jscript/css/jqueryFileTree.css\" rel=\"stylesheet\" type=\"text/css\" media=\"screen\" />\n\n<h2>Edit Product</h2>\n<form method=\"post\" action=\"" . $_SERVER['PHP_SELF'] . "?action=save&id=" . $id;
echo "\" name=\"packagefrm\">";
$jscode = "function deletecustomfield(id) {\nif (confirm(\"Are you sure you want to delete this field and ALL DATA associated with it?\")) {\nwindow.location='" . $_SERVER['PHP_SELF'] . "?action=edit&id=" . $id . "&tab=3&sub=deletecustomfield&fid='+id+'" . generate_token("link") . "';\n}}\nfunction deleteoption(id) {\nif (confirm(\"Are you sure you want to delete this product configuration?\")) {\nwindow.location='" . $_SERVER['PHP_SELF'] . "?action=edit&id=" . $id . "&tab=4&sub=deleteoption&confid='+id+'" . generate_token("link") . "';\n}}";
$jquerycode = "\$('#productdownloadsbrowser').fileTree({ root: '0', script: 'configproducts.php?action=getdownloads" . generate_token("link") . "', folderEvent: 'click', expandSpeed: 1, collapseSpeed: 1 }, function(file) {\n \$.post(\"configproducts.php?action=managedownloads&id=" . $id . generate_token("link") . "&adddl=\"+file, function(data) {\n \$(\"#productdownloadslist\").html(data);\n });\n});\n\$(\".removedownload\").livequery(\"click\", function(event) {\n var dlid = \$(this).attr(\"rel\");\n \$.post(\"configproducts.php?action=managedownloads&id=" . $id . generate_token("link") . "&remdl=\"+dlid, function(data) {\n \$(\"#productdownloadslist\").html(data);\n });\n});\n\$(\"#showquickupload\").click(\n function() {\n \$(\"#quickupload\").dialog(\"open\");\n \$(\"#quickupload\").load(\"configproducts.php?action=quickupload&id=" . $id . generate_token("link") . "\");\n return false;\n }\n);\n\$(\"#showadddownloadcat\").click(\n function() {\n \$(\"#adddownloadcat\").dialog(\"open\");\n \$(\"#adddownloadcat\").load(\"configproducts.php?action=adddownloadcat&id=" . $id . generate_token("link") . "\");\n return false;\n }\n);\n";
if ($success) {
infoBox($aInt->lang("global", "changesuccess"), $aInt->lang("global", "changesuccessdesc"));
}
echo $infobox;
echo $aInt->Tabs(array($aInt->lang("products", "tabsdetails"), $aInt->lang("global", "pricing"), $aInt->lang("products", "tabsmodulesettings"), $aInt->lang("setup", "customfields"), $aInt->lang("setup", "configoptions"), $aInt->lang("products", "tabsupgrades"), $aInt->lang("products", "tabsfreedomain"), $aInt->lang("setup", "other"), $aInt->lang("products", "tabslinks")));
echo "\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\">";
echo $aInt->lang("fields", "producttype");
echo "</td><td class=\"fieldarea\">";
echo "<s";
echo "elect name=\"type\" onChange=\"doFieldUpdate()\"><option value=\"hostingaccount\"";
if ($type == "hostingaccount") {
echo " SELECTED";
}
echo ">";
echo $aInt->lang("products", "hostingaccount");
echo "<option value=\"reselleraccount\"";
if ($type == "reselleraccount") {
示例5: RegRegisterDomain
++$i;
}
$params['transfersecret'] = $_POST['transfersecret'];
if (!$ac) {
$result = RegRegisterDomain($params);
} else {
$result = RegTransferDomain($params);
}
if ($result['error']) {
infoBox($aInt->lang("global", "erroroccurred"), $result['error']);
echo $infobox;
} else {
if (!$ac) {
infoBox($aInt->lang("global", "success"), $aInt->lang("domains", "regsuccess"));
} else {
infoBox($aInt->lang("global", "success"), $aInt->lang("domains", "transuccess"));
}
echo "<br />" . $infobox;
echo "\n<p align=\"center\"><input type=\"button\" value=\"";
echo $aInt->lang("global", "continue");
echo " >>\" class=\"btn\" onClick=\"window.location='clientsdomains.php?userid=";
echo $userid;
echo "&domainid=";
echo $domainid;
echo "'\"></p>\n\n";
if ($sendregisterconfirm == "on") {
if ($ac == "") {
sendMessage("Domain Registration Confirmation", $domainid);
} else {
sendMessage("Domain Transfer Initiated", $domainid);
}
示例6: infoBox
infoBox($aInt->lang("configservers", "groupdelsuccessful"), $aInt->lang("configservers", "groupdelsuccessfuldesc"));
}
if ($deleteerror) {
infoBox($aInt->lang("configservers", "error"), $aInt->lang("configservers", "errordesc"));
}
if ($savesuccess) {
infoBox($aInt->lang("configservers", "changesuccess"), $aInt->lang("configservers", "changesuccessdesc"));
}
if ($enablesuccess) {
infoBox($aInt->lang("configservers", "enabled"), $aInt->lang("configservers", "enableddesc"));
}
if ($disablesuccess) {
infoBox($aInt->lang("configservers", "disabled"), $aInt->lang("configservers", "disableddesc"));
}
if ($makedefault) {
infoBox($aInt->lang("configservers", "defaultchange"), $aInt->lang("configservers", "defaultchangedesc"));
}
echo $infobox;
$aInt->deleteJSConfirm("doDelete", "configservers", "delserverconfirm", "?action=delete&id=");
$aInt->deleteJSConfirm("doDeleteGroup", "configservers", "delgroupconfirm", "?action=deletegroup&id=");
echo "\n<p>";
echo $aInt->lang("configservers", "pagedesc");
echo "</p>\n\n<p><B>";
echo $aInt->lang("fields", "options");
echo ":</B> <a href=\"";
echo $PHP_SELF;
echo "?action=manage\">";
echo $aInt->lang("configservers", "addnewserver");
echo "</a> | <a href=\"";
echo $PHP_SELF;
echo "?action=managegroup\">";
示例7: generate_token
if ($open_row['server']) {
$open_row->type .= " (" . $open_row['server'] . ")";
}
if ($open_row['status'] == "Resolved") {
$actions = "<a href=\"" . $_SERVER['PHP_SELF'] . "?action=reopen&id=" . $open_row['id'] . generate_token("link") . "\">Reopen</a>";
} else {
$actions = "<a href=\"" . $_SERVER['PHP_SELF'] . "?action=close&id=" . $open_row['id'] . generate_token("link") . "\">Close</a>";
}
$tabledata[] = array("<a href=\"" . $_SERVER['PHP_SELF'] . "?action=manage&id=" . $open_row['id'] . "\">" . $open_row['title'] . "</a>", $open_row['type'], $open_row['priority'], $open_row['status'], fromMySQLDate($open_row['startdate'], true), $enddate, $actions, "<a href=\"#\" onClick=\"doDelete('" . $open_row['id'] . "');return false\"><img src=\"images/delete.gif\" width=\"16\" height=\"16\" border=\"0\" alt=\"Delete\"></a>");
}
}
echo $aInt->sortableTable(array("Title", "Type", "Priority", "Status", "Start Date", "End Date", " ", ""), $tabledata);
} else {
if ($action == "manage") {
if ($errormessage) {
infoBox("Validation Failed", $errormessage);
echo $infobox;
}
echo "<script type=\"text/javascript\" src=\"../includes/jscript/jquery-ui-timepicker-addon.js\"></script>\n<link rel=\"stylesheet\" type=\"text/css\" href=\"../includes/jscript/css/jquery-ui-timepicker-addon.css\" />\n<form method=\"post\" action=\"" . $_SERVER['PHP_SELF'] . "?action=save\">";
if ($id) {
$pagetitle = "Modify Existing Issue";
$result = select_query("tblnetworkissues", "", array("id" => $id));
$data = mysql_fetch_array($result);
$title = $data['title'];
$startdate = $data['startdate'];
$enddate = $data['enddate'];
$description = $data['description'];
$type = $data['type'];
$affecting = $data['affecting'];
$server = $data['server'];
$priority = $data['priority'];
示例8: file_get_contents
}
?>
</ul>
</div><!--/.nav-collapse -->
</div>
</div>
</div>
<div class="container">
<!--require start-->
<?php
$msg = file_get_contents("admin/msg.txt");
if (strlen($msg) > 4) {
infoBox($msg);
}
?>
<?php
include_once $now_page;
?>
<!--require end-->
<hr/>
<!--footer-->
<div class="row-fluid">
<center>
<a href="https://github.com/flrngel/LavidaOnlineJudge.git" target="_blank"><img src="/image/github.png"></a>
</center>
示例9: define
define("ADMINAREA", true);
require "../init.php";
$aInt = new WHMCS_Admin("Database Status");
$aInt->title = $aInt->lang("utilities", "dbstatus");
$aInt->sidebar = "utilities";
$aInt->icon = "dbbackups";
$aInt->requiredFiles(array("backupfunctions"));
if ($optimize) {
check_token("WHMCS.admin.default");
$alltables = full_query("SHOW TABLES");
while ($table = mysql_fetch_assoc($alltables)) {
foreach ($table as $db => $tablename) {
full_query("OPTIMIZE TABLE '" . $tablename . "'");
}
}
infoBox($aInt->lang("system", "optcomplete"), $aInt->lang("system", "optcompleteinfo"));
}
if ($dlbackup) {
check_token("WHMCS.admin.default");
$db_name = "";
require ROOTDIR . "/configuration.php";
set_time_limit(0);
header("Content-type: application/octet-stream");
header("Content-disposition: attachment; filename=" . $db_name . "_backup_" . date("Ymd_His") . ".zip");
echo generateBackup();
}
ob_start();
echo $infobox;
echo "\n<table width=760 align=center cellspacing=0 cellpadding=0><tr><td width=380 valign=top>\n\n<table bgcolor=#cccccc cellspacing=1 width=370 align=center>\n<tr style=\"text-align:center;font-weight:bold;background-color:#efefef\"><td>";
echo $aInt->lang("fields", "name");
echo "</td><td>";
示例10: checkPermission
checkPermission("Delete Transaction");
delete_query("tblaccounts", array("id" => $id));
logActivity("Deleted Transaction - Transaction ID: " . $id);
redir("deleted=true");
exit;
}
ob_start();
if (!$action) {
if ($added) {
infoBox($aInt->lang("transactions", "transactionadded"), $aInt->lang("transactions", "transactionaddedinfo"));
}
if ($saved) {
infoBox($aInt->lang("transactions", "transactionupdated"), $aInt->lang("transactions", "transactionupdatedinfo"));
}
if ($deleted) {
infoBox($aInt->lang("transactions", "transactiondeleted"), $aInt->lang("transactions", "transactiondeletedinfo"));
}
echo $infobox;
$jscode = "function doDelete(id) {\n if (confirm(\"" . $aInt->lang("transactions", "deletesure") . "\")) {\n window.location='" . $_SERVER['PHP_SELF'] . "?action=delete&id='+id+'" . generate_token("link") . "';\n }\n}\n";
echo $aInt->Tabs(array($aInt->lang("global", "searchfilter"), $aInt->lang("transactions", "add")), true);
if (!count($_REQUEST)) {
$within = $_REQUEST['within'] = "month";
}
echo "\n<div id=\"tab0box\" class=\"tabbox\">\n <div id=\"tab_content\">\n\n<form method=\"post\" action=\"transactions.php\"><input type=\"hidden\" name=\"filter\" value=\"true\">\n\n<table class=\"form\" width=\"100%\" border=\"0\" cellspacing=\"2\" cellpadding=\"3\">\n<tr><td width=\"15%\" class=\"fieldlabel\">";
echo $aInt->lang("transactions", "show");
echo "</td><td class=\"fieldarea\">";
echo "<s";
echo "elect name=\"show\">\n<option value=\"\">";
echo $aInt->lang("transactions", "allactivity");
echo "</option>\n<option value=\"received\"";
if ($_REQUEST['show'] == "received") {
示例11: update_query
update_query("tblconfiguration", array("value" => $invoicegensemiannually), array("setting" => "CreateInvoiceDaysBeforeSemiAnnually"));
update_query("tblconfiguration", array("value" => $invoicegenannually), array("setting" => "CreateInvoiceDaysBeforeAnnually"));
update_query("tblconfiguration", array("value" => $invoicegenbiennially), array("setting" => "CreateInvoiceDaysBeforeBiennially"));
update_query("tblconfiguration", array("value" => $invoicegentriennially), array("setting" => "CreateInvoiceDaysBeforeTriennially"));
update_query("tblconfiguration", array("value" => $autoclientstatuschange), array("setting" => "AutoClientStatusChange"));
$renewalstring = "";
foreach ($renewals as $renewal) {
$renewalstring .= "" . $renewal . ",";
}
update_query("tblconfiguration", array("value" => $renewalstring), array("setting" => "DomainRenewalNotices"));
redir("success=true");
exit;
}
ob_start();
if ($success) {
infoBox($aInt->lang("automation", "changesuccess"), $aInt->lang("automation", "changesuccessinfo"));
echo $infobox;
}
echo "\n<form method=\"post\" action=\"";
echo $PHP_SELF;
echo "?sub=save\">\n<p>";
echo $aInt->lang("automation", "croninfo");
echo "</p>\n\n<div class=\"contentbox\">\n";
echo $aInt->lang("automation", "cronphp");
echo ":<br><input type=\"text\" size=\"100\" value=\"php -q ";
$adminfolder = $whmcs->get_admin_folder_name();
echo ROOTDIR . "/" . $adminfolder;
echo "/cron.php\"><br><b>OR</b><br>\n";
echo $aInt->lang("automation", "cronget");
echo ":<br><input type=\"text\" size=\"100\" value=\"GET ";
echo $CONFIG['SystemURL'];
示例12: delete_query
delete_query("tblorderstatuses", array("id" => $id));
header("Location: configorderstatuses.php?delete=true");
} else {
header("Location: configorderstatuses.php");
}
exit;
}
ob_start();
if ($added) {
infoBox($aInt->lang("orderstatusconfig", "addtitle"), $aInt->lang("orderstatusconfig", "adddesc"));
}
if ($update) {
infoBox($aInt->lang("orderstatusconfig", "edittitle"), $aInt->lang("orderstatusconfig", "editdesc"));
}
if ($delete) {
infoBox($aInt->lang("orderstatusconfig", "deltitle"), $aInt->lang("orderstatusconfig", "deldesc"));
}
echo $infobox;
$aInt->deleteJSConfirm("doDelete", "orderstatusconfig", "delsure", "?action=delete&id=");
echo "\n<p>";
echo $aInt->lang("orderstatusconfig", "pagedesc");
echo "</p>\n\n<p>";
echo "<s";
echo "trong>";
echo $aInt->lang("fields", "options");
echo ":</strong> <a href=\"";
echo $PHP_SELF;
echo "\"><img src=\"images/icons/add.png\" align=\"top\" /> ";
echo $aInt->lang("global", "addnew");
echo "</a></p>\n\n";
$aInt->sortableTableInit("nopagination");
示例13: while
while ($regperiod <= 10) {
$regperiods .= "<option value=\"" . $regperiod . "\">" . $regperiod . " " . $aInt->lang("domains", "year" . $regperiodss) . "</option>";
$regperiodss = "s";
++$regperiod;
}
$jquerycode = "\n\$(function(){\n var prodtemplate = \$(\"#products .product:first\").clone();\n var productsCount = 0;\n window.addProduct = function(){\n productsCount++;\n var order = prodtemplate.clone().find(\"*\").each(function(){\n var newId = this.id.substring(0, this.id.length-1) + productsCount;\n\n \$(this).prev().attr(\"for\", newId); // update label for\n this.id = newId; // update id\n\n }).end()\n .attr(\"id\", \"ord\" + productsCount)\n .appendTo(\"#products\");\n return false;\n }\n \$(\".addproduct\").click(addProduct);\n\n var domainsCount = 0;\n window.addDomain = function(){\n domainsCount++;\n \$('<table class=\"form\" width=\"100%\" border=\"0\" cellspacing=\"2\" cellpadding=\"3\" style=\"margin-top:10px;\"><tr><td width=\"130\" class=\"fieldlabel\">" . $aInt->lang("domains", "regtype", 1) . "</td><td class=\"fieldarea\"><input type=\"radio\" name=\"regaction['+domainsCount+']\" id=\"domnon'+domainsCount+'\" value=\"\" onclick=\"loaddomainoptions(this,0);updatesummary()\" checked /> <label for=\"domnon'+domainsCount+'\">" . $aInt->lang("global", "none", 1) . "</label> <input type=\"radio\" name=\"regaction['+domainsCount+']\" value=\"register\" id=\"domreg'+domainsCount+'\" onclick=\"loaddomainoptions(this,1);updatesummary()\" /> <label for=\"domreg'+domainsCount+'\">" . $aInt->lang("domains", "register", 1) . "</label> <input type=\"radio\" name=\"regaction['+domainsCount+']\" value=\"transfer\" id=\"domtrf'+domainsCount+'\" onclick=\"loaddomainoptions(this,2);updatesummary()\" /> <label for=\"domtrf'+domainsCount+'\">" . $aInt->lang("domains", "transfer", 1) . "</label></td></tr><tr class=\"hiddenrow\" id=\"domrowdn'+domainsCount+'\" style=\"display:none;\"><td class=\"fieldlabel\">" . $aInt->lang("fields", "domain", 1) . "</td><td class=\"fieldarea\"><input type=\"text\" class=\"regdomain\" id=\"regdomain'+domainsCount+'\" name=\"regdomain['+domainsCount+']\" size=\"40\" onkeyup=\"updatesummary()\" /></td></tr><tr class=\"hiddenrow\" id=\"domrowrp'+domainsCount+'\" style=\"display:none;\"><td class=\"fieldlabel\">" . $aInt->lang("domains", "regperiod", 1) . "</td><td class=\"fieldarea\"><select name=\"regperiod['+domainsCount+']\" onchange=\"updatesummary()\">" . $regperiods . "</select></td></tr><tr class=\"hiddentransrow\" id=\"domrowep'+domainsCount+'\" style=\"display:none;\"><td class=\"fieldlabel\">" . $aInt->lang("domains", "eppcode", 1) . "</td><td class=\"fieldarea\"><input type=\"text\" name=\"eppcode['+domainsCount+']\" size=\"20\" /></td></tr><tr class=\"hiddenrow\" id=\"domrowad'+domainsCount+'\" style=\"display:none;\"><td class=\"fieldlabel\">" . $aInt->lang("domains", "addons", 1) . "</td><td class=\"fieldarea\"><label><input type=\"checkbox\" name=\"dnsmanagement['+domainsCount+']\" onclick=\"updatesummary()\" /> " . $aInt->lang("domains", "dnsmanagement", 1) . "</label> <label><input type=\"checkbox\" name=\"emailforwarding['+domainsCount+']\" onclick=\"updatesummary()\" /> " . $aInt->lang("domains", "emailforwarding", 1) . "</label> <label><input type=\"checkbox\" name=\"idprotection['+domainsCount+']\" onclick=\"updatesummary()\" /> " . $aInt->lang("domains", "idprotection", 1) . "</label></td></tr><tr id=\"domainaddlfieldserase'+domainsCount+'\" style=\"display:none\"></tr></table>').appendTo(\"#domains\");\n return false;\n }\n \$(\".adddomain\").click(addDomain);\n\n \$(\"#domain0\").keyup(function() {\n \$(\"#regdomain0\").val(\$(\"#domain0\").val());\n });\n\n\t\$(\".regdomain\").live(\"keyup\", function(){\n \tvar domainname = \$(this).val();\n\t\tif(domainname.length >= 5){\n\t\t\tvar ord = \$(this).attr(\"id\").replace(\"regdomain\",\"\");\n\t\t\t\$.post(\"ordersadd.php\", { action: \"getdomainaddlfields\", domain: domainname, order:ord, token: \"" . generate_token("plain") . "\" },\n\t\t\tfunction(data){\n\t\t\t\t\$(\".domainaddlfields\"+ord).remove();\n\t\t\t\t\$(\"#domainaddlfieldserase\"+ord).after(data);\n\t\t\t});\n\t\t}\n });\n\n});\n";
$jscode = "\nfunction loadproductoptions(piddd) {\n var ord = piddd.id.substring(3);\n var pid = piddd.value;\n var billingcycle = \$(\"#billingcycle option:selected\").val();\n if (pid==0) {\n \$(\"#productconfigoptions\"+ord).html(\"\");\n \$(\"#addonsrow\"+ord).hide();\n updatesummary();\n } else {\n \$(\"#productconfigoptions\"+ord).html(\"<p align=\\\"center\\\">" . $aInt->lang("global", "loading") . "<br><img src=\\\"../images/loading.gif\\\"></p>\");\n \$.post(\"ordersadd.php\", { action: \"getconfigoptions\", pid: pid, cycle: billingcycle, orderid: ord, token: \"" . generate_token("plain") . "\" },\n function(data){\n if (data.addons) {\n \$(\"#addonsrow\"+ord).show();\n \$(\"#addonscont\"+ord).html(data.addons);\n } else {\n \$(\"#addonsrow\"+ord).hide();\n }\n \$(\"#productconfigoptions\"+ord).html(data.options);\n updatesummary();\n },\"json\");\n }\n}\nfunction loaddomainoptions(domrd,type) {\n var ord = domrd.id.substring(6);\n if (type==1) {\n \$(\"#domrowdn\"+ord).css(\"display\",\"\");\n \$(\"#domrowrp\"+ord).css(\"display\",\"\");\n \$(\"#domrowep\"+ord).css(\"display\",\"none\");\n \$(\"#domrowad\"+ord).css(\"display\",\"\");\n } else if (type==2) {\n \$(\"#domrowdn\"+ord).css(\"display\",\"\");\n \$(\"#domrowrp\"+ord).css(\"display\",\"\");\n \$(\"#domrowep\"+ord).css(\"display\",\"\");\n \$(\"#domrowad\"+ord).css(\"display\",\"\");\n } else {\n \$(\"#domrowdn\"+ord).css(\"display\",\"none\");\n \$(\"#domrowrp\"+ord).css(\"display\",\"none\");\n \$(\"#domrowep\"+ord).css(\"display\",\"none\");\n \$(\"#domrowad\"+ord).css(\"display\",\"none\");\n }\n}\nfunction updatesummary() {\n jQuery.post(\"ordersadd.php\", \"submitorder=1&calconly=1&\"+jQuery(\"#orderfrm\").serialize(),\n function(data){\n jQuery(\"#ordersumm\").html(data);\n });\n}\n";
ob_start();
if (!checkActiveGateway()) {
$aInt->gracefulExit($aInt->lang("gateways", "nonesetup"));
}
if ($userid && !$paymentmethod) {
$paymentmethod = getClientsPaymentMethod($userid);
}
if ($whmcs->get_req_var("noselections")) {
infoBox($aInt->lang("global", "validationerror"), $aInt->lang("orders", "noselections"));
}
echo $infobox;
echo "\n<form method=\"post\" action=\"";
echo $_SERVER['PHP_SELF'];
echo "\" id=\"orderfrm\">\n<input type=\"hidden\" name=\"submitorder\" value=\"true\" />\n\n<table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\"><tr><td valign=\"top\" class=\"ordersummaryleftcol\">\n\n<table class=\"form\" width=\"100%\" border=\"0\" cellspacing=\"2\" cellpadding=\"3\">\n<tr><td width=\"130\" class=\"fieldlabel\">";
echo $aInt->lang("fields", "client");
echo "</td><td class=\"fieldarea\">";
echo $aInt->clientsDropDown($userid);
echo "</td></tr>\n<tr><td class=\"fieldlabel\">";
echo $aInt->lang("fields", "paymentmethod");
echo "</td><td class=\"fieldarea\">";
echo paymentMethodsSelection();
echo "</td></tr>\n<tr><td class=\"fieldlabel\">";
echo $aInt->lang("fields", "promocode");
echo "</td><td class=\"fieldarea\">";
示例14: infoBox
}
?>
</ul>
</div>
<h1><?php
echo $res->title;
?>
</h1>
<?php
if (empty($res->source) == false) {
echo "<span class=\"label label-info\">Source : " . $res->source . "</span>";
}
?>
<hr/>
<?php
echo $res->spj == 1 ? infoBox('<b>Notice!</b> Submissions on this problem will be special judged') : "";
?>
<?php
echo $res->defunct == 'Y' ? errorBox('<b>Notice!</b> This Problem is not available') : "";
?>
<h5>Description</h5>
<p><?php
echo $res->description;
?>
</p>
<hr/>
<h5>Input</h5>
<p><?php
echo $res->input;
?>
</p><br/>
示例15: infoBox
}
$success = $domains->moduleCall("GetNameservers");
if ($success) {
$nsvalues = $domains->getModuleReturn();
} else {
if (!$infobox) {
infoBox($aInt->lang("domains", "registrarerror"), $domains->getLastError());
}
}
if ($conf == "renew") {
$values = wGetCookie("DomRenewRes", 1);
if ($values['error']) {
infoBox($aInt->lang("domains", "renewfailed"), $values['error'], "error");
} else {
$successmessage = str_replace("%s", $registrationperiod, $aInt->lang("domains", "renewinfo"));
infoBox($aInt->lang("domains", "renewsuccess"), $successmessage, "success");
}
}
$success = $domains->moduleCall("GetRegistrarLock");
if ($success) {
$lockstatus = $domains->getModuleReturn();
}
}
$clientnotes = 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']));
$clientnotes[] = $data;
}