diff options
author | tetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46> | 2007-10-15 21:54:41 +0000 |
---|---|---|
committer | tetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46> | 2007-10-15 21:54:41 +0000 |
commit | 043eba7be5ed4f5086921df59ec6f59d26502e07 (patch) | |
tree | 4445d0aef9d0e4c982b09b8c31fbf23068393048 /UI/bp-search.html | |
parent | 7f6b195e924e3c13409a3ad3465c3788bcd52311 (diff) |
Converting batch printing search forms to templates
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@1761 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'UI/bp-search.html')
-rw-r--r-- | UI/bp-search.html | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/UI/bp-search.html b/UI/bp-search.html new file mode 100644 index 00000000..5648e853 --- /dev/null +++ b/UI/bp-search.html @@ -0,0 +1,74 @@ +<?lsmb INCLUDE 'ui-header.html' ?> +<?lsmb PROCESS elements.html ?> +<body> +<form method="post" action="<?lsmb form.script ?>"> +<table width="100%"> + <tr><th class="listtop"><?lsmb form.title ?></th></tr> + <tr><td> </td></tr> + <tr> + <td> + <table> + <tr> + <th align="right"><?lsmb text(label.${form.type}.name) ?></th> +<?lsmb IF name.type == 'input' ?> + <td colspan="3"><?lsmb PROCESS input element_data=name.data ?></td> +<?lsmb ELSE ?> + <td colspan="3"><?lsmb PROCESS select element_data=name.data ?></td> +<?lsmb END ?> + </tr> +<?lsmb FOREACH num IN ['invnumber', 'ordnumber', 'quonumber']; + IF label.${form.type}.${num}.defined ?> + <tr> + <th align="right" nowrap="nowrap"><?lsmb label.${form.type}.${num}.label ?></th> + <td colspan="3"><?lsmb PROCESS input element_data={size => 20, name => label.${form.type}.${num}.name} ?></td> + </tr> +<?lsmb END; END ?> + <tr> + <th align="right" nowrap="nowrap"><?lsmb text('From') ?></th> + <td><?lsmb PROCESS input element_data={class="date", name => "transdatefrom", size => "11", title=> user.dateformat} ?></td> + <th align="right" nowrap="nowrap"><?lsmb text('To') ?></th> + <td><?lsmb PROCESS input element_data={class="date", name => "transdateto", size => "11", title=> user.dateformat} ?></td> + </tr> +<?lsmb IF form.all_years.defined ?> + <tr> + <th align="right"><?lsmb text('Period') ?></th> + <td colspan="3"> + <?lsmb + PROCESS select element_data=form.selectaccountingmonth; + PROCESS select element_data=form.selectaccountingyear; + PROCESS input element_data={ + name => 'interval', type => 'radio', value => '0', label => text('Current'), + checked => 'checked', + }; + PROCESS input element_data={ + name => 'interval', type => 'radio', value => '1', label => text('Month'), + }; + PROCESS input element_data={ + name => 'interval', type => 'radio', value => '3', label => text('Quarter'), + }; + PROCESS input element_data={ + name => 'interval', type => 'radio', value => '12', label => text('Year'), + }; +?> + </td> + </tr> +<?lsmb END ?> + </table> + </td> + </tr> + <tr> + <td><hr size="3" noshade="noshade" /></td> + </tr> +</table> + +<br /> +<?lsmb FOREACH hidden IN hiddens.keys; + PROCESS input element_data={ + type => 'hidden', + name => hidden, + value => hiddens.item(hidden) + }; END ?> +<?lsmb FOREACH button IN buttons; PROCESS button element_data=button; END ?> +</form> +</body> +</html> |