|
From: Bob T. <bt...@us...> - 2004-02-10 01:11:54
|
Update of /cvsroot/benson/benson3/scripts/cgi In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2527 Modified Files: alertview.cgi.tmpl Log Message: Added the override stuff in. Index: alertview.cgi.tmpl =================================================================== RCS file: /cvsroot/benson/benson3/scripts/cgi/alertview.cgi.tmpl,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** alertview.cgi.tmpl 9 Feb 2004 06:53:13 -0000 1.3 --- alertview.cgi.tmpl 9 Feb 2004 22:26:46 -0000 1.4 *************** *** 18,21 **** --- 18,22 ---- my $query = new CGI; my $dbh = DBI->connect($queue->get("DBIConnectString"), $queue->get("DBIUsername"),$queue->get("DBIPassword")); + my $date_and_time = POSIX::strftime("%A %B %d, %Y - %T", localtime(time())); my $webserver_url = $queue->get("WebserverURL"); *************** *** 51,56 **** - my $date_and_time = "null"; - my $sort_field = $query->param("sort_field") || "severity"; my $sort_type = $query->param("sort_type") || "ascend"; --- 52,55 ---- *************** *** 101,105 **** $queue->submit(subsystem => "Benson", severity => "informational", ! message => "suppress_remove identity:$val"); print "done\n"; } --- 100,104 ---- $queue->submit(subsystem => "Benson", severity => "informational", ! message => "suppress_remove override:yes identity:$val"); print "done\n"; } *************** *** 287,290 **** --- 286,290 ---- <td background="/images/header.gif" align="right"><font color="#FFFFFF"><b>End Time</b></font></td> <td background="/images/header.gif" align="right"><font color="#FFFFFF"><b>Reason</b></font></td> + <td background="/images/header.gif" align="center"><font color="#FFFFFF"><b>OR</b></font></td> <td background="/images/header.gif" align="right"><font color="#FFFFFF"><b>REM</b></font></td> </tr> *************** *** 297,300 **** --- 297,301 ---- starttime, endtime, + override, reason FROM *************** *** 314,317 **** --- 315,319 ---- my $endtime = $row->{endtime}; my $reason = $row->{reason}; + my $override = $row->{override}; print <<EOT <tr> *************** *** 321,324 **** --- 323,327 ---- <td>$endtime</td> <td>$reason</td> + <td>$override</td> <td><input type="checkbox" name="sup_rem:$id"></td> </tr> |