Templates


Templates Files

Templates files are the core of the CGI's flexibility. The templates are used to generate the look and feel of the product for your customers. The templates are basically HTML code with our '||variables||'. The '||variables||' that are available are described in more details in Templates Variables.

Below is a list of the template files, and a brief description of what each is for. Each file has the option of  having a frame version, which has the same name with the suffix f for frames. For a frame login the frame.tpl is loaded and menubar.tpl is placed in the top frame.

File Name Description
attach.tpl For adding/deleting sending attachments
config.tpl User Configuration Page (or options page)
error.tpl Used to display any error messages
frame.tpl This top most frame that is called when frames templates have been chosen
ftsearch Full text search template
groups.tpl Displays the list of available news groups
help.tpl User Manual
item.tpl A single news article
list.tpl A list of news articles in the selected news group
login.tpl The first page shown when WebMail is run. This handles the user login
logout.tpl Logout Screen to be  displayed
mail.tpl This template is used for automatic login.
manager.tpl This template is the manager's option page.
menubar.tpl Menu bar is used if using Frame Login rather than normal login
menuframe.tpl This is the second frame template to divide up the top menus.
nfmenu.tpl This is the non-frame menubar, that the non-frame templates include.
ok.tpl Used to display any successful actions, eg Mail sent
post.tpl For posting a news article.
postit.tpl An example template used when the layout of the articles that WebNews sends is defined.
search.tpl For searching for Emails.
searchbar.tpl This is the top right most frame template, to allow a quick group search.
sp_dic.tpl This shows the words in your private dictionary
sp_fix.tpl This template, in conjunction with sp_show.tpl, is used to change or
add spelling mistakes to the private dictionary. (java script only)
sp_show.tpl This is used to show spelling errors, if there are any. (java script only)
thread.tpl Lists the news article in a selected thread.

There are other example sets of template files available. If you create a particularly nice set you might like to share them with others. If so, send them to netwin@netwinsite.com and we will add them to this list.


CGI Commands

The template files contain ordinary html plus ||variables||. These variables are setup by the CGI commands and template commands. The CGI commands may take the form of a submit button with a particular name, a hidden cmd (or xcmd) field inside a form or as a query in the form cmd=xyz

Every CGI cmd can be setup as a button, hidden or as part of a query. When commands are setup as buttons there must be no hidden command field in the form or this will override the button.

eg.   
Button: <input type=submit name="xxxxxx" value="any thing">
Hidden Field: <input type=hidden name="cmd" value="xxxxxx">
Query: <a href="||action||?cmd=xxxxxx&utoken=||utoken||">any thing</a>

The list of valid CGI commands is show below. This list also shows which default template is displayed. The input and output variables that are needed/setup are also displayed for each command. In addition, some commands change user settings, and these are also displayed.

Any variable in the lists that start with a '~' is an ini setting.

CMD Function Template
url This will make the GCI to display the link provided instead. (CGI)
Input Variables:
link The 'http' link that you want the CGI to display.
register Displays the registering screen. (CGI)
manager Displays the manager's screen. (manager.tpl)
show This just shows the error.tpl. Normally used with 'page=xxx'. (error.tpl)
help Displays the user help. (help.tpl)
enter_login Displays the login page. (login.tpl)
login This will login a user. (frame.tpl or list.tpl)
Input Variables:
user The user name to login to.
pass The user's password.
host The host that the user wishes to connect to. (optional)
tcode This is used to determine whether the login page is fresh. You must have this unless you have:
      no_tcode true

in your ini file

