Changeset 480 for trunk/dns.cgi
- Timestamp:
- 03/13/13 17:57:03 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dns.cgi
r479 r480 439 439 440 440 fill_grouplist("grouplist"); 441 my $loclist = getLocDropdown($dbh,$curgroup);441 my $loclist = $dnsdb->getLocDropdown($curgroup); 442 442 $page->param(loclist => $loclist); 443 443 … … 1363 1363 unless ($permissions{admin} || $permissions{location_create}); 1364 1364 1365 my ($code,$msg) = addLoc($dbh,$curgroup, $webvar{locname}, $webvar{comments}, $webvar{iplist});1365 my ($code,$msg) = $dnsdb->addLoc($curgroup, $webvar{locname}, $webvar{comments}, $webvar{iplist}); 1366 1366 1367 1367 if ($code eq 'OK' || $code eq 'WARN') { … … 1387 1387 unless ($permissions{admin} || $permissions{location_edit}); 1388 1388 1389 my $loc = getLoc($dbh,$webvar{loc});1389 my $loc = $dnsdb->getLoc($webvar{loc}); 1390 1390 $page->param(wastrying => "editing"); 1391 1391 $page->param(todo => "Edit location/view"); … … 1400 1400 unless ($permissions{admin} || $permissions{location_edit}); 1401 1401 1402 my ($code,$msg) = updateLoc($dbh,$webvar{id}, $curgroup, $webvar{locname}, $webvar{comments}, $webvar{iplist});1402 my ($code,$msg) = $dnsdb->updateLoc($webvar{id}, $curgroup, $webvar{locname}, $webvar{comments}, $webvar{iplist}); 1403 1403 1404 1404 if ($code eq 'OK') { … … 1438 1438 1439 1439 $page->param(locid => $webvar{locid}); 1440 my $locdata = getLoc($dbh,$webvar{locid});1440 my $locdata = $dnsdb->getLoc($webvar{locid}); 1441 1441 $locdata->{description} = $webvar{locid} if !$locdata->{description}; 1442 1442 # first pass = confirm y/n (sorta) … … 1445 1445 $page->param(location => $locdata->{description}); 1446 1446 } elsif ($webvar{del} eq 'ok') { 1447 my ($code,$msg) = delLoc($dbh,$webvar{locid});1447 my ($code,$msg) = $dnsdb->delLoc($webvar{locid}); 1448 1448 if ($code eq 'OK') { 1449 1449 # success. go back to the user list, do not pass "GO" … … 2174 2174 2175 2175 if ($permissions{admin} || $permissions{record_locchg}) { 2176 my $loclist = getLocDropdown($dbh,$cur, $defloc);2176 my $loclist = $dnsdb->getLocDropdown($cur, $defloc); 2177 2177 $page->param(record_locchg => 1); 2178 2178 $page->param(loclist => $loclist); 2179 2179 } else { 2180 my $loc = getLoc($dbh,$defloc);2180 my $loc = $dnsdb->getLoc($defloc); 2181 2181 $page->param(loc_name => $loc->{description}); 2182 2182 } … … 2237 2237 my $childlist = join(',',@childgroups); 2238 2238 2239 my $count = getLocCount($dbh,(childlist => $childlist, curgroup => $curgroup,2240 filter => ($filter ? $filter : undef), startwith => ($startwith ? $startwith : undef) ) );2239 my $count = $dnsdb->getLocCount(childlist => $childlist, curgroup => $curgroup, 2240 filter => ($filter ? $filter : undef), startwith => ($startwith ? $startwith : undef) ); 2241 2241 2242 2242 # fill page count and first-previous-next-last-all bits … … 2263 2263 $page->param(searchsubs => $searchsubs) if $searchsubs; 2264 2264 2265 my $loclist = getLocList($dbh,(childlist => $childlist, curgroup => $curgroup,2265 my $loclist = $dnsdb->getLocList(childlist => $childlist, curgroup => $curgroup, 2266 2266 filter => ($filter ? $filter : undef), startwith => ($startwith ? $startwith : undef), 2267 offset => $webvar{offset}, sortby => $sortby, sortorder => $sortorder) );2267 offset => $webvar{offset}, sortby => $sortby, sortorder => $sortorder); 2268 2268 # Some UI things need to be done to the list 2269 2269 foreach my $l (@{$loclist}) {
Note:
See TracChangeset
for help on using the changeset viewer.