| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
# -*- perl -*- |
|
2
|
|
|
|
|
|
|
# |
|
3
|
|
|
|
|
|
|
# Wizard - A Perl package for implementing system administration |
|
4
|
|
|
|
|
|
|
# applications in the style of Windows wizards. |
|
5
|
|
|
|
|
|
|
# |
|
6
|
|
|
|
|
|
|
# |
|
7
|
|
|
|
|
|
|
# This module is |
|
8
|
|
|
|
|
|
|
# |
|
9
|
|
|
|
|
|
|
# Copyright (C) 1999 Jochen Wiedmann |
|
10
|
|
|
|
|
|
|
# Am Eisteich 9 |
|
11
|
|
|
|
|
|
|
# 72555 Metzingen |
|
12
|
|
|
|
|
|
|
# Germany |
|
13
|
|
|
|
|
|
|
# |
|
14
|
|
|
|
|
|
|
# Email: joe@ispsoft.de |
|
15
|
|
|
|
|
|
|
# Phone: +49 7123 14887 |
|
16
|
|
|
|
|
|
|
# |
|
17
|
|
|
|
|
|
|
# and Amarendran R. Subramanian |
|
18
|
|
|
|
|
|
|
# Grundstr. 32 |
|
19
|
|
|
|
|
|
|
# 72810 Gomaringen |
|
20
|
|
|
|
|
|
|
# Germany |
|
21
|
|
|
|
|
|
|
# |
|
22
|
|
|
|
|
|
|
# Email: amar@ispsoft.de |
|
23
|
|
|
|
|
|
|
# Phone: +49 7072 920696 |
|
24
|
|
|
|
|
|
|
# |
|
25
|
|
|
|
|
|
|
# All Rights Reserved. |
|
26
|
|
|
|
|
|
|
# |
|
27
|
|
|
|
|
|
|
# You may distribute under the terms of either the GNU General Public |
|
28
|
|
|
|
|
|
|
# License or the Artistic License, as specified in the Perl README file. |
|
29
|
|
|
|
|
|
|
# |
|
30
|
|
|
|
|
|
|
# $Id$ |
|
31
|
|
|
|
|
|
|
# |
|
32
|
|
|
|
|
|
|
|
|
33
|
1
|
|
|
1
|
|
613
|
use strict; |
|
|
1
|
|
|
|
|
3
|
|
|
|
1
|
|
|
|
|
31
|
|
|
34
|
|
|
|
|
|
|
|
|
35
|
1
|
|
|
1
|
|
5
|
use Wizard::Elem::HTML (); |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
369
|
|
|
36
|
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
package Wizard::Elem::Link::HTML; |
|
39
|
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
@Wizard::Elem::Link::HTML::ISA = qw(Wizard::Elem::HTML); |
|
41
|
|
|
|
|
|
|
$Wizard::Elem::Link::HTML::VERSION = '0.01'; |
|
42
|
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
sub Display { |
|
45
|
0
|
|
|
0
|
0
|
|
my($self, $wiz, $form, $state) = @_; |
|
46
|
0
|
|
|
|
|
|
$self->SUPER::Display($wiz, $form, $state); |
|
47
|
0
|
|
|
|
|
|
my $value = $self->{'value'}; |
|
48
|
0
|
0
|
|
|
|
|
unless($value) { |
|
49
|
0
|
|
0
|
|
|
|
my $hurl = $form->HelpUrl() || 'gethelp.ep'; |
|
50
|
0
|
|
|
|
|
|
my $mod = ref($state); my $item = $mod; |
|
|
0
|
|
|
|
|
|
|
|
51
|
0
|
|
0
|
|
|
|
my $action = $self->{'action'} || $wiz->Action(); |
|
52
|
0
|
|
|
|
|
|
$action =~ s/\-/\_/g; $action =~ s/^Action\_//; |
|
|
0
|
|
|
|
|
|
|
|
53
|
0
|
|
|
|
|
|
$mod =~ s/\::/\//g; $mod .= '.pm'; |
|
|
0
|
|
|
|
|
|
|
|
54
|
0
|
|
|
|
|
|
$item =~ s/^[^\:]\:://g; $item = $item . "_Menu"; |
|
|
0
|
|
|
|
|
|
|
|
55
|
0
|
|
0
|
|
|
|
$value = $hurl . '?module=' . CGI->escape($mod) |
|
56
|
|
|
|
|
|
|
. '#' . CGI->escape($action || $item); |
|
57
|
|
|
|
|
|
|
} |
|
58
|
0
|
|
0
|
|
|
|
$form->AddHTML(' |
| ' . HTML::Entities::encode_entities($self->{'descr'} || 'Help') . ' |
');
|
59
|
|
|
|
|
|
|
} |
|
60
|
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
1; |