Changeset 318 for branches/stable/cgi-bin/main.cgi
- Timestamp:
- 04/03/06 16:20:54 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/cgi-bin/main.cgi
r315 r318 987 987 # because I'm lazy, we'll try to make the SELECT's bring out identical)ish) data 988 988 if ($webvar{block} =~ /\/32$/) { 989 $sql = "select ip,custid,type,city,circuitid,description,notes,modifystamp,privdata from poolips where ip='$webvar{block}'";989 $sql = "select ip,custid,type,city,circuitid,description,notes,modifystamp,privdata,oldcustid from poolips where ip='$webvar{block}'"; 990 990 } else { 991 $sql = "select cidr,custid,type,city,circuitid,description,notes,modifystamp,privdata, swip from allocations where cidr='$webvar{block}'"991 $sql = "select cidr,custid,type,city,circuitid,description,notes,modifystamp,privdata,oldcustid,swip from allocations where cidr='$webvar{block}'" 992 992 } 993 993 … … 1036 1036 $html =~ s/\$\$TYPESELECT\$\$/$disp_alloctypes{$data[2]}<input type=hidden name=alloctype value="$data[2]">/g; 1037 1037 } 1038 $html =~ s/\$\$OLDCUSTID\$\$/$data[9]/g; 1038 1039 $html =~ s/\$\$CITY\$\$/<input type=text name=city value="$data[3]">/g; 1039 1040 $html =~ s/\$\$CIRCID\$\$/<input type="text" name="circid" value="$data[4]" maxlength=64 size=64 class="regular">/g; … … 1042 1043 } else { 1043 1044 $html =~ s/\$\$CUSTID\$\$/$data[1]/g; 1045 $html =~ s/\$\$OLDCUSTID\$\$/$data[9]/g; 1044 1046 $html =~ s/\$\$TYPESELECT\$\$/$disp_alloctypes{$data[2]}/g; 1045 1047 $html =~ s/\$\$CITY\$\$/$data[3]/g; … … 1055 1057 $html =~ s/\$\$SWIP\$\$/N\/A/; 1056 1058 } else { 1057 my $tmp = (($data[ 8] eq 'n') ? '<input type=checkbox name=swip>' :1059 my $tmp = (($data[10] eq 'n') ? '<input type=checkbox name=swip>' : 1058 1060 '<input type=checkbox name=swip checked=yes>'); 1059 1061 $html =~ s/\$\$SWIP\$\$/$tmp/;
Note:
See TracChangeset
for help on using the changeset viewer.