Changeset 605 for branches/stable/cgi-bin
- Timestamp:
- 10/09/13 15:36:14 (11 years ago)
- Location:
- branches/stable
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable
-
branches/stable/cgi-bin/IPDB.pm
r601 r605 514 514 # and contained (_r) types, dynamic-allocation ranges (_e), static IP pools (_d and _p), 515 515 # and the "miscellaneous" cn, in, and en types. 516 $tlist = $dbh->selectall_arrayref("SELECT type,listname FROM alloctypes WHERE listorder < =500 ".516 $tlist = $dbh->selectall_arrayref("SELECT type,listname FROM alloctypes WHERE listorder < 500 ". 517 517 "AND type NOT LIKE '_i' ORDER BY listorder", { Slice => {} }); 518 518 } elsif ($tgroup eq 'p') { -
branches/stable/cgi-bin/admin.cgi
r601 r605 203 203 my ($retcode,$msg) = allocateBlock($ip_dbh, $webvar{cidr}, $webvar{alloc_from}, 204 204 $webvar{custid}, $webvar{alloctype}, $webvar{city}, $webvar{desc}, $webvar{notes}, 205 $webvar{circid} );205 $webvar{circid}, undef, undef, $webvar{vrf}); 206 206 if ($retcode eq 'OK') { 207 207 syslog "notice", "$authuser allocated '$webvar{cidr}' to '$webvar{custid}' as ". -
branches/stable/cgi-bin/main.cgi
r601 r605 679 679 $page->param(havenodeid => $nodeid); 680 680 681 if ($blockinfo->{type} eq 'fr' || $blockinfo->{type} eq 'bi' ) {681 if ($blockinfo->{type} eq 'fr' || $blockinfo->{type} eq 'bi' || $blockinfo->{type} eq 'ai') { 682 682 $page->param(typesupportsnodes => 1); 683 683 $page->param(nodename => $nodename); -
branches/stable/cgi-bin/search.cgi
r601 r605 148 148 # Columns actually returned. Slightly better than hardcoding it 149 149 # in each (sub)select 150 my $cols = "cidr,custid,type,city,description ";150 my $cols = "cidr,custid,type,city,description,vrf"; 151 151 152 152 # hack fix for undefined variables … … 350 350 # which probably shouldn't be for reasons of sanity. 351 351 352 my $cols = "cidr,custid,type,city,description ";352 my $cols = "cidr,custid,type,city,description,vrf"; 353 353 354 354 if ($category eq 'all') { … … 368 368 # Query for a customer ID. Note that we can't restrict to "numeric-only" 369 369 # as we have non-numeric custIDs in the legacy data. :/ 370 $sql = "select $cols from searchme where custid ilike '%$query%' or description ilike '%$query%'"; 370 $sql = "select $cols from searchme where custid ilike '%$query%'". 371 " or description ilike '%$query%' or vrf ilike '%$query%'"; 371 372 my $count = countRows($sql); 372 373 $sql .= " order by cidr limit $RESULTS_PER_PAGE offset $offset"; … … 465 466 my $count = 0; 466 467 my @sresults; 467 while (my ($block, $custid, $type, $city, $desc ) = $sth->fetchrow_array) {468 while (my ($block, $custid, $type, $city, $desc, $vrf) = $sth->fetchrow_array) { 468 469 my %row = ( 469 470 rowclass => $count++ % 2, … … 474 475 disptype => $disp_alloctypes{$type}, 475 476 city => $city, 476 desc => $desc 477 desc => $desc, 478 vrf => $vrf, 477 479 ); 478 480 push @sresults, \%row;
Note:
See TracChangeset
for help on using the changeset viewer.