60 |
my $data_js = ''; |
my $data_js = ''; |
61 |
if ( $dataset ) { |
if ( $dataset ) { |
62 |
$data_js = 'var datasets = ' . to_json( $dataset ) . ";\n"; |
$data_js = 'var datasets = ' . to_json( $dataset ) . ";\n"; |
63 |
$placeholder = qq|<div id="placeholder" style="width:600px;height:300px;"></div>|; |
$placeholder = qq| |
64 |
|
<div id="placeholder" style="width:600px;height:300px;"></div> |
65 |
|
<div id="selection">no selection</div> |
66 |
|
|; |
67 |
} |
} |
68 |
|
|
69 |
warn "# $data_js" if $self->debug; |
warn "# $data_js" if $self->debug; |
87 |
warn "# $flag | $desc"; |
warn "# $flag | $desc"; |
88 |
my $v = "$c $flag"; |
my $v = "$c $flag"; |
89 |
my $checked = ''; |
my $checked = ''; |
90 |
$checked = " checked" if $v eq $self->sar_command; |
$checked = " checked" if $self->sar_command =~ m{$flag}; |
91 |
$form .= qq|<input type="radio" name="sar_command" value="$v"$checked>$desc<br>\n|; |
$form .= qq|<input type="radio" name="sar_command" value="$v"$checked>$desc<br>\n|; |
92 |
} |
} |
93 |
|
|