- Timestamp:
- 05/05/05 11:15:21 (20 years ago)
- Location:
- branches/stable
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/cgi-bin/main.cgi
r244 r245 1113 1113 # because I'm lazy, we'll try to make the SELECT's bring out identical)ish) data 1114 1114 if ($webvar{block} =~ /\/32$/) { 1115 $sql = "select ip,custid,type,city,circuitid,description,notes from poolips where ip='$webvar{block}'";1115 $sql = "select ip,custid,type,city,circuitid,description,notes,modifystamp from poolips where ip='$webvar{block}'"; 1116 1116 } else { 1117 $sql = "select cidr,custid,type,city,circuitid,description,notes, swip from allocations where cidr='$webvar{block}'"1117 $sql = "select cidr,custid,type,city,circuitid,description,notes,modifystamp,swip from allocations where cidr='$webvar{block}'" 1118 1118 } 1119 1119 … … 1174 1174 $html =~ s/\$\$NOTES\$\$/$data[6]/g; 1175 1175 } 1176 my ($lastmod,undef) = split /\s+/, $data[7]; 1177 $html =~ s/\$\$LASTMOD\$\$/$lastmod/g; 1176 1178 1177 1179 ## Hack time! SWIP isn't going to stay, so I'm not going to integrate it with ACLs. … … 1179 1181 $html =~ s/\$\$SWIP\$\$/N\/A/; 1180 1182 } else { 1181 my $tmp = (($data[ 7] eq 'n') ? '<input type=checkbox name=swip>' :1183 my $tmp = (($data[8] eq 'n') ? '<input type=checkbox name=swip>' : 1182 1184 '<input type=checkbox name=swip checked=yes>'); 1183 1185 $html =~ s/\$\$SWIP\$\$/$tmp/; 1184 1186 } 1187 1188 # Allows us to "correctly" colour backgrounds in table 1189 my $i=1; 1185 1190 1186 1191 # More ACL trickery - we can live with forms that don't submit, … … 1188 1193 # can't leave the submit buttons there. 1189 1194 my $updok = ''; 1190 my $i=2;1191 1195 if ($IPDBacl{$authuser} =~ /c/) { 1192 1196 $updok = qq(<tr class="color$i"><td colspan=2 class=regular><div class="center">). 1193 1197 qq(<input type="submit" value=" Update this block " class="regular">). 1194 1198 "</div></td></tr></form>\n"; 1195 $i --;1199 $i++; 1196 1200 } 1197 1201 $html =~ s/\$\$UPDOK\$\$/$updok/g; -
branches/stable/editDisplay.html
r244 r245 16 16 <tr class="color2"><td class=heading>SWIPed?:</td><td class=regular>$$SWIP$$</td></tr> 17 17 18 <tr class="color1"><td class= "heading">Circuit ID:</td><td class="regular">$$CIRCID$$</td></tr>18 <tr class="color1"><td class=heading>Last modified:</td><td class=regular>$$LASTMOD$$</td></tr> 19 19 20 <tr class="color2"><td class="heading"> Description/Name:</td><td class="regular">$$DESC$$</td></tr>20 <tr class="color2"><td class="heading">Circuit ID:</td><td class="regular">$$CIRCID$$</td></tr> 21 21 22 <tr class="color1"><td class="heading" valign="top">Notes:</td><td class="regular">$$NOTES$$</td></tr> 22 <tr class="color1"><td class="heading">Description/Name:</td><td class="regular">$$DESC$$</td></tr> 23 24 <tr class="color2"><td class="heading" valign="top">Notes:</td><td class="regular">$$NOTES$$</td></tr> 23 25 24 26 $$UPDOK$$
Note:
See TracChangeset
for help on using the changeset viewer.