Changeset 519 for trunk/cgi-bin/main.cgi
- Timestamp:
- 10/19/12 16:15:59 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/cgi-bin/main.cgi
r517 r519 155 155 } 156 156 elsif ($webvar{action} eq 'nodesearch') { 157 $sth = $ip_dbh->prepare("SELECT node_id, node_name FROM nodes ORDER BY node_type,node_id"); 158 $sth->execute() or $page->param(errmsg => $sth->errstr); 159 my @nodelist; 160 while (my ($nid,$nname) = $sth->fetchrow_array()) { 161 my %row = (nodeid => $nid, nodename => $nname); 162 push @nodelist, \%row; 163 } 164 $page->param(nodelist => \@nodelist); 157 my $nodelist = getNodeList($ip_dbh); 158 $page->param(nodelist => $nodelist); 165 159 } 166 160 … … 201 195 } 202 196 203 197 $sth->finish if $sth; 204 198 # Clean up IPDB globals, DB handle, etc. 205 199 finish($ip_dbh);
Note:
See TracChangeset
for help on using the changeset viewer.