Output Variables:
_played_sound Setup to '0' if the sound has not played.
utoken The user's token, which must be passed to CGI every time.
User settings:
_selected_tpl This is used to determine which templates the user is using.
wml_agent The last wml agent used.
agent The last web browser used.
frames Set to '1' if the user is using the frames templates.
auto_login This will perform an auto-login for a user. (frame.tpl or list.tpl)
Input Variables:
same as 'login'
Output Variables:
same as 'login'
User settings:
same as 'login'
netwin_login This command is used to go between NetWin products. (url)
Input Variables:
utoken The user's utoken.
~netwin_autologin The list of information required to peform a NetWin login.
logout This will logout a user. (logout.tpl)
Input Variables:
utoken The user's utoken.
logout_go This will logout a user, and then go directly to a URL. (url)
Input Variables:
utoken The users utoken.
url The url which the user should be sent to.
config Displays the user options. (config.tpl)
Input Variables:
utoken The users utoken.
add_list
add_list_art
add_list_grp
Subscribes the stated group the users list. (config.tpl)
(list.tpl)
(groups.tpl)
Input Variables:
utoken The users utoken.
group The selected group to subscribe to.
saveconfig Displays the user options. (config.tpl)
Input Variables:
utoken The users utoken.
sig The users signature.
dflt_reply The default reply address.
allow_cookie Weither or not the user has setup a cookie.
menubar This will display the menubar. Used in frame.tpl only (menubar.tpl)
Input Variables:
utoken The users utoken.
searchbar This will display the searchbar. Used in frame.tpl only (searchbar.tpl)
Input Variables:
utoken The users utoken.
display This will displays the list of groups. (groups.tpl)
Input Variables:
utoken The users utoken.
group Current selected search.
Output Variables:
pos The current position. Used to determine the page.
num_pages The number of pages.
on_page Which page is being displayed.
page_back Used to change the search by going back.
changes:        rec.humor.*
to:                  rec.*
pageup The position of the page before.
pagedown The position of the page after.
new_groups The list of new groups to display.
admin_groups The list of selected admin groups to display.
listitems Lists the articles of the selected group. (list.tpl)
Input Variables:
utoken The users utoken.
group The select group.
Output Variables:
per_page The number of articles display per page.
news_pos The curren position. Used to determine the page.
pageup The position of the page before.
pagedown The position of the page after.
num_pages The number of pages.
on_page Which page is being displayed.
post_allowed When set this groups is allowed to be posted to.
thread* Lists the articles of the selected thread. (thread.tpl)
Input Variables:
utoken The users utoken.
group The select group.
Output Variables:
per_page The number of articles display per page.
news_pos The curren position. Used to determine the page.
pageup The position of the page before.
pagedown The position of the page after.
num_pages The number of pages.
on_page Which page is being displayed.
post_allowed When set this groups is allowed to be posted to.
item* Displays the message. (item.tpl)
Input Variables:
utoken The users utoken.
group The select group.
timezone The timezone which the message is displayed in. (optional)
Output Variables:
uidl The position in the list of the email messages.
post_allowed When set this groups is allowed to be posted to.
search_search Used to search for other articles that are simular.
href_subject The new reply subject.
prev The previous article.
prev_multi When set to true the previuos message is a multiple message.
next The next article.
next_multi When set to true the next message is a multiple message.
h_date
h_local_date
h_date_day
h_date_time
These are the different date layouts available.
h_from
h_from_email
h_from_personal
Shows who the news article came from. This is where you can display whether the address uses the personal, the complete or the EMail format.

ie.     Complete: "Lynden" <lynden@1.2.3.4>
         EMail:       lynden@1.2.3.4
         Personal: "Lynden"

