<?lsmb INCLUDE 'ui-header.html' include_stylesheet = [ 'css/global.css' 'UI/payments/payments.css' ] titlebar = text('Selection') ?> <?lsmb PROCESS 'elements.html' # Include form elements helper. ?> <body id="payments-filter-body"> <div class="listtop"> <!-- CT: Strings for locales: <?lsmb text('Filtering Receipts') ?> <?lsmb text('Filtering Payments') ?> --> <?lsmb IF account_class == 1 ?><?lsmb t = 'Payments' ?><?lsmb ELSE ?><?lsmb t = 'Receipts' ?><?lsmb END ?> <?lsmb text("Filtering $t") ?> </div> <form name="search" method="post" action="payment.pl"> <?lsmb INCLUDE input element_data={ value = account_class type = "hidden" name = "account_class" } ?> <?lsmb INCLUDE input element_data={ value = batch_id type = "hidden" name = "batch_id" } ?> <?lsmb INCLUDE input element_data={ value = batch_date type = "hidden" name = "batch_date" } ?> <div id = "payments-filter-categories" class="inputgroup"> <?lsmb IF projects ?> <div id = "payments-filter-projects" class="input"> <label for="project"><?lsmb text('Project') ?></label> <select name="project_id" id="project"> <?lsmb FOREACH p = projects ?> <option value="<?lsmb p.id ?>"><?lsmb p.projectnumber ?></option> <?lsmb END ?> </select> </div> <?lsmb END ?> <?lsmb IF departments ?> <div id = "payments-filter-departments" class="input"> <label for="department"><?lsmb text('Department') ?></label> <select name="department_id" id="department"> <?lsmb FOREACH d = departments ?> <option value="<?lsmb d.id ?>"><?lsmb d.description ?></option> <?lsmb END ?> </select> </div> <?lsmb END ?> <?lsmb IF businesses ?> <div id = "payments-filter-businesses" class="input"> <label for="businesses"><?lsmb text('Business Class') ?></label> <select name="business" id="businesses"> <?lsmb FOREACH b = businesses ?> <option value="<?lsmb b.id ?>"><?lsmb b.description ?></option> <?lsmb END ?> </select> </div> <?lsmb END ?> </div> <div class="input" id="account_input"> <label for="account"><?lsmb text('Account') ?> <select name="ar_ap_accno"> <?lsmb FOREACH a = debt_accounts ?> <option value="<?lsmb a.accno ?>" <?lsmb IF a.id == account ?> SELECTED <?lsmb END ?>> <?lsmb a.accno ?>--<?lsmb a.description ?></option> <?lsmb END ?> </select> <div id = "payments-filter-daterow" class = "inputgroup"> <?lsmb PROCESS input element_data = { label = text('Date From:') type = "text" class = "date" value = date_from name = "date_from" size = 12 } # ' ?> <?lsmb PROCESS input element_data = { label = text('Date To:') type = "text" class = "date" value = date_to name = "date_to" size = 12 } # ' ?> </div> <div id = "payments-filter-currency-row" class="inputgroup" ?> <label for="currency"><?lsmb text('Currency')?></label> <select name="currency" id="currency"> <?lsmb FOREACH c = openCurrencies ?><?lsmb k = c.keys.first ?> <option value = "<?lsmb c.$k ?>"><?lsmb c.$k ?></option> <?lsmb END ?> </select> </div> </div> <div class = "input"> <?lsmb INCLUDE input element_data = { type = "text" size = "20" name = "source_start" label = text('Start Source Numbering At:') } # '?> </div> <?lsmb INCLUDE button element_data = { type = "submit" name = "action" text = text('Continue') class = "submit" value = "display_payments" } ?> </form> </body> </html>