X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fsearch%2Felements%2Fsearch.html;h=40c71d812c651781d5db41cad4eb7e29c752db1e;hb=37f181cc0b65e4509dd68593cb7555db42d8e088;hp=d72bcfdb1797e9aa7a82a375173c3b544d2ac18a;hpb=81bc24b2d31c1522c8a51f54f2d088b2d10cfa9c;p=freeside.git diff --git a/httemplate/search/elements/search.html b/httemplate/search/elements/search.html index d72bcfdb1..40c71d812 100644 --- a/httemplate/search/elements/search.html +++ b/httemplate/search/elements/search.html @@ -1,704 +1,870 @@ -% # options example... -% # (everything not commented required is optional) -% # -% # # basic options, required -% # 'title' => 'Page title', -% # -% # 'name_singular' => 'item', #singular name for the records returned -% # #OR# # (preferred, will be pluralized automatically) -% # 'name' => 'items', #plural name for the records returned -% # # (deprecated, will be singularlized -% # # simplisticly) -% # -% # # some HTML callbacks... -% # 'menubar' => '', #menubar arrayref -% # 'html_init' => '', #after the header/menubar and before the pager -% # 'html_form' => '', #after the pager, right before the results -% # # (only shown if there are results) -% # # (use this for any form-opening tag rather than -% # # html_init, to avoid a nested form) -% # 'html_foot' => '', #at the bottom -% # 'html_posttotal' => '', #at the bottom -% # # (these three can be strings or coderefs) -% # -% # -% # #literal SQL query string or qsearch hashref, required -% # 'query' => { -% # 'table' => 'tablename', -% # #everything else is optional... -% # 'hashref' => { 'field' => 'value', -% # 'field' => { 'op' => '<', -% # 'value' => '54', -% # }, -% # }, -% # 'select' => '*', -% # 'addl_from' => '', #'LEFT JOIN othertable USING ( key )', -% # 'extra_sql' => '', #'AND otherstuff', #'WHERE onlystuff', -% # 'order_by' => 'ORDER BY something', -% # -% # }, -% # # "select * from tablename"; -% # -% # #required unless 'query' is an SQL query string (shouldn't be...) -% # 'count_query' => 'SELECT COUNT(*) FROM tablename', -% # -% # 'count_addl' => [], #additional count fields listref of sprintf strings -% # # [ $money_char.'%.2f total paid', ], -% # -% # #listref of column labels,
+% } - | +