Changeset 541 for trunk/cgi-bin/main.cgi


Ignore:
Timestamp:
11/02/12 15:54:31 (11 years ago)
Author:
Kris Deugau
Message:

/trunk

Start on SQL in admin.cgi. See #34.

  • Convert Q-n-D allocation list on main page to use existing getTypeList()
  • Convert timestamp-update master block list to use new getMasterList(), with a flag set to return the last-modified time. Also convert main.cgi new assignment page to use this, with the flag set to not return the lastmod.
  • Tweak admin main template to match

While following the code for the master block list, I also removed
several useless globals (@masterblocks, %allocated, %free, and
%routed) since they were only used originally in one place (index
page from main.cgi), obsoleted by changes in r523, and in fact got
overridden locally before that anyway.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cgi-bin/main.cgi

    r540 r541  
    338338    }
    339339  } else {
    340     my @masterlist;
    341     foreach my $master (@masterblocks) {
    342       my %row = (master => "$master");
    343       push (@masterlist, \%row);
    344     }
    345     $page->param(masterlist => \@masterlist);
     340    my $mlist = getMasterList($ip_dbh, 'c');
     341    $page->param(masterlist => $mlist);
    346342
    347343    my @pops;
Note: See TracChangeset for help on using the changeset viewer.