h_newsgroups The list of news groups that got this article.
v_raw The user's sticky settings for displaying the email message in Raw format.
v_headers The user's sticky settings for displaying the email message header.
v_font The user's sticky settings for displaying the email message in variable width font.
v_inline The user's sticky settings for displaying the email message images/html/text attach files inline.
v_show_alt The user's sticky settings for displaying the email message's alternative part as well.
itempart* Displays the message subpart. (N/A)
Input Variables:
utoken The user's utoken.
part Shows which mime part to display.
subpart Shows which part of the mime part to display.
setview* This changes the how the messages are viewed in item.tpl. (item.tpl)
Input Variables:
utoken The user's utoken.
v_raw When set this shows the message as on the mail server. This overrides the other v_* settings. (optional)
v_headers This displays the headers of the EMail message. (optional)
v_font This displays the message using variable width font. (optional)
v_inline This will display, html, text and images inline of the email message. (optional)
v_exec This will stop the javascript, applets, forms and scripts from being removed. (optional)
v_show_alt This will show the alternative part of the EMail message as well. (optional)
Output Variables:
Save as the 'item' CGI command.
post Displays a new article page. (post.tpl)
Input Variables:
utoken The user's utoken.
group The select news group.
reply* Sets up a reply article page. (post.tpl)
Input Variables:
utoken The user's utoken.
group The select news group.
reply_prefix The string that will be used to add to every line of the body. (ie '> ')
send_wrap Teh limit on the number of characters.
Output Variables:
from Who is going to send this article. Built from '_real_name' and 'dflt_reply' from the user.dat file.
reply_ref This is the refences that needs to be preserved to keep the threads working.
href_search The search field setup needed to look for simular articles like this one.
h_subject The default subject of the reply message. (Re: subject)
quote_body The body of the message.
add_attach Displays the attached emails. (attach.tpl)
Input Variables:
utoken The user's utoken.
Output Variables:
attach_num The number of attachments which are going to be sent.
attach_msg This will add a message to the list of attachments. (attach.tpl)
Input Variables:
utoken The user's utoken.
attach The list of attached files.
Output Variables:
attach_num The number of attachments which are going to be sent.
attach_send This will display back the Email message which is to be sent. (send.tpl)
Input Variables:
utoken The user's utoken.
Output Variables:
h_cc The list of emails that should be cc'ed to.
h_from The from field where the message should be sent.
h_subject The default subject of the reply Email.
qoute_body The body of the Email, converted to display inside the html page.
reply The default reply of the Email.
host_user*
host_name*
Used for the pull down list of multiple host accounts.
addsig Set to 'checked' if  the user sent a signature the previous time.
send_autocc Set to 'checked' if  the user sent a copy to herself the previous time.
copyself Set to 'checked' if  the user saved in the sent folder the previous time.
pick_item The list of items in the pick list and distribution list.
picklist The list of items in the pick list and distribution list.
attach_del This will delete the highlighted message (attach.tpl)
Input Variables:
utoken The user's utoken.
selected_attach The selected list of attached files to remove.
Output Variables:
attach_num The number of attachments which are going to be sent.
edit_dict This will display the list of words in your private dictionary. (sp_dic.tpl)
Input Variables:
utoken The user's utoken.
Output Variables:
dict_edit The list of words in the user's personal dictionary.
save_dict This will save the private dictionary. (sp_show.tpl)
Input Variables:
utoken The user's utoken.
dict_edit The list of words in the user's personal dictionary.
add_dict This will add a word to the private dictionary. (sp_show.tpl)
Input Variables:
utoken The user's utoken.
misspelt_word a word which is spelt wrong.
Output Variables:
The same as the CGI command spell_check
check_word This will check 1 word for spelling. (sp_fix.tpl)
Input Variables:
utoken The users utoken.
word The word that is spelt wrong.
line The line number in which the misspelt word lies.
nword The word number in the line in which the word is spelt wrong.
Output Variables:
spell_alt The list of possible correct spellings.
spell_check This will check a message for spelling. (sp_show.tpl)
Input Variables:
utoken The user's utoken.
message The message which is to be spellchecked.
to The list of people to whom the message should be sent . (optional)
cc The list of people to whom a carbon copy should be sent. (optional)
bcc The list of people to whom a blind carbon copy should be sent. (optional)
attach The list of attached files. (optional)
reply The reply-to field of the Email message. (optional)
subject The subject of the EMail message. (optional)
addsig If 'checked', a signature will be sent. (optional)
send_autocc If 'checked', a copy to self will be sent. (optional)
copyself If 'checked', a copy will be  saved in the sent folder. (optional)
priority This is the text priority level of the Email. (optional)
content-type This is the content-type of this message. (optional)
Output Variables:
lines_wrong The number of lines in which spelling mistakes occur.
nlines The total number of lines in the Email.
nword The number of words which were checked.
nwrong The number of words which are misspelt.
message The message which is to be spell checked.
to The list of people to whom the message should be sent.
cc The list of people to whom a carbon copy should be  sent.
bcc The list of people to whom a blind carbon copy should be sent.
attach The list of attached files.
reply The reply-to field of the Email message.
subject The subject of the EMail message.
addsig If 'checked',  a signature will be sent.
send_autocc If 'checked', a copy will be sent  to self.
copyself If 'checked', a copy will be saved in the sent folder.
priority This is the text priority level of the Email.
content-type This is the content-type of this message.
change_word This will change a word. (sp_show.tpl)
Input Variables:
utoken The user's utoken.
misspelt_word This is the word which is spelt wrong.
misspelt_line This is the line number in which the word is misspelt.
word_number This is the place in the line where the word is misspelt.
corrected_word This is the newly corrected word
Output Variables:
These are the same as the CGI command spell_check
send This sends the new article. (ok.tpl)
Input Variables:
utoken The user's utoken.
to The list of people whom the message should be sent to.
from Who the message came from.
reply The EMail address that you can reply to.
reply_ref The list of refences to keep. Used to determine threads.
newsgroups The list of news groups that get people whom a carbon copy should be sent to. (optional)
attach The list of attached files. (optional)
subject The subject of the EMail. (optional)
message The body of the EMail message. (optional)
addsig If 'checked', a signature will be sent. (optional)
priority This is the text priority level of the Email. (optional)
content-type This is the content-type of this message. (optional)
required The list of require fields. (common seperated)
template The template to use to create change the layout of the message. (ie template=postit.tpl)
get_lastest This downloads the lastest articles of this news group. This is normally done automatically, but can be forced. (list.tpl)
Input Variables:
utoken The user's utoken.
group The selected news group.
search
dosearch
This proforms the group/article searching functions. (search.tpl)
Input Variables:
utoken The user's utoken.
group_search The group search field.
search_page
wml_search_page
This is the number of articles to display per page.
pos The current article position on this search.
subject_article
or
subject
The Subject to search for.
author The Author to search for.
Output Variables:
pageup The next position to display the previous page.
pagedown The next position to display the next page.
no_match When set their is no match found.
single_group When set their is only 1 group which matches the group_search.
ftsearch
doftsearch
This does a full text searching.
NOTE: the news server must be setup with full text searching for this to work.
(ftsearch.tpl)
Input Variables:
utoken The user's utoken.
word_search
group_search
The base search prameters.
fts_before
fts_after
The time frame for articles to be searched on.
fts_sort
fts_match
The type of searching.
fts_pagesize The number of results to display per page.
Output Variables:
per_page The number displayed per page.
fts_count The total number of results.
fts_pages
num_pages
The number of pages.
fts_page The page number you are currently on.
pageup This the the postion for the previous page.
pagedown This the the postion for the next page.
cmd=test There are no other parameters, this does a basic test in order to try and locate some common problems. (internal)
page=xxx.tpl This will allow the administration to select any template page and display it. This includes any new templates which are desired. (selected page)
process=cmd This will allow make the CGI to process another command directly after the main command. (ie cmd=xxx, or button pressed etc.) This will only get processed if no error occurs. (command page)
on_error=cmd This will allow make the CGI to process another command directly after the main command if the main command generates an error.
ie.  ?cmd=login&user=username&pass=password
             &on_error=url&link=https://netwinsite.com&utoken=...
