Changeset 937 for trunk/cgi-bin
- Timestamp:
- 12/23/22 12:47:58 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/cgi-bin/IPDB.pm
r936 r937 3572 3572 ## IPDB::getNodeList() 3573 3573 # Gets a list of node ID+name pairs as an arrayref to a list of hashrefs 3574 # Takes an optional argument to flag a selected node for dropdown lists 3574 3575 sub getNodeList { 3575 3576 my $dbh = shift; 3577 my $sel = shift || 0; 3576 3578 3577 my $ret = $dbh->selectall_arrayref("SELECT node_id, node_name FROM nodes ORDER BY node_type,node_id", 3578 { Slice => {} }); 3579 my $ret = $dbh->selectall_arrayref("SELECT node_id, node_name, node_id=? AS selected FROM nodes". 3580 " ORDER BY node_name,node_type,node_id", 3581 { Slice => {} }, ($sel) ); 3579 3582 return $ret; 3580 3583 } # end getNodeList()
Note:
See TracChangeset
for help on using the changeset viewer.