| Begin HTML with background image,
| menu bar, and main container table.
Alaska Sisters in Crime
Alaska Sisters in Crime
Alaska Reads
|
|
|
| This code displays a select list of categories and automatically
| selects the category that we are displaying.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| setup()
|
| DESCRIPTION:
|
| setup() opens the database files that will be used
| throughout the applet. If they do not exist, it
| will create them.
|
| RETURNS:
|
| NULL ("") on success, an error message otherwise
Creating ''
Creating ''
Creating ''
Creating ''
Creating ''
Creating ''
Creating ''
| categoryname()
|
| DESCRIPTION:
|
| Does a database lookup to determine the name of a
| category based on its category number
|
| RETURNS:
|
| The category name on success, or "Category Not Found"
| if the category wasn't found in the database
| showmessage()
|
| DESCRIPTION:
|
| showmessage() displays the message specified by
| "message"
|
| RETURNS:
|
| NULL ("") on success, an error message otherwise
|
Author:
|
' }">
|
|
Posted:
|
|
|
Subject:
|
|
|
| haschildren()
|
| DESCRIPTION:
|
| haschildren() checks to see if the specified message
| has any children
|
| RETURNS:
|
| True if the message has children, false otherwise
| displaymessages()
|
| DESCRIPTION:
|
| displaymessages() displays up to "max" messages from
| the category specified by "category" that have the
| parent "parent," starting at the "offset"'th message
| in the category.
|
| RETURNS:
|
| The number of messages displayed
|
Replies
|
display
|
You have requested a message number that is
greater than the number of messages in this
category.
|
|
|
|
This message has no replies
There are no messages in this category
|
|
| post()
|
| DESCRIPTION:
|
| post() displays a form for posting a new message
| in "category" and automatically builds an Re: ...
| subject if "message" is non-0
|
| RETURNS:
|
| NULL ("") on success, an error message otherwise
| savemessage()
|
| DESCRIPTION:
|
| savemessage() inserts a new record into the database
| and creates the message file in the messages directory
| addcat()
|
| DESCRIPTION:
|
| addcat() displays a form allowing the user to create
| a category
| savecat()
|
| DESCRIPTION:
|
| savecat() inserts a new category into the database
|
| RETURNS:
|
| The number of the new category