Changeset 255


Ignore:
Timestamp:
05/31/05 14:18:35 (20 years ago)
Author:
Kris Deugau
Message:

/trunk

Merge "Last Modified" display from /branches/stable r245
main.cgi did not merge cleanly due to SWIP hack in /branches/stable r244

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/cgi-bin/main.cgi

    r247 r255  
    920920  # because I'm lazy, we'll try to make the SELECT's bring out identical)ish) data
    921921  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}'";
    923923  } 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}'"
    925925  }
    926926
     
    981981    $html =~ s/\$\$NOTES\$\$/$data[6]/g;
    982982  }
     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;
    983988
    984989  # More ACL trickery - we can live with forms that don't submit,
     
    986991  # can't leave the submit buttons there.
    987992  my $updok = '';
    988   my $i=2;
    989993  if ($IPDBacl{$authuser} =~ /c/) {
    990994    $updok = qq(<tr class="color$i"><td colspan=2><div class="center">).
    991995        qq(<input type="submit" value=" Update this block " class="regular">).
    992996        "</div></td></tr></form>\n";
    993     $i--;
     997    $i++;
    994998  }
    995999  $html =~ s/\$\$UPDOK\$\$/$updok/g;
  • trunk/editDisplay.html

    r254 r255  
    1414<tr class="color2"><td class=heading>CustID:</td><td class="regular">$$CUSTID$$</td></tr>
    1515
    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>
    1717
    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>
    1919
    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>
    2123
    2224$$UPDOK$$
Note: See TracChangeset for help on using the changeset viewer.