Oracle
  Home arrow Oracle arrow Page 2 - Sub-templates and More with Oracle HTML DB
Dev Shed Forums  
Administration  
AJAX  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Smartphone Development  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Mobile Linux  
App Generation ROI  
IBM® developerWorks  
Forums Sitemap  
E-Commerce Hosting  
Linux Web Hosting  
Managed Hosting  
Small Business Hosting  
VPS Hosting  
Weekly Newsletter

 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid  
Request Media Kit
Contact Us  
Site Map  
Privacy Policy  
Support  
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
Google.com  
ORACLE

Sub-templates and More with Oracle HTML DB
By: McGraw-Hill/Osborne
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: starstarstarstarstar / 4
    2007-04-12


    Table of Contents:
  • Sub-templates and More with Oracle HTML DB
  • Sub-template Definitions
  • Standard Tab and Parent Tab Attributes
  • Image-based Tab Attributes

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      error-file:tidyout.log Del.ici.ous error-file:tidyout.log Digg
      error-file:tidyout.log Blink error-file:tidyout.log Simpy
      error-file:tidyout.log Google error-file:tidyout.log Spurl
      error-file:tidyout.log Y! MyWeb error-file:tidyout.log Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article

     
     
    ADVERTISEMENT


    Sub-templates and More with Oracle HTML DB - Sub-template Definitions
    ( Page 2 of 4 )

    Some templates contain sub-templates. A sub-template is a portion of a template that is defined in the later part of the template definition page and referred to in an earlier section of the template with a substitution variable.

    Success Message

    This sub template will be the value for the #SUCCESS_MESSAGE# substitution variable used in the Body section. This sub-template is where you specify the HTML for formatting the content of the success message. This sub-template also uses the #SUCCESS_MESSAGE# substitution variable. This could be a little confusing because the same substitution variable is used for two different things. When it is used here, it is substituted with the actual text of a success message after a page is processed successfully; when it is used in the Body section, it is substituted with the value of this sub-template. The light bulb and “Action Processed” text seen in Figure 6-8 are the results of the following code:

    <table class="std">
     
    <tr>
       
    <td align="right" width="24">
         
    <img src="#WORKSPACE_IMAGES#wwv_light.gif>" width="24" height="23"
          
    alt="success" >
       
    </td>
       
    <td>
         
    <span style="color:#336699;font-size:10pt;text-align:left;
                       vertical-align:bottom;">
            #SUCCESS_MESSAGE#
          </span>
        </td>
      </tr>
    </table>

    Navigation Bar

    This sub-template is the source for the value of the substitution variable #NAVIGATION_BAR# used in the Body section. This is where you format the navigation bar specified in the Shared Components section of an application. Two items—Help and Logout—were defined for the navigation bar shown in Figure 6-8. The following listing of code is used to display the example’s navigation bar. The substitution variable #BAR_BODY# is used to place the actual contents of the navigation bar. The contents of this substitution variable can be controlled even further if desired. See the upcoming “Navigation Bar Entry” section for more details.

    <table>
      <tr>
       
    <td>
         
    <br/>
       
    </td>
       
    #BAR_BODY#
     
    </tr>
    </table>

    Navigation Bar Entry

    If you want extreme control of the way the items in the navigation bar are displayed, this is the section where that is accomplished. Note that it is not necessary to define this sub-template; the items in a navigation bar will display fine without any entry here. The code entered here controls the presentation of each individual navigation item placed in the navigation bar’s #BAR_BODY#. You can use eight different substitution variables in creating this sub-template. They can all be found in the help for the section by clicking on the title of the section. The following code listing uses two of the substitution variables. The first, #LINK#, will receive the actual URL link of the navigation item. The second, #TEXT#, will receive the text of the navigation item.

    <a href=#LINK# style="color:#336699;font-size:10pt;text-align:left;
                          vertical-align:bottom;">
      #TEXT#
    </a>

    Notification

    This sub-template defines the value for the #NOTIFICATION_MESSAGE# substitution variable used in the header. The only substitution variable available for this section is the #MESSAGE# variable. Include this variable in any HTML code you would like to use to format the notification message. This section is very similar to the “Success Message” section, earlier in this chapter.



     
     
    >>> More Oracle Articles          >>> More By McGraw-Hill/Osborne
     

       

    ORACLE ARTICLES

    - Oracle's Turn to Play in the Sun
    - Implementing and Using Oracle`s Restore Poin...
    - Tuning PL/SQL Code
    - Debugging PL/SQL Code
    - Testing PL/SQL Code
    - Working With PL/SQL Code
    - Conditional Compilation for Oracle Database ...
    - Compile-Time Warnings for Oracle DB 10g
    - Compiling PL/SQL Code for an Oracle Database
    - Troubleshooting PL/SQL Code
    - Managing PL/SQL Code
    - Data Manipulation and More for HTML DB Appli...
    - Oracle Database Fundamentals
    - Adding Processes to HTML DB Applications
    - Adding Computations, Processes, and Validati...





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 4 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek