Here is what I have done in my site (which is for help before logging into DBMAN):
1) Add the following codes in the sub main routine in your db.cgi script admist the other elsif statements:
2) Then create a sub-routine in your html.pl like the following:
# --------------------------------------------------------
# Help Page
&html_print_headers;
print qq|
<html>
<head>
<title>$html_title: Help Page</title>
</head>
<body bgcolor="#FFFFFF">
|; &html_top_header; print qq|
<center>
<table border=0 bgcolor="#FFFFFF" cellpadding=2 cellspacing=0 width="80%" align=center valign=top>
<tr><td>
<strong><$font_title><A HREF="$db_script_link_url">$html_title</a> : Help Page</font></strong>
<P>
INSERT YOUR OWN TEXT
<P>
<CENTER><$font>
<B><a href=\"$ENV{'HTTP_REFERER'}\">Back to Previous Page</a></B>
</CENTER></font>
</td></tr>
</table>
|; &html_footer; print qq|
</body>
</html>
|;
}
Where it says..."INSERT YOUR OWN TEXT"...insert your own text and html codes.
3) Then add the following codes in your sub html_footer routine in the html.pl file:
BTW: These codes could be edited to allow only people who are logged in and have add permissions to view the help file.
For example...change if ($per_view) in Step One to if ($per_add). Then change if ($per_view) to if ($per_add) in Step Three.
BTW: As you can see...there is a link that will take users back to previous page.
Hope this helps.
Regards,
------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
[This message has been edited by AnthroRules (edited March 30, 2000).]
1) Add the following codes in the sub main routine in your db.cgi script admist the other elsif statements:
Code:
elsif ($in{'help'}) { if ($per_view) { &html_help; } else { &html_unauth; } }2) Then create a sub-routine in your html.pl like the following:
Code:
sub html_help { # --------------------------------------------------------
# Help Page
&html_print_headers;
print qq|
<html>
<head>
<title>$html_title: Help Page</title>
</head>
<body bgcolor="#FFFFFF">
|; &html_top_header; print qq|
<center>
<table border=0 bgcolor="#FFFFFF" cellpadding=2 cellspacing=0 width="80%" align=center valign=top>
<tr><td>
<strong><$font_title><A HREF="$db_script_link_url">$html_title</a> : Help Page</font></strong>
<P>
INSERT YOUR OWN TEXT
<P>
<CENTER><$font>
<B><a href=\"$ENV{'HTTP_REFERER'}\">Back to Previous Page</a></B>
</CENTER></font>
</td></tr>
</table>
|; &html_footer; print qq|
</body>
</html>
|;
}
Where it says..."INSERT YOUR OWN TEXT"...insert your own text and html codes.
3) Then add the following codes in your sub html_footer routine in the html.pl file:
Code:
print qq!| <A HREF="$db_script_link_url&help=1">Post Job</A> ! if ($per_view);BTW: These codes could be edited to allow only people who are logged in and have add permissions to view the help file.
For example...change if ($per_view) in Step One to if ($per_add). Then change if ($per_view) to if ($per_add) in Step Three.
BTW: As you can see...there is a link that will take users back to previous page.
Hope this helps.
Regards,
------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
[This message has been edited by AnthroRules (edited March 30, 2000).]