- Timestamp:
- 05/31/05 14:18:35 (20 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/cgi-bin/main.cgi
r247 r255 920 920 # because I'm lazy, we'll try to make the SELECT's bring out identical)ish) data 921 921 if ($webvar{block} =~ /\/32$/) { 922 $sql = "select ip,custid,type,city,circuitid,description,notes from poolips where ip='$webvar{block}'";922 $sql = "select ip,custid,type,city,circuitid,description,notes,modifystamp from poolips where ip='$webvar{block}'"; 923 923 } else { 924 $sql = "select cidr,custid,type,city,circuitid,description,notes from allocations where cidr='$webvar{block}'"924 $sql = "select cidr,custid,type,city,circuitid,description,notes,modifystamp from allocations where cidr='$webvar{block}'" 925 925 } 926 926 … … 981 981 $html =~ s/\$\$NOTES\$\$/$data[6]/g; 982 982 } 983 my ($lastmod,undef) = split /\s+/, $data[7]; 984 $html =~ s/\$\$LASTMOD\$\$/$lastmod/g; 985 986 # Allows us to "correctly" colour backgrounds in table 987 my $i=1; 983 988 984 989 # More ACL trickery - we can live with forms that don't submit, … … 986 991 # can't leave the submit buttons there. 987 992 my $updok = ''; 988 my $i=2;989 993 if ($IPDBacl{$authuser} =~ /c/) { 990 994 $updok = qq(<tr class="color$i"><td colspan=2><div class="center">). 991 995 qq(<input type="submit" value=" Update this block " class="regular">). 992 996 "</div></td></tr></form>\n"; 993 $i --;997 $i++; 994 998 } 995 999 $html =~ s/\$\$UPDOK\$\$/$updok/g; -
trunk/editDisplay.html
r254 r255 14 14 <tr class="color2"><td class=heading>CustID:</td><td class="regular">$$CUSTID$$</td></tr> 15 15 16 <tr class="color1"><td class= "heading">Circuit ID:</td><td class="regular">$$CIRCID$$</td></tr>16 <tr class="color1"><td class=heading>Last modified:</td><td class=regular>$$LASTMOD$$</td></tr> 17 17 18 <tr class="color2"><td class="heading"> Description/Name:</td><td class="regular">$$DESC$$</td></tr>18 <tr class="color2"><td class="heading">Circuit ID:</td><td class="regular">$$CIRCID$$</td></tr> 19 19 20 <tr class="color1"><td class="heading" valign="top">Notes:</td><td class="regular">$$NOTES$$</td></tr> 20 <tr class="color1"><td class="heading">Description/Name:</td><td class="regular">$$DESC$$</td></tr> 21 22 <tr class="color2"><td class="heading" valign="top">Notes:</td><td class="regular">$$NOTES$$</td></tr> 21 23 22 24 $$UPDOK$$
Note:
See TracChangeset
for help on using the changeset viewer.