Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Jan 2002 19:34:15 +0000
From:      Hiten Pandya <hitmaster2k@yahoo.com>
To:        freebsd-www@FreeBSD.org
Subject:   [PATCH] - dosendpr.cgi enhancements
Message-ID:  <3C4878B7.752BEE1@yahoo.com>

next in thread | raw e-mail | index | archive | help
hi,
I was wondering why the /cgi/dosendpr.cgi does not have a navigation
bar, which
I beleive should be neccessary for the practice of good navigation.  So,
I thought
rather than bothering other people, I will make the patches myself and
submit
them to the -www list. I hope I am right.. am I ? ;)

I am sending a mail to -www list, because according to my knowledge, the
-www
list maintains the FreeBSD CGI Scripts (for /www/en/cgi/).

Whenever a PR is submitted, and either the request is succesful or not,
it
has to show a navigation bar, for the FreeBSD Site.  I was getting a tad
bit annoyed when I submitted a PR thru the web, and I couldn't go around
the site thru that page, so here is the patches. ;)

I have added code for showing a navigation bar with the following links.
Note,
all links are text based. The following are the links which appear at
the bottom
of the page:

1) Home
2) Documentation
3) Search
4) Index
5) Contacting FreeBSD

To modularise the code, I have made a subroutine called html_nav();
which has
the navigation bar inside it.  That code should be entered into
"html.pl".

Hope it gets accepted,
thanks,
regards,

 - Hiten
 - <hiten@uk.FreeBSD.org>

The following are the patches for the neccessary files:

[PATCH] for /www/en/cgi/html.pl
================================================================================

*** html.pl.old Mon Apr  3 09:45:51 2000
--- html.pl     Fri Jan 18 19:05:10 2002
***************
*** 31,36 ****
--- 31,58 ----
  }
  
  #
+ # &html_nav
+ #     Simple text-navigation for FreeBSD WWW Site.
+ #     This sub-routine produces a simple text based navigation
+ #     bar for use with e.g. CGI Scripts such as dosendpr.cgi
+ #     
+ #     Layout:
+ #     | Home | Documentation | Search | Index | Contacting FreeBSD |
+ #
+ sub html_nav {
+   print $eot = <<EOT;
+ \n<hr>
+ <p align="center">
+   | <a href="/">Home</a> 
+   | <a href="/docs.html">Documentation</a>
+   | <a href="/search/search.html">Search</a>
+   | <a href="/search/index-site.html">Index</a>
+   | <a href="/mailto.html">Contacting FreeBSD</a> |
+ </p>
+ EOT
+ }
+ 
+ #
  # &html_body (Body_tag_attributes);
  #
  sub html_body {


[PATCH] for /www/en/cgi/dosendpr.cgi
=================================================================================

*** dosendpr.cgi.old    Fri Jan 18 15:47:38 2002
--- dosendpr.cgi        Fri Jan 18 19:07:35 2002
***************
*** 18,23 ****
--- 18,24 ----
      print "There is an error in the configuration of the problem\n",
            "report form genator.  Please back up one page and
report\n",
            "the problem to the owner of that page.  Report @_[0].";
+     &html_nav();
      &html_end();
      exit (1);
  }
***************
*** 62,67 ****
--- 63,69 ----
            "of the problem.\n  Please return to the form and add the ",
            "missing information.  Thank you.\n";
      }
+     &html_nav();
      &html_end();
  
      exit(1);
***************
*** 104,107 ****
--- 106,110 ----
  } else {
      print "<h1>Error</h1>An error occured processing your problem
report.";
  }
+ &html_nav();
  &html_end();





=================================================================================
SSH Fingerprint:
1024 45:a5:9c:f2:fb:07:da:70:18:02:0b:f3:63:f1:7a:a6 hitenp@hpdi.ath.cx

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-www" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3C4878B7.752BEE1>