This can also be used inconjuction with process. In this case if either the main command or the 'process' command generates an error this command is processed.
(command page)

Any of the above commands which have an '*' next to them must be passed a number, where this number is normally the message unique ID. The number appears directly after the cmd name.

eg.    cmd=item-1, cmd=item-32, cmd=itempart-5

In most cases, the CGI will automatically take care of building links that require this sort of ID as well. The variables which are displayed in brackets are also required in order to ensure the function behaves correctly.

eg.    cmd=list&fld=INBOX
        cmd=moveitem-32&dstfld=New_Box

Every command, with the  exceptions of the register, manager and login commands, require the utoken to be present.

If an error such as 'Incorrect utoken' appears, you should ensure that a user token is being passed either as a hidden field or as part of a query.


Templates Commands

Throughout the templates you will see '||commands||'. These are what the CGI will pick up and replace with data. Some commands set up variables and are only available on one page. Other variables are available on all templates.

There are also conditional statements and fucntions available. The following tables show all of the available '||commands||'. In the tables, some commands have extra fields, in which case the name of the field will show one of the following:

The below template commands are available on every template:

Table of Contents

Tables

Conditional Statements

The below contitional statements are available on every template.

||ifndef||sound||
        ....Show Picture instead...
||else||
   ||ifequal||sound||loud||
                ...play loud sound file...
   ||else||
             ||ifequal||sound||normal||
                    ...play sound file...
             ||endif||
   ||endif||
||endif||

||ifdef||var|| Conditional inclusion if variable is defined
||ifndef||var|| Conditional inclusion if variable is not defined
||ifinstr||value1||value2|| Conditional inclusion if template variable value1 contains string value2, case sensitive
||iflower||value1||value2|| This will return to true if 'value1' is lower than 'value2'.
||ifequal||value1||value2|| Conditional inclusion if template value1 equals value2, case sensitive.
||ifnequal||value1||value2|| Conditional inclusion if template value1 not equals value2, case sensitive.
||ifgreater||value1||value2|| This will return to true if 'value1' is greater than 'value2'.
||else|| Optional else section to go with any of the ||if...|| conditions.
||endif|| Marks end of any ||if...|| or else section. Must have an ||endif|| for every ||if...||.

 

