summaryrefslogtreecommitdiff
path: root/fml/lib/FML/Process
diff options
context:
space:
mode:
authorfukachan <fukachan>2002-06-24 11:06:11 +0000
committerfukachan <fukachan>2002-06-24 11:06:11 +0000
commit145cd78c50e748732a4218359fb00ca0a71b275f (patch)
tree41e0d4e077aacbcb746d377736a8a5fd8314e908 /fml/lib/FML/Process
parent4927c490fe46bf2a6cc8de27a29c8e0efd67ecee (diff)
downloadfml8-145cd78c50e748732a4218359fb00ca0a71b275f.tar.gz
fml8-145cd78c50e748732a4218359fb00ca0a71b275f.tar.bz2
fml8-145cd78c50e748732a4218359fb00ca0a71b275f.zip
clean up menu, bug fix run_cgi_menu() args
Diffstat (limited to 'fml/lib/FML/Process')
-rw-r--r--fml/lib/FML/Process/CGI/Kernel.pm102
1 files changed, 93 insertions, 9 deletions
diff --git a/fml/lib/FML/Process/CGI/Kernel.pm b/fml/lib/FML/Process/CGI/Kernel.pm
index 082c9094..bc04308a 100644
--- a/fml/lib/FML/Process/CGI/Kernel.pm
+++ b/fml/lib/FML/Process/CGI/Kernel.pm
@@ -4,7 +4,7 @@
# All rights reserved. This program is free software; you can
# redistribute it and/or modify it under the same terms as Perl itself.
#
-# $FML: Kernel.pm,v 1.31 2002/06/22 14:39:56 fukachan Exp $
+# $FML: Kernel.pm,v 1.32 2002/06/24 09:43:25 fukachan Exp $
#
package FML::Process::CGI::Kernel;
@@ -255,7 +255,7 @@ sub _drive_cgi_by_table
'center' => 'run_cgi_main',
'east' => 'run_cgi_options',
- 'sw' => '',
+ 'sw' => 'run_cgi_command_help',
'south' => '',
'se' => '',
};
@@ -269,21 +269,28 @@ sub _drive_cgi_by_table
'center' => 'rowspan=2 valign="top"',
'east' => 'rowspan=2 valign="top"',
- 'sw' => '',
- 'south' => '',
- 'se' => '',
+ 'sw' => 'valign="top"',
+ 'south' => 'rowspan=2 valign="top"',
+ 'se' => 'rowspan=2 valign="top"',
};
print "<table border=0 cellspacing=\"0\" cellpadding=\"5\">\n";
- print "<tr>\n";
+ print "\n<!-- new line -->\n";
+ print "\n<tr>\n";
for my $pos ('nw', 'north', 'ne',
'!',
'west', 'center', 'east',
'!',
'sw', 'south', 'se') {
- if ($pos eq '!') { print "</tr>\n\n<tr>\n"; next;}
+ if ($pos eq '!') {
+ print "</tr>\n";
+ print "\n<!-- new line -->\n";
+ print "\n<tr>\n";
+ next;
+ }
my $attr = $td_attr->{ $pos };
+ print "\n<!-- $pos -->\n";
print $attr ? "<td $attr>\n" : "<td>\n";
my $fp = $function_table->{ $pos };
@@ -291,9 +298,9 @@ sub _drive_cgi_by_table
eval q{ $curproc->$fp($args);};
if ($r = $@) { _error_string($curproc, $r);}
}
- print "</td>\n";
+ print "\n</td>\n";
}
- print "</tr>\n";
+ print "\n</tr>\n";
print "</table>\n";
}
@@ -386,6 +393,83 @@ sub run_cgi_help
}
+=head2 run_cgi_log($args)
+
+log.
+
+=cut
+
+
+# Descriptions: show log
+# Arguments: OBJ($curproc) HASH_REF($args)
+# Side Effects: none
+# Return Value: none
+sub run_cgi_log
+{
+ my ($curproc, $args) = @_;
+
+ print "log";
+}
+
+
+=head2 run_cgi_dummy($args)
+
+dummy.
+
+=cut
+
+
+# Descriptions: show dummy
+# Arguments: OBJ($curproc) HASH_REF($args)
+# Side Effects: none
+# Return Value: none
+sub run_cgi_dummy
+{
+ my ($curproc, $args) = @_;
+
+ print "dummy\n";
+}
+
+
+=head2 run_cgi_date($args)
+
+date.
+
+=cut
+
+
+# Descriptions: show date
+# Arguments: OBJ($curproc) HASH_REF($args)
+# Side Effects: none
+# Return Value: none
+sub run_cgi_date
+{
+ my ($curproc, $args) = @_;
+
+ print `date`;
+}
+
+
+=head2 run_cgi_command_help($args)
+
+command_help.
+
+=cut
+
+
+# Descriptions: show command_dependent help
+# Arguments: OBJ($curproc) HASH_REF($args)
+# Side Effects: none
+# Return Value: none
+sub run_cgi_command_help
+{
+ my ($curproc, $args) = @_;
+ my $buf = $curproc->message_nl("cgi.top");
+
+ print $buf;
+}
+
+
=head2 run_cgi_options($args)
show options.