/[omni_gantt]/db2gantt.cgi
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /db2gantt.cgi

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.16 by dpavlin, Sat Sep 14 21:45:23 2002 UTC revision 1.19 by dpavlin, Sun Sep 15 19:29:38 2002 UTC
# Line 17  my $use_js = 1;                # use JavaScript pop-up Line 17  my $use_js = 1;                # use JavaScript pop-up
17  # status colors  # status colors
18  my %cols = (  my %cols = (
19          'In Progress'           => '0,255,0',          'In Progress'           => '0,255,0',
20          'In Progress/Failures'  => '255,64,255',          'In Progress/Failures'  => '192,64,192',
21          'In Progress/Errors'    => '255,64,0',          'In Progress/Errors'    => '255,128,128',
22          'Queuing'               => '255,255,0',          'Queuing'               => '255,255,0',
23          'Aborted'               => '255,0,0',          'Aborted'               => '255,0,0',
24          'Failed'                => '255,0,0',          'Failed'                => '255,0,0',
# Line 220  my $sql = "select start,finish,specifica Line 220  my $sql = "select start,finish,specifica
220          from gantt          from gantt
221          where (start < '$from' and finish > '$from') or          where (start < '$from' and finish > '$from') or
222          (start > '$from' and start < '$to')          (start > '$from' and start < '$to')
223          order by device,specification          order by device,specification,start
224          ";          ";
225    
226  my $sth = $dbh->prepare($sql) || die "sql: $sql ".$dbh->errstr;  my $sth = $dbh->prepare($sql) || die "sql: $sql ".$dbh->errstr;
# Line 286  while(my $row = $sth->fetchrow_hashref) Line 286  while(my $row = $sth->fetchrow_hashref)
286          my $alt = $row->{start}." - ".$row->{finish}."<br>";          my $alt = $row->{start}." - ".$row->{finish}."<br>";
287          $alt =~ s/:\d\d\.\d+//g;          $alt =~ s/:\d\d\.\d+//g;
288          $alt =~ s/\s+/&nbsp;/g;          $alt =~ s/\s+/&nbsp;/g;
289          $alt .= $row->{type}." <b>".$row->{status}."</b><br>".          $alt .= $row->{specification}."<br>".
290          $row->{user_group_host}." <i>".$row->{sessionid}."</i><br>".                  $row->{type}." <b>".$row->{status}."</b><br>".
291          $row->{device}."&nbsp;on&nbsp;".$row->{host};                  $row->{user_group_host}." <i>".$row->{sessionid}."</i><br>".
292                    $row->{device}."&nbsp;on&nbsp;".$row->{host};
293          print bar($len,$row->{status},$alt);          print bar($len,$row->{status},$alt);
294    
295          $curr_t += $len;          $curr_t += $len;

Legend:
Removed from v.1.16  
changed lines
  Added in v.1.19

  ViewVC Help
Powered by ViewVC 1.1.26