From 6c4d9632f4d5cd1164ab9183932fbdf9137945aa Mon Sep 17 00:00:00 2001 From: ivan Date: Sat, 24 Jan 2009 21:04:17 +0000 Subject: add domain selection to advanced account report (side effect on RT#4623) --- httemplate/elements/select-table.html | 47 ++++++++++++++++++++++++++--------- 1 file changed, 35 insertions(+), 12 deletions(-) (limited to 'httemplate/elements/select-table.html') diff --git a/httemplate/elements/select-table.html b/httemplate/elements/select-table.html index d24c9abe4..32a61e989 100644 --- a/httemplate/elements/select-table.html +++ b/httemplate/elements/select-table.html @@ -4,7 +4,9 @@ Example: include( '/elements/select-table.html', - #required + ## + # required + ## 'table' => 'table_name', 'name_col' => 'name_column', @@ -12,24 +14,42 @@ Example: 'curr_value' => 'current_value', #'value' => #deprecated form of 'curr_value', - #opt - 'empty_label' => '', #better specify it though, the default might change - 'hashref' => {}, - 'extra_sql' => '', - 'records' => \@records, #instead of hashref + ## + # optional + ## + + #search params + 'hashref' => {}, + 'addl_from' => '', + 'extra_sql' => '', + 'agent_virt' => 0, #set true and make sure the result is JOINed to + #something with agentnum (usually cust_main) + 'agent_null_right' => '', #right to see un-agented entries + #or + 'records' => \@records, #instead of search params + + #basic params controlling the resulting 'element_name' => '', #HTML element name, defaults to the name of # the primary key column 'field' => '', #synonym for element_name 'element_etc' => '', #additional attributes (i.e. "DISABLED") for the #