home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
rtsi.com
/
2014.01.www.rtsi.com.tar
/
www.rtsi.com
/
OS9
/
FAQ
/
cgi-bin
/
discus4_00
/
source
/
uimain.tmpl
< prev
next >
Wrap
Text File
|
2009-11-06
|
7KB
|
191 lines
# FILE: uimain.tmpl
# DESCRIPTION: Main controller of the user interface
# Copyright (c) 2002, DiscusWare, LLC, all rights reserved
# -------------------------------------------------------------------------------------------
IMPORTANT NOTES:
In most cases, this file can be safely modified. It is constructed to
recognize those options from the Appearance Manager and to adjust your
board accordingly. However, you should always keep a backup of this
file, and any others that you modified, in the event that the file
becomes corrupted.
It is generally NOT safe to edit this file with an HTML editor (such as
Front Page). If you want to edit your static HTML files with Front Page,
you should not edit this template, but rather edit the files themselves.
You can find more about the use of this template in the Discus Knowledge
Center at the following URL:
http://support.discusware.com/center
Note that if you still want to use the "old" method of static HTML
files, select the option in your Options Manager to use static files.
<!--BEGIN-->
<#simple variables#>
####################################################################################
# IN GENERAL, YOU WILL NOT NEED TO CHANGE ANY OF THE FOLLOWING CODE: #
####################################################################################
<html>
<head>
<title>$title</title>
<#if $general->{screen} eq "framesetter"#>
<#if <#part "static_framesetter" () exists#> == 1#>
<#insert part () "static_framesetter"#>
<#else#>
</head>
<frameset cols="26%,74%">
<frame src="$script_url/discus.$cgi_extension?pg=menu" name="menu">
<frame src="$general->{right_frame_url}" name="Main">
</frameset>
<noframes>
<body>
<p>
<img src="$html_url/clipart/triangle_right.gif" height=16 width=16 alt="*">
If your browser does not support frames, <a href="$general->{right_frame_url}">Click Here</a>
</p>
<p>
<img src="$html_url/clipart/triangle_right.gif" height=16 width=16 alt="*">
If your browser does support frames,
<a href="http://www.discusware.com/support/resources/help/frames.html">Click Here</a>
</p>
</body>
</noframes>
</html>
<#endif#>
<#exit#>
<#endif#>
<#if $general->{screen} eq "admin"#>
</head>
<frameset cols="30%,70%">
<frame src="$script_url/board-admin.$cgi_extension{#if $general->{startfrom} ne ""#}?startfrom=$general->{startfrom}{#endif#}" name="Menu">
<frame src="$script_url/discus.$cgi_extension?pg=warning" name="Admin_Main">
</frameset>
<noframes>
<body>
Sorry, administration requires a frames-capable browser
</body>
</noframes>
</html>
<#exit#>
<#endif#>
<#if $general->{screen} eq "adminhere"#>
</head>
<frameset cols="30%,70%">
<frame src="$script_url/board-admin.$cgi_extension?action=qmenu" name="Menu">
<frame src="$script_url/board-admin.$cgi_extension?action=pm-page_editor&HTTP_REFERER=$general->{topic}/$general->{page}&username=$general->{username}&menu=2" name="Admin_Main">
</frameset>
<noframes>
<body>
Sorry, administration requires a frames-capable browser
</body>
</noframes>
</html>
<#exit#>
<#endif#>
####################################################################################
# THIS CONTROLS THE TOP OF THE DOCUMENTATION PAGES (HEADER AND BODY INFO) #
# You probably don't need to change this. It takes the relevant portion from the #
# skin, if the skin exists. Otherwise it reverts to the default. #
####################################################################################
<#if <#part "dynamic_top" () exists#> == 0#>
</head>
<body bgcolor="$color->{bgcolor}" text="$GLOBAL_OPTIONS{COLOR_text}" link="$GLOBAL_OPTIONS{COLOR_link}" vlink="$GLOBAL_OPTIONS{COLOR_vlink}" alink="$GLOBAL_OPTIONS{COLOR_alink}" \
{#if $GLOBAL_OPTIONS{COLOR_image} ne ""#} background="$GLOBAL_OPTIONS{COLOR_image}"{#endif#}\
{#if $onloadjs ne ""#} onLoad="$onloadjs"{#endif#}>
<basefont size="$color->{size}"><font face="$color->{face}">
<#endif#>
####################################################################################
# HERE IS WHERE YOUR INDIVIDUAL PAGES ARE DEFINED. Actual customization of these #
# template files is done by editing one of the other templates. #
####################################################################################
##########################################
# MAIN MENU: ..../template/ui/bd-menu.tmpl
<#if $general->{screen} eq "menu"#>
<#define $skip_nav_bar = "1"#>
<#define $skip_entire_top = "1"#>
<#insert part () "dynamic_top"#>
<#insert template "bd-menu"#>
<#endif#>
##############################################################
# DOCUMENTATION/HELP INDEX PAGE: ..../template/ui/bd-help.tmpl
<#if $general->{screen} eq "help" || $general->{screen} eq "$html_dir/board-help.html"#>
<#define $pagetitle = "$L{NAVIGATION_HELP}"#>
<#insert part () "dynamic_top"#>
<#insert template "bd-help"#>
<#endif#>
##############################################################
# GETTING STARTED INSTRUCTIONS: ..../template/ui/bd-instr.tmpl
<#if $general->{screen} eq "instructions"#>
<#define $pagetitle = "$L{NAVIGATION_GETTING_STARTED}"#>
<#insert part () "dynamic_top"#>
<#insert template "bd-instr"#>
<#endif#>
#################################################
# PROGRAM CREDITS: ..../template/ui/bd-about.tmpl
<#if $general->{screen} eq "credits"#>
<#define $pagetitle = "$L{NAVIGATION_CREDITS}"#>
<#insert part () "dynamic_top"#>
<#insert template "bd-about"#>
<#endif#>
#################################################
# TROUBLESHOOTING: ..../template/ui/bd-trble.tmpl
<#if $general->{screen} eq "troubleshooting"#>
<#define $pagetitle = "$L{NAVIGATION_TROUBLESHOOTING}"#>
<#insert part () "dynamic_top"#>
<#insert template "bd-trble"#>
<#endif#>
#################################################
# FORMATTING: ..../template/ui/bd-formt.tmpl
<#if $general->{screen} eq "formatting"#>
<#define $pagetitle = "$L{NAVIGATION_FORMATTING}"#>
<#insert part () "dynamic_top"#>
<#insert template "bd-formt"#>
<#endif#>
#########################################################
# WARNING (ENTERING ADMIN): ..../template/ui/bd-warn.tmpl
<#if $general->{screen} eq "warning"#>
<#define $pagetitle = "$L{NAVIGATION_ADMIN}"#>
<#define $skip_nav_bar = "1"#>
<#insert part () "dynamic_top"#>
<#insert template "bd-warn"#>
<#endif#>
####################################################################################
# END OF THE DOCUMENT #
####################################################################################
<#label End#>
<#if <#part "dynamic_bottom" () exists#> == 1#>
<#insert part () "dynamic_bottom"#>
<#else#>
</font></body></html>
<#endif#>
<!--END-->