]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/reporter/templates/widgets/string-choose.dropdown
libraries are now filtered on id (there are duplicate names, such as "Bookmobile")
[Evergreen.git] / Open-ILS / src / reporter / templates / widgets / string-choose.dropdown
1 [%
2
3 PROCESS inputs;
4
5 q = 'SELECT * FROM ' _ table.findvalue('tablename') _ ' ORDER BY ' _ fieldname _ ';';
6
7 '<script language="javascript">filters["' _ input_prefix _ '"] = "' _ table_label _ ' -- ' _ field.findvalue('label') _ '";</script>';
8
9 WRAPPER select name=input_prefix;
10         INCLUDE option value='' content='Select One';
11         INCLUDE option value='' content='----------';
12         FOR f = DBI.query(q);
13                 INCLUDE option value=f.$fieldname;
14         END;
15 END;
16
17 %]