summaryrefslogtreecommitdiff
path: root/fml
diff options
context:
space:
mode:
authorfukachan <fukachan>2003-09-27 06:57:00 +0000
committerfukachan <fukachan>2003-09-27 06:57:00 +0000
commitd068c70d1814ea6bb4c43672552a87a29f7db071 (patch)
tree6957f39256c28925773c1797bda00f5d079f87d4 /fml
parentbf0092406e12134ad80e52991833ee6dfd61420c (diff)
downloadfml8-d068c70d1814ea6bb4c43672552a87a29f7db071.tar.gz
fml8-d068c70d1814ea6bb4c43672552a87a29f7db071.tar.bz2
fml8-d068c70d1814ea6bb4c43672552a87a29f7db071.zip
define methods: cgi_var_navigator_title(), cgi_var_fml_project_url().
Diffstat (limited to 'fml')
-rw-r--r--fml/lib/FML/Process/CGI/Utils.pm24
1 files changed, 23 insertions, 1 deletions
diff --git a/fml/lib/FML/Process/CGI/Utils.pm b/fml/lib/FML/Process/CGI/Utils.pm
index e886d469..8a40371d 100644
--- a/fml/lib/FML/Process/CGI/Utils.pm
+++ b/fml/lib/FML/Process/CGI/Utils.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: Utils.pm,v 1.1 2003/09/25 11:40:58 fukachan Exp $
+# $FML: Utils.pm,v 1.2 2003/09/27 03:44:04 fukachan Exp $
#
package FML::Process::CGI::Utils;
@@ -163,6 +163,28 @@ sub cgi_var_cgi_mode
}
+sub cgi_var_navigator_title
+{
+ my ($curproc) = @_;
+ my $fml_url = $curproc->cgi_var_fml_project_url();
+ my $mode = $curproc->cgi_var_cgi_mode();
+
+ if ($mode eq 'admin') {
+ return "<B>$fml_url admin menu</B>\n<BR>";
+ }
+ else {
+ return "<B>$fml_url ml-admin menu</B>\n<BR>";
+ }
+}
+
+
+sub cgi_var_fml_project_url
+{
+ my ($curproc) = @_;
+ return '<A HREF="http://www.fml.org/software/fml-devel/">fml</A>';
+}
+
+
=head1 CODING STYLE
See C<http://www.fml.org/software/FNF/> on fml coding style guide.