From 6cf964d0dc008621fb30fd2da28e2c44f29c6364 Mon Sep 17 00:00:00 2001 From: ivan Date: Thu, 27 Jan 2005 10:21:18 +0000 Subject: DHTML progress bar for glacial rate adding and editing, closes: Bug#1100 --- httemplate/misc/progress.html | 88 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 88 insertions(+) create mode 100644 httemplate/misc/progress.html (limited to 'httemplate/misc') diff --git a/httemplate/misc/progress.html b/httemplate/misc/progress.html new file mode 100644 index 000000000..cbff08b7b --- /dev/null +++ b/httemplate/misc/progress.html @@ -0,0 +1,88 @@ +<% + my( $jobnum ) = $cgi->param('jobnum'); + my( $url ) = $cgi->param('url'); + my $job = ''; + if ( $jobnum =~ /^(\d+)$/ ) { + $job = qsearchs('queue', { 'jobnum' => $jobnum } ); + } + if ( $job && $job->status ne 'failed' ) { +%> + + + + + Please wait... + + + + + + + + + +

Please wait... + + + +

+ +
<%= $job->statustext %>% +

(progress of job #<%= $jobnum %>) + + + +<% + } elsif ( !$job ) { #handle job gone case : job sucessful + # so close popup, redirect parent window... + #eidiot("write success handler (jobnum $jobnum)"); +%> + + + + + Operation successful + + + + + + + + + + + +<% + } else { +%> + + + + Error + + + + + + +

Error: <%= $job ? $job->statustext : $jobnum %> +

+ + + +<% } %> + + + -- cgit v1.2.1