<## SETUP VARIABLES ##################################################### ### Change these few variables to setup your guestbook before you change ### the html... ### ################################################################## ##> <## SUBROUTINES ######################################################### ### Do NOT change unless you know what you are doing, or feel ### adventurous... ### If you do feel adventurous, then remember, that any quotation marks ### inside these strings since they are macros, need to have a "\" in ### front of them... ### ################################################################## ##> <## This is to determine how this form is being accessed ##> <## This chunk of htmlscript figures out the date and time of the ##> <## entry accounting for the different time zones ##> <## This is set for PST which is -7 off of GMT ##> <## This is if the month is a 31 day month ##> <## This is if the month is a 30 day month ##> <## This is if the month is Feb ##> <## This is if the month is now greater than Dec ##> <## End of date routine ##> <## This short routine is to remove any html from the comments ##> <## section if the user entered any ##> <## Loop to get the total number of entries ##> Now showing messages " $ viewto $ " through " $ viewfrom $ "

    "> <## ######################################################## ##> <## This loop is making a single variable to hold all of the ##> <## entries so we can just use the variable in the final ##> <## page output to represent the entire set of entries ##> <## It is also putting the entries in reverse order. ##> <## Be careful if you change this area. <## ######################################################## ##>
    Date" $ date&[loop] $ " - " $ time&[loop] $ "
    Name:" $ name&[loop] $ "
    Contact:" $ contact&[loop] $ "
    Genstat #:" $ genstat&[loop] $ "
    Cell #:" $ cell&[loop] $ "
    Locater #:" $ locater&[loop] $ "
    Where you can be reached:" $ reached&[loop] $ "
    Message:" $ message&[loop] $ "
    ">
    "> "> <## MAIN OUTPUT ######################################################### ### This is where you should customize your script for your html style ### You can change anything after the tag except the macro ### commands ( &[macro] ) and the beginning and final statements ### ################################################################## ##> <## GUESTBOOK SUBMISSION ################################################ ### The HTML in this section is What you see after the user has made an ### entry into your guestbook... ### Only change the html between the and tags... ### It does some error checking, and then will send it back to ### the same screen if it finds errors. ### ################################################################## ##> <## Checking for mandatory fields ##> "> "> "> "> "> "> <## record the data, and print out the response ##> <## Now we should write the entry to the database file ##> CIVNET OFFLINE Civilian Communications Facility

    CIVNET OFFLINE Civilian Communications Facility



    Your message has been sent to &[contact] !



    Take a look at the current message queue.


    Back to the Communications Panel
    Back to the Communications Panel



    <## GUESTBOOK ENTRY ###################################################### ### The HTML in this section is for when the user wishes to make an ### entry into your guestbook... ### ################################################################## ##> CIVNET OFFLINE Civilian Communications Facility

    CIVNET OFFLINE Civilian Communications Facility

    Errors have been found in your message request !!


    Leave Your Message

    Your Name
    Who you wish to contact:
    Your Genstat Number: (Format: 0000-0000-0000)
    Your Cell Number: (section - cell number ie., LFS-123456)
    Your Locater Number: (Format: 000-000-00)
    Where you can be reached:
    Your Message:


    View The Message Queue

    Back to the Communications Panel
    Back to the Communications Panel
    <## GUESTBOOK VIEWING ################################################### ### The HTML in this section is for when the user wishes to view ### entries in your guestbook... ### Only change the html between the and tags..., but you ### need to leave the entries macro to show the entries... ### ################################################################## ##> CIVNET OFFLINE Civilian Communications Facility

    CIVNET OFFLINE Civilian Communications Facility

    Bottom

    Current Message Queue

    &[entries] Show most recent &[numberofentries] Entries


    Back to the Communications Panel
    Back to the Communications Panel



    <## END OF SCRIPT ################################################ ##>