summaryrefslogtreecommitdiff
path: root/httemplate/elements
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2019-10-21 12:33:06 -0700
committerIvan Kohler <ivan@freeside.biz>2019-10-21 12:33:06 -0700
commit79c8be3bd0c5db42794b36bf5b5dd25addba67cb (patch)
tree0eb0f6d225bab65d8cd2d953757e717c90cd0ca9 /httemplate/elements
parent0bd6fd8b74c3cb6a7abf01ba5974d2d9399da3ab (diff)
common element for cust_pkg search form fields
Diffstat (limited to 'httemplate/elements')
-rw-r--r--httemplate/elements/cust_pkg-search-form_input.html41
1 files changed, 41 insertions, 0 deletions
diff --git a/httemplate/elements/cust_pkg-search-form_input.html b/httemplate/elements/cust_pkg-search-form_input.html
new file mode 100644
index 000000000..c2dbbe5c3
--- /dev/null
+++ b/httemplate/elements/cust_pkg-search-form_input.html
@@ -0,0 +1,41 @@
+%# some false laziness w/search/cust_pkg.cgi
+
+<INPUT TYPE="hidden" NAME="query" VALUE="<% $cgi->keywords |h %>">
+% for my $param (
+% qw(
+% agentnum cust_status cust_main_salesnum salesnum custnum magic status
+% custom pkgbatch zip reasonnum
+% 477part 477rownum date
+% report_option
+% ),
+% grep { /^location_\w+$/ || /^report_option_any/ } $cgi->param
+% ) {
+ <INPUT TYPE="hidden" NAME="<% $param %>" VALUE="<% $cgi->param($param) |h %>">
+% }
+%
+% for my $param (qw( censustract censustract2 ) ) {
+% next unless grep { $_ eq $param } $cgi->param;
+ <INPUT TYPE="hidden" NAME="<% $param %>" VALUE="<% $cgi->param($param) |h %>">
+% }
+%
+% for my $param (qw( pkgpart classnum refnum towernum )) {
+% foreach my $value ($cgi->param($param)) {
+ <INPUT TYPE="hidden" NAME="<% $param %>" VALUE="<% $value |h %>">
+% }
+% }
+%
+% foreach my $field (qw( setup last_bill bill adjourn susp expire contract_end change_date cancel active )) {
+%
+ <INPUT TYPE="hidden" NAME="<% $field %>_null" VALUE="<% $cgi->param("${field}_null") |h %>">
+ <INPUT TYPE="hidden" NAME="<% $field %>_begin" VALUE="<% $cgi->param("${field}_begin") |h %>">
+ <INPUT TYPE="hidden" NAME="<% $field %>_beginning" VALUE="<% $cgi->param("${field}_beginning") |h %>">
+ <INPUT TYPE="hidden" NAME="<% $field %>_end" VALUE="<% $cgi->param("${field}_end") |h %>">
+ <INPUT TYPE="hidden" NAME="<% $field %>_ending" VALUE="<% $cgi->param("${field}_ending") |h %>">
+% }
+
+<%init>
+
+my( $cgi ) = @_;
+#my( $cgi, %opt ) = @_;
+
+</%init>