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 >
Text File  |  2009-11-06  |  7KB  |  191 lines

  1. # FILE: uimain.tmpl
  2. # DESCRIPTION: Main controller of the user interface
  3. # Copyright (c) 2002, DiscusWare, LLC, all rights reserved
  4. # -------------------------------------------------------------------------------------------
  5.  
  6. IMPORTANT NOTES:
  7.     In most cases, this file can be safely modified.  It is constructed to
  8.     recognize those options from the Appearance Manager and to adjust your
  9.     board accordingly.  However, you should always keep a backup of this
  10.     file, and any others that you modified, in the event that the file
  11.     becomes corrupted.
  12.     
  13.     It is generally NOT safe to edit this file with an HTML editor (such as
  14.     Front Page).  If you want to edit your static HTML files with Front Page,
  15.     you should not edit this template, but rather edit the files themselves.
  16.     
  17.     You can find more about the use of this template in the Discus Knowledge
  18.     Center at the following URL:
  19.     
  20.         http://support.discusware.com/center
  21.         
  22.     Note that if you still want to use the "old" method of static HTML
  23.     files, select the option in your Options Manager to use static files.    
  24.         
  25. <!--BEGIN-->
  26. <#simple variables#>
  27.  
  28. ####################################################################################
  29. # IN GENERAL, YOU WILL NOT NEED TO CHANGE ANY OF THE FOLLOWING CODE:               #
  30. ####################################################################################
  31.  
  32. <html>
  33. <head>
  34. <title>$title</title>
  35.  
  36. <#if $general->{screen} eq "framesetter"#>
  37.     <#if <#part "static_framesetter" () exists#> == 1#>
  38.         <#insert part () "static_framesetter"#>
  39.     <#else#>
  40.         </head>
  41.         <frameset cols="26%,74%">
  42.             <frame src="$script_url/discus.$cgi_extension?pg=menu" name="menu">
  43.             <frame src="$general->{right_frame_url}" name="Main">
  44.         </frameset>
  45.         <noframes>
  46.             <body>
  47.             <p>
  48.             <img src="$html_url/clipart/triangle_right.gif" height=16 width=16 alt="*">
  49.                 If your browser does not support frames, <a href="$general->{right_frame_url}">Click Here</a>
  50.             </p>
  51.             <p>
  52.             <img src="$html_url/clipart/triangle_right.gif" height=16 width=16 alt="*">
  53.                 If your browser does support frames,
  54.                 <a href="http://www.discusware.com/support/resources/help/frames.html">Click Here</a>
  55.             </p>
  56.             </body>            
  57.         </noframes>
  58.         </html>
  59.     <#endif#>
  60.     <#exit#>
  61. <#endif#>
  62.  
  63. <#if $general->{screen} eq "admin"#>
  64.     </head>
  65.     <frameset cols="30%,70%">
  66.             <frame src="$script_url/board-admin.$cgi_extension{#if $general->{startfrom} ne ""#}?startfrom=$general->{startfrom}{#endif#}" name="Menu">
  67.             <frame src="$script_url/discus.$cgi_extension?pg=warning" name="Admin_Main">
  68.     </frameset>
  69.     <noframes>
  70.         <body>
  71.             Sorry, administration requires a frames-capable browser
  72.         </body>
  73.     </noframes>
  74.     </html>
  75.     <#exit#>
  76. <#endif#>
  77.  
  78. <#if $general->{screen} eq "adminhere"#>
  79.     </head>
  80.     <frameset cols="30%,70%">
  81.         <frame src="$script_url/board-admin.$cgi_extension?action=qmenu" name="Menu">
  82.         <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">
  83.     </frameset>
  84.     <noframes>
  85.         <body>
  86.             Sorry, administration requires a frames-capable browser
  87.         </body>
  88.     </noframes>
  89.     </html>
  90.     <#exit#>
  91. <#endif#>
  92.  
  93.  
  94. ####################################################################################
  95. # THIS CONTROLS THE TOP OF THE DOCUMENTATION PAGES (HEADER AND BODY INFO)          #
  96. # You probably don't need to change this.  It takes the relevant portion from the  #
  97. # skin, if the skin exists.  Otherwise it reverts to the default.                  #
  98. ####################################################################################
  99.  
  100. <#if <#part "dynamic_top" () exists#> == 0#>
  101.     </head>
  102.     <body bgcolor="$color->{bgcolor}" text="$GLOBAL_OPTIONS{COLOR_text}" link="$GLOBAL_OPTIONS{COLOR_link}" vlink="$GLOBAL_OPTIONS{COLOR_vlink}" alink="$GLOBAL_OPTIONS{COLOR_alink}" \
  103.     {#if $GLOBAL_OPTIONS{COLOR_image} ne ""#} background="$GLOBAL_OPTIONS{COLOR_image}"{#endif#}\
  104.     {#if $onloadjs ne ""#} onLoad="$onloadjs"{#endif#}>
  105.     <basefont size="$color->{size}"><font face="$color->{face}">
  106. <#endif#>
  107.  
  108. ####################################################################################
  109. # HERE IS WHERE YOUR INDIVIDUAL PAGES ARE DEFINED.  Actual customization of these  #
  110. # template files is done by editing one of the other templates.                    #
  111. ####################################################################################
  112.  
  113. ##########################################
  114. # MAIN MENU: ..../template/ui/bd-menu.tmpl
  115.  
  116. <#if $general->{screen} eq "menu"#>
  117.     <#define $skip_nav_bar = "1"#>
  118.     <#define $skip_entire_top = "1"#>
  119.     <#insert part () "dynamic_top"#>
  120.     <#insert template "bd-menu"#>
  121. <#endif#>
  122.  
  123. ##############################################################
  124. # DOCUMENTATION/HELP INDEX PAGE: ..../template/ui/bd-help.tmpl
  125.  
  126. <#if $general->{screen} eq "help" || $general->{screen} eq "$html_dir/board-help.html"#>
  127.     <#define $pagetitle = "$L{NAVIGATION_HELP}"#>
  128.     <#insert part () "dynamic_top"#>
  129.     <#insert template "bd-help"#>
  130. <#endif#>
  131.  
  132.  
  133. ##############################################################
  134. # GETTING STARTED INSTRUCTIONS: ..../template/ui/bd-instr.tmpl
  135.  
  136. <#if $general->{screen} eq "instructions"#>
  137.     <#define $pagetitle = "$L{NAVIGATION_GETTING_STARTED}"#>
  138.     <#insert part () "dynamic_top"#>
  139.     <#insert template "bd-instr"#>
  140. <#endif#>
  141.  
  142. #################################################
  143. # PROGRAM CREDITS: ..../template/ui/bd-about.tmpl
  144.  
  145. <#if $general->{screen} eq "credits"#>
  146.     <#define $pagetitle = "$L{NAVIGATION_CREDITS}"#>
  147.     <#insert part () "dynamic_top"#>
  148.     <#insert template "bd-about"#>
  149. <#endif#>
  150.  
  151. #################################################
  152. # TROUBLESHOOTING: ..../template/ui/bd-trble.tmpl
  153.  
  154. <#if $general->{screen} eq "troubleshooting"#>
  155.     <#define $pagetitle = "$L{NAVIGATION_TROUBLESHOOTING}"#>
  156.     <#insert part () "dynamic_top"#>
  157.     <#insert template "bd-trble"#>
  158. <#endif#>
  159.  
  160. #################################################
  161. # FORMATTING: ..../template/ui/bd-formt.tmpl
  162.  
  163. <#if $general->{screen} eq "formatting"#>
  164.     <#define $pagetitle = "$L{NAVIGATION_FORMATTING}"#>
  165.     <#insert part () "dynamic_top"#>
  166.     <#insert template "bd-formt"#>
  167. <#endif#>
  168.  
  169. #########################################################
  170. # WARNING (ENTERING ADMIN): ..../template/ui/bd-warn.tmpl
  171.  
  172. <#if $general->{screen} eq "warning"#>
  173.     <#define $pagetitle = "$L{NAVIGATION_ADMIN}"#>
  174.     <#define $skip_nav_bar = "1"#>
  175.     <#insert part () "dynamic_top"#>
  176.     <#insert template "bd-warn"#>
  177. <#endif#>
  178.  
  179. ####################################################################################
  180. # END OF THE DOCUMENT                                                              #
  181. ####################################################################################
  182.  
  183. <#label End#>
  184. <#if <#part "dynamic_bottom" () exists#> == 1#>
  185.     <#insert part () "dynamic_bottom"#>
  186. <#else#>
  187.     </font></body></html>
  188. <#endif#>
  189.  
  190. <!--END-->
  191.