$client = $filters->get("client"); $clientid = $filters->get("clientid"); if (!$clientid && $client) { $clientid = $client; } $clientname = $filters->get("clientname"); echo "\n<div id=\"tab0box\" class=\"tabbox\">\n <div id=\"tab_content\">\n\n<form action=\""; echo $PHP_SELF; echo "\" method=\"post\">\n\n<table class=\"form\" width=\"100%\" border=\"0\" cellspacing=\"2\" cellpadding=\"3\">\n<tr><td width=\"15%\" class=\"fieldlabel\">"; echo $aInt->lang("fields", "orderid"); echo "</td><td class=\"fieldarea\"><input type=\"text\" name=\"orderid\" size=\"8\" value=\""; echo $orderid = $filters->get("orderid"); echo "\"></td><td width=\"15%\" class=\"fieldlabel\">"; echo $aInt->lang("fields", "client"); echo "</td><td class=\"fieldarea\">"; echo $aInt->clientsDropDown($clientid, "", "clientid", true); echo "</td></tr>\n<tr><td class=\"fieldlabel\">"; echo $aInt->lang("fields", "ordernum"); echo "</td><td class=\"fieldarea\"><input type=\"text\" name=\"ordernum\" size=\"20\" value=\""; echo $ordernum = $filters->get("ordernum"); echo "\"></td><td class=\"fieldlabel\">"; echo $aInt->lang("fields", "paymentstatus"); echo "</td><td class=\"fieldarea\">"; echo "<s"; echo "elect name=\"paymentstatus\">\n<option value=\"\">"; echo $aInt->lang("global", "any"); echo "</option>\n<option value=\"Paid\""; $paymentstatus = $filters->get("paymentstatus"); if ($paymentstatus == "Paid") { echo " selected"; }
} if ($delete && is_array($bitem)) { foreach ($bitem as $id => $v) { delete_query("tblbillableitems", array("id" => $id)); } infoBox($aInt->lang("billableitems", "itemsdeleted"), $aInt->lang("billableitems", "itemsdeleteddesc")); echo $infobox; } $aInt->deleteJSConfirm("doDelete", "billableitems", "itemsdeletequestion", "billableitems.php?userid=" . $userid . "&action=delete&id="); echo $aInt->Tabs(array($aInt->lang("global", "searchfilter")), true); echo "\n<div id=\"tab0box\" class=\"tabbox\">\n <div id=\"tab_content\">\n\n<form action=\""; echo $_SERVER['PHP_SELF']; echo "\" method=\"get\">\n<table class=\"form\" width=\"100%\" border=\"0\" cellspacing=\"2\" cellpadding=\"3\">\n<tr><td width=\"15%\" class=\"fieldlabel\">"; echo $aInt->lang("fields", "client"); echo "</td><td class=\"fieldarea\">"; echo $aInt->clientsDropDown($userid, "", "userid", true); echo "</td><td width=\"15%\" class=\"fieldlabel\">"; echo $aInt->lang("fields", "amount"); echo "</td><td class=\"fieldarea\"><input type=\"text\" name=\"amount\" size=\"15\" value=\""; echo $amount; 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("fields", "status"); echo "</td><td class=\"fieldarea\">"; echo "<s"; echo "elect name=\"status\">\n<option value=\"\">"; echo $aInt->lang("global", "any"); echo "</option>\n<option";
echo "</option>\n"; $result = select_query("tblticketstatuses", "", "", "sortorder", "ASC"); while ($data = mysql_fetch_array($result)) { echo "<option"; if ($view == $data['title']) { echo " selected"; } echo ">" . $data['title'] . "</option>"; } echo "</select></td><td width=\"15%\" class=\"fieldlabel\">"; echo $aInt->lang("fields", "client"); echo "</td><td class=\"fieldarea\">"; if ($CONFIG['DisableClientDropdown']) { echo "<input type=\"text\" name=\"client\" value=\"" . $client . "\" size=\"10\" />"; } else { echo $aInt->clientsDropDown($client, "", "client", true); } echo "</td></tr>\n<tr><td class=\"fieldlabel\">"; echo $aInt->lang("support", "department"); echo "</td><td class=\"fieldarea\">"; echo "<s"; echo "elect name=\"deptid\"><option value=\"\">"; echo $aInt->lang("global", "any"); echo "</option>"; $result = select_query("tblticketdepartments", "", "", "order", "ASC"); while ($data = mysql_fetch_array($result)) { $id = $data['id']; $name = $data['name']; if (in_array($id, $supportdepts)) { echo "<option value=\"" . $id . "\""; if ($id == $deptid) {
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\">"; echo "<s"; echo "elect name=\"promocode\" id=\"promodd\" onchange=\"updatesummary()\"><option value=\"\">"; echo $aInt->lang("global", "none"); echo "</option><optgroup label=\"Active Promotions\">"; $result = select_query("tblpromotions", "", "(maxuses<=0 OR uses<maxuses) AND (expirationdate='0000-00-00' OR expirationdate>='" . date("Ymd") . "')", "code", "ASC"); while ($data = mysql_fetch_array($result)) { $promo_id = $data['id']; $promo_code = $data['code'];
if ($action == "convert") { check_token("WHMCS.admin.default"); $invoiceid = convertQuotetoInvoice($id, $invoicetype, $invoiceduedate, $depositpercent, $depositduedate, $finalduedate, $sendemail); redir("action=edit&id=" . $invoiceid, "invoices.php"); } ob_start(); $aInt->deleteJSConfirm("doDelete", "quotes", "deletesure", "?action=delete&id="); $aInt->deleteJSConfirm("doDeleteLine", "global", "deleteconfirm", "?action=deleteline&id=" . $id . "&lid="); if (!$action) { echo $aInt->Tabs(array("Search/Filter"), true); echo "\n<div id=\"tab0box\" class=\"tabbox\">\n <div id=\"tab_content\">\n\n<form action=\""; echo $PHP_SELF; echo "\" method=\"get\"><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\">Subject</td><td class=\"fieldarea\"><input type=\"text\" name=\"subject\" size=\"50\" value=\""; echo $subject; echo "\"></td><td width=\"15%\" class=\"fieldlabel\">Client</td><td class=\"fieldarea\">"; echo $aInt->clientsDropDown($userid, "", "", true); echo "</td></tr>\n<tr><td class=\"fieldlabel\">Stage</td><td class=\"fieldarea\">"; echo "<s"; echo "elect name=\"stage\">\n<option value=\"\">Any</option>\n<option"; if ($stage == "Draft") { echo " selected"; } echo ">Draft</option>\n<option"; if ($stage == "Delivered") { echo " selected"; } echo ">Delivered</option>\n<option"; if ($stage == "On Hold") { echo " selected"; } echo ">On Hold</option>\n<option";