Changeset 167 for trunk/cgi-bin/IPDB.pm
- Timestamp:
- 02/22/05 14:25:58 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/cgi-bin/IPDB.pm
r157 r167 22 22 @ISA = qw(Exporter); 23 23 @EXPORT_OK = qw( 24 %disp_alloctypes %list_alloctypes @citylist @poplist @masterblocks24 %disp_alloctypes %list_alloctypes %def_custids @citylist @poplist @masterblocks 25 25 %allocated %free %routed %bigfree 26 26 &initIPDBGlobals &connectDB &finish &checkDBSanity &allocateBlock &deleteBlock … … 30 30 @EXPORT = (); # Export nothing by default. 31 31 %EXPORT_TAGS = ( ALL => [qw( 32 %disp_alloctypes %list_alloctypes @citylist @poplist @masterblocks33 %allocated %free %routed %bigfree32 %disp_alloctypes %list_alloctypes %def_custids @citylist @poplist 33 @masterblocks %allocated %free %routed %bigfree 34 34 &initIPDBGlobals &connectDB &finish &checkDBSanity &allocateBlock 35 35 &deleteBlock &mailNotify … … 42 42 our %disp_alloctypes; 43 43 our %list_alloctypes; 44 our %def_custids; 44 45 our @citylist; 45 46 our @poplist; … … 58 59 59 60 # Initialize alloctypes hashes 60 $sth = $dbh->prepare("select type,listname,dispname,listorder from alloctypes order by listorder");61 $sth = $dbh->prepare("select type,listname,dispname,listorder,def_custid from alloctypes order by listorder"); 61 62 $sth->execute; 62 63 while (my @data = $sth->fetchrow_array) { 63 64 $disp_alloctypes{$data[0]} = $data[2]; 65 $def_custids{$data[0]} = $data[4]; 64 66 if ($data[3] < 900) { 65 67 $list_alloctypes{$data[0]} = $data[1];
Note:
See TracChangeset
for help on using the changeset viewer.