芝麻web文件管理V1.00
编辑当前文件:/home/pulsehostuk9/public_html/portal.pulsehost.co.uk/modules/reports/pdf_batch.php
Typical uses for this include producing hard paper copies for mailing to clients or record keeping. DESCRIPTION; require("../includes/gatewayfunctions.php"); if ($noresults) { infoBox("No Invoices Match Criteria", "No invoices were found matching the criteria you specified"); $reportdata["description"] .= $infobox; } $range = App::getFromRequest('range'); if (!$range) { $today = Carbon::today()->endOfDay(); $lastMonth = Carbon::today()->subDays(29)->startOfDay(); $range = $lastMonth->toAdminDateFormat() . ' - ' . $today->toAdminDateFormat(); } $clientsDropDown = $aInt->clientsDropDown($userid, false, 'userid', true); $gatewayOptions = ''; foreach (GatewaySetting::getActiveGatewayFriendlyNames() as $gateway => $friendlyName) { $gatewayOptions .= "
{$friendlyName}
"; } $statusOptions = ''; foreach (Invoices::getInvoiceStatusValues() as $invoiceStatusOption) { if ($invoiceStatusOption == 'Unpaid') { $isSelected = 'selected'; } else { $isSelected = ''; } $optionName = $aInt->lang('status', strtolower(str_replace(' ', '', $invoiceStatusOption))); $statusOptions .= "
{$optionName}
"; } $reportdata["headertext"] = <<
Client Name
{$clientsDropDown}
Filter By
Date Created
Due Date
Date Paid
Date Range
Payment Methods
{$gatewayOptions}
Statuses
{$statusOptions}
Sort Order
Invoice ID
Invoice Number
Date Paid
Due Date
Client ID
Client Name
HTML; $report = '';