Changeset 72 for trunk/dns.cgi
- Timestamp:
- 02/16/11 18:04:21 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dns.cgi
r70 r72 252 252 my ($count) = ($sth->fetchrow_array); 253 253 254 ##work 255 # set up the headers 256 my @cols = ('host', 'type', 'val', 'distance', 'weight', 'port', 'ttl'); 257 my %colheads = (host => 'Name', type => 'Type', val => 'Address', 258 distance => 'Distance', weight => 'Weight', port => 'Port', ttl => 'TTL'); 259 my %custom = (id => $webvar{id}, defrec => $webvar{defrec}); 260 fill_colheads($sortby, $sortorder, \@cols, \%colheads, \%custom); 261 254 262 # fill the page-count and first-previous-next-last-all details 255 263 fill_pgcount($count,"records",domainName($dbh,$webvar{id})); … … 1097 1105 $page->param(minttl => $soa{minttl}); 1098 1106 $page->param(ttl => $soa{ttl}); 1107 1108 $startwith = $session->param($webvar{page}.'startwith'); 1109 $filter = $session->param($webvar{page}.'filter'); 1099 1110 1100 1111 # my @foo2 = getDomRecs($dbh,'def',1); … … 1484 1495 my $cols = shift; 1485 1496 my $colnames = shift; 1497 my $custom = shift; 1486 1498 1487 1499 my @headings; … … 1501 1513 $coldata{order} = 'ASC'; 1502 1514 } 1515 if ($custom) { 1516 foreach my $ckey (keys %$custom) { 1517 $coldata{$ckey} = $custom->{$ckey}; 1518 } 1519 } 1503 1520 push @headings, \%coldata; 1504 1521 }
Note:
See TracChangeset
for help on using the changeset viewer.