Changeset 564 for trunk


Ignore:
Timestamp:
12/19/12 16:24:47 (12 years ago)
Author:
Kris Deugau
Message:

/trunk

Work in progress, see #5:
Update getTypeList() for new dropdown list requirements

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cgi-bin/IPDB.pm

    r563 r564  
    550550                                # really be specified in the call for clarity
    551551  my $tlist;
    552   if ($tgroup eq 'p') {
    553     # grouping 'p' - primary allocation types.  These include static IP pools (_d and _p),
    554     # dynamic-allocation ranges (_e), containers (_c), and the "miscellaneous" cn, in, and en types.
    555     $tlist = $dbh->selectall_arrayref("SELECT type,listname FROM alloctypes WHERE listorder < 500 ".
     552  if ($tgroup eq 'n') {
     553    # grouping 'p' - all netblock types.  These include routed blocks, containers (_c)
     554    # and contained (_r) types, dynamic-allocation ranges (_e), static IP pools (_d and _p),
     555    # and the "miscellaneous" cn, in, and en types.
     556    $tlist = $dbh->selectall_arrayref("SELECT type,listname FROM alloctypes WHERE listorder <= 500 ".
     557        "AND type NOT LIKE '_i' ORDER BY listorder", { Slice => {} });
     558  } elsif ($tgroup eq 'p') {
     559    # grouping 'p' - primary allocation types.  As with 'n' above but without the _r contained types.
     560    $tlist = $dbh->selectall_arrayref("SELECT type,listname FROM alloctypes WHERE listorder <= 500 ".
    556561        "AND type NOT LIKE '_i' AND type NOT LIKE '_r' ORDER BY listorder", { Slice => {} });
    557562  } elsif ($tgroup eq 'c') {
Note: See TracChangeset for help on using the changeset viewer.