Template Commands
||define||var||value|| This will create a variable with the stated value.
||undef||var|| This will undefine a variable.
||include||template|| This reads the named file, which may include template variables.
ie.  ||include||menubar.tpl||
||do(....)|| This is used to run other command line scripts. Including CGI's, scripts and other compiled code.

NOTE: This will remove the 'Content-Type:' of other CGI's.
Variables may also be used as a parameter.
ie.  ||do(program.cgi ||current_user|| ||current_host||)||

||build(...)|| This allows the building of variables from variables in order to display their value.

||define||first||nw||
||define||second||img||
||build(||first||||second||)||
or
||build(nw||second||)||

The above will display the value for the variable 'nwimg' if one is available.

||lang||var|| This takes a variable and translates the vlaue using the language file.
ie.   ||define||test||welcome||
       ||lang||test||
||lang_str||text|| This takes text and translates it using the language file.
ie.   ||lang_str||INBOX||
||chop||var||n|| This performs a chop of the variable's value, where it only displays n number of characters.
||lchop||var||n|| This will chop the variable to the size provided, chopping at whole word intervals, and adding on '...' if chopped.
||chop_str||text||n|| This performs a chop of the text or the name of the variable, where it only displays n number of characters.
||lchop_str||text||n|| This will chop the text to the size provided, chopping at whole word intervals, and adding on '...' if chopped.
||is_checked||var|| This will replace with 'checked' if the value of the variable is on, true, checked or a  non zero number.
||java_text||var|| This will convert the variable to use '_' for the following characters so that you can use the value as a javascript variabel.
                         '(space)', '+', '<', '>', '&', ':'
||href_text||var|| This will convert the variable to use '%xx' for the following characters when using javascript and href's:
                         '(space)', '+', '<', '>', '&', ':'
||html_text||var|| This will convert the variable into displayable HTML characters. This ensures that it will not be treated as an actual HTML. It converts the following charatcers:
                         '"', '<', '>', '&', '\n', '\r' also language support etc.
||html_line||var|| This works as above, but will not remove the '\n' and '\r's.
||wml_text||var|| This will convert the variable so that it  displays correctly in WML.
||wml_line||var|| This works as above, except that it will not remove '\n' and '\r's.
||wml_line||text|| This will convert the text so that it  displays correctly in WML.
||wml_br_text||var|| This works the same as the variable 'wml_text', except that this variable might have WML code and so is left alone.
||wml_br_line||var|| This works as above,  except that it will not remove '\n' and '\r's.
||wml_str||text|| This will convert the text so that it displays correctly in WML.
||date_today||value|| This displays today's date in the specified layout, or using the variable provided.
ie.   ||date_today||date_layout||

 

Extended Template Commands

The below template commands are available on every template.

||/*||...||*/|| Any thing between these tags will not be passed out to the web server. So that internal comments can be setup that the user can't see.
||show_email|| This will show the selected email that is setup when calling the item* command.

 

Begin...End Commands

Most of the following commands require some variables to be setup in order for them to be used correctly. All 'begin...end' commands set up various variables inside them, and normally generate multiple results. The main example is the list begin..end command, where it is displayed for every message on the page.

||begin_group||...||end_group|| This lists each news group.
Input Variables:
group_page
wml_group_page
This determines how many are display per page.
pos The starting position intehlist of available news groups.
Output Variables:
group
name
simple_name
This is the name of the news group.
description The description of the news group.
moderated Set to 'true' if  the news group is moderated.
postallowed Set to 'true' if articles are allowed to be posted to this news group.
ngroup The number of groups inside this group.
nitems The number of articles in the news group.
new The number of new articles, that the user hasn't see before.
||begin_all_group||...||begin_all_group|| This lists every available news group.
Input Variables:
This 'begin...end' command has the same input variables as the '||begin_group||...||end_group||' commnad.
Output Variables:
This 'begin...end' command has the same output variables as the '||begin_group||...||end_group||' commnad.
||begin_new||...||end_new|| This is used to display teh list of new news groups.
Input Variables:
This 'begin...end' command has the same input variables as the '||begin_group||...||end_group||' commnad.
Output Variables:
This 'begin...end' command has the same output variables as the '||begin_group||...||end_group||' commnad.
||begin_admin||...||end_admin|| This is used to display the selected admin news groups.
Input Variables:
This 'begin...end' command has the same input variables as the '||begin_group||...||end_group||' commnad.
Output Variables:
This 'begin...end' command has the same output variables as the '||begin_group||...||end_group||' commnad.
||begin_list||...||end_list||
||begin_alist||...||end_alist||
This lists the articles in the selected news group.
The 'begin_alist' display the article threads.
Input Variables:
group The selected news group.
sort_on
sort_method
sort_reverse
This are the way in which the articles are sorted.
news_page
wml_news_page
The number of articles that are to be displayed per page.
max_line_count The max count of the variable 'count'
Output Variables:
count Starts at 0 goes to the value of 'max_line_count' and returns back to 0.
line The line count.
ft_group The variable setup to assist in full text searching for other articles very simular.
ft_score The full text score.
bytes The number of bytes this news article has.
lines The number of lines inthe news article.
number The news UID.
unseen_article Set to 'true' if this article hasn't been seen before.
from
from_email
from_personal
Shows who the news article came from. This is where you can display whether the address uses the personal, the complete or the EMail format.

ie.     Complete: "Lynden" <lynden@1.2.3.4>
         EMail:       lynden@1.2.3.4
         Personal: "Lynden"

num_threads The number of threads deep this article is.
thread_spaces A string setup to have '---' for each thread.
subject The subject of the article.
h_date
h_local_date
h_date_day
h_date_time
These are the different date layouts available.
old_news When set to 'true' this article is old.
||begin_gsearch||..||end_gsearch|| This displays the results of a group search.
Input Variables:
search_page
wml_search_page
The number of results to display per page.
pos The starting position of the search results.
max_wml_display
_max_message_display
This is used to determine how many messages to display on a page.
Output Variables:
This 'begin...end' command has the same output variables as the '||begin_group||...||end_group||' commnad.
||begin_asearch||..||end_asearch|| This displays the results of a article search.
Input Variables:
news_page
wml_news_page
The number of articles that are to be displayed per page.
news_id The selected News id.
group The select news group.
news_pos The article to start at.
Output Variables:
This 'begin...end' command has the same output variables as the '||begin_alist||...||end_alist||' commnad.
||begin_tsearch||..||end_tsearch|| This displays the results of a thread search.
Input Variables:
search_page
wm_search_page
The number of results to display per page.
Output Variables:
This 'begin...end' command has the same output variables as the '||begin_list||...||end_list||' commnad.
||begin_ftsearch||..||end_ftsearch|| This displays the results of a full text search.
Input Variables:
word_search
group_search
The base search prameters.
fts_before
fts_after
The time frame for articles to be searched on.
fts_sort
fts_match
The type of searching.
fts_pagesize The number of results to display per page.
Output Variables:
This 'begin...end' command has the same output variables as the '||begin_list||...||end_list||' commnad.
||begin_alpha||...||end_alpha|| This starts from 'A' and cycles through to 'Z'.
Input Variables:
page_group The base page group
Output Variables:
letter This cycles through the letters, 'A', 'B', ..., 'Z'.
lletter This cycles throught the lower case letters.
wletter This attaches the letter onto the end of the 'page_group'.
ie.  rec.a*, re.humor.a*
||begin_users||...||end_users|| This lists the result of the search for users.
(Used only on manager's page)
Input Variables:
wild_search The wild search string.
Output Variables:
user The user's complete user directory.
user_name The user's username.
user_host The user's host name.
hash_type The hashing method which is being used. (1 or 2)
||begin_pages||...||end_pages|| This generates the list of page numbers.
Input Variables:
num_pages The number of pages.
_max_message_display
~max_wml_display
The number of items per page.
Output Variables:
npage The page number.
pagepos The position of the page number using the number of items per page.
pagestart The position of the start of this page. (ie pagepos)
pagefinsih The position of the end of this page.
||begin_timezone||...||end_timezone|| Lists the timzone settings which are available.
Input Variables:
~timezone The timezone which the user has currently selected.
Output Variables:
tz The timezone letters. (ie. nzst)
tz_name The full timezone name. (ie New Zealand Standard)
tz_offset The timezone offset. (ie +1200)
tz_selected This is set if the timezone has been selected.
||begin_attach||...||end_attach|| The list of attached files.
Output Variables:
attach_fname The complete filename.
attach_name The name of the file, excluding the extention.
attach_size/attach_ksize The size of the file.
Variables Available after Command:
attach_total_size
attach_total_ksize
The complete size of all files.
||begin_for||x||y||...||end_for|| This cycles through starting at 'x' and finishing at 'y'.
Output Variables:
for The count it is on.