version 1.41, 2004/01/26 19:55:44
|
version 1.45, 2004/02/03 21:52:22
|
Line 826 Returns: none
|
Line 826 Returns: none
|
# Create progress |
# Create progress |
sub Create_PrgWin { |
sub Create_PrgWin { |
my ($r, $title, $heading, $number_to_do)=@_; |
my ($r, $title, $heading, $number_to_do)=@_; |
|
#the whole function called through timeout is due to issues |
|
#in mozilla Read BUG #2665 if you want to know the whole story |
$r->print('<script>'. |
$r->print('<script>'. |
"popwin=open(\'\',\'popwin\',\'width=400,height=100\');". |
"var popwin; |
|
function openpopwin () { |
|
popwin=open(\'\',\'popwin\',\'width=400,height=100\');". |
"popwin.document.writeln(\'<html><head><title>$title</title></head>". |
"popwin.document.writeln(\'<html><head><title>$title</title></head>". |
"<body bgcolor=\"#88DDFF\">". |
"<body bgcolor=\"#88DDFF\">". |
"<h4>$heading</h4>". |
"<h4>$heading</h4>". |
Line 835 sub Create_PrgWin {
|
Line 839 sub Create_PrgWin {
|
'<input type="text" size="55" name="remaining" value="'. |
'<input type="text" size="55" name="remaining" value="'. |
&mt('Starting').'"></form>'. |
&mt('Starting').'"></form>'. |
"</body></html>\');". |
"</body></html>\');". |
"popwin.document.close();". |
"popwin.document.close();}". |
"</script>"); |
"\nwindow.setTimeout(openpopwin,0)</script>"); |
|
|
my %prog_state; |
my %prog_state; |
$prog_state{'done'}=0; |
$prog_state{'done'}=0; |
Line 924 sub crumbs {
|
Line 928 sub crumbs {
|
my ($uri,$target,$prefix,$form)=@_; |
my ($uri,$target,$prefix,$form)=@_; |
my $output='<br /><tt><b><font size="+2">'.$prefix.'/'; |
my $output='<br /><tt><b><font size="+2">'.$prefix.'/'; |
if ($ENV{'user.adv'}) { |
if ($ENV{'user.adv'}) { |
my $path=$prefix; |
my $path=$prefix.'/'; |
foreach (split('/',$uri)) { |
foreach (split('/',$uri)) { |
unless ($_) { next; } |
unless ($_) { next; } |
$path.='/'.$_; |
$path.=$_; |
|
unless ($path eq $uri) { $path.='/'; } |
my $linkpath=$path; |
my $linkpath=$path; |
if ($form) { |
if ($form) { |
$linkpath="javascript:$form.action='$path';$form.submit();"; |
$linkpath="javascript:$form.action='$path';$form.submit();"; |