Support >
Main template
 
Class Calendar Online Booking System
Class Calendar Flash Demo
 
 
 
Home
Our service
Pricing
Schools
Demo
Tour
Questions
Support
Web services
Style sheet
Main template
 
Company
Franchising
Partners
Valid HTML 4.01 Transitional
 
 
   

Main template

A single template controls the layout of the tiles that make up all dynamically-generated Class Calendar Web pages. The school administrator can use the default template, or upload a custom template.
This page provides an overview of template customisation. The developer resources listed below provide technical details of the Web framework used by this template.
Main template contents ...
The main template provides positioning information for each of the components of every Class Calendar web page. The following idealised table is taken from the body of the template. Areas in grey are hold content generated by the application; white areas provide spacing:
 
DAY
DATE MONTH
YEAR
HEADER
NAVIGATION
BUTTONS
CERTIFICATE
WORKFLOW INDICATOR
MAIN
REPORT
FOOTER
 
You can re-write all of this HTML in your own custom template. However, be careful not to remove the SUB_<CONTENT> entries in the template, because these are used to place dynamically generated content into the completed document.
In addition, the start of the template contains HTML comments of the form:
    <!-- SUB tocBackground SUB_TOC_BACKGROUND -->
These comments must be left as they are, because they are used to direct server-side data into the document.
You can place any number of HTML structures around the existing HTML structure of the main table. However, some restrictions are necessary to enable the JavaScript code used to animate button roll-overs to work correctly. In particular, the JavaScript invocation in the HTML body tag:
    onload="buildNav( 0, SUB_PRSP, SUB_VIEW, SUB_IS_TERMS, SUB_IS_SCHOOL, SUB_IS_ACTING, 'SUB_BUTTON_SET_BASE_URL', SUB_HEADER_SIZE );
is used to indicate how many HTML <img ...> tags exist before the main table. In this case, there are no images. If there were two images, the JavaScript call should read:
    onload="buildNav( 2, SUB_PRSP, SUB_VIEW, SUB_IS_TERMS, SUB_IS_SCHOOL, SUB_IS_ACTING, 'SUB_BUTTON_SET_BASE_URL', SUB_HEADER_SIZE );
Placing extra HTML <img ...> tags within the table is not advisable. If you wish to proceed with this, you will probably need to alter the JavaScript code referenced by the main template.
Development process ...
The development of a customised main template file should proceed as follows:
  • Start by downloading the default main template. You can obtain this template by logging on to your school account, and going to School details > Graphics. Right-click on the 'default template' link, and download the file.
  • Experiment with new template layout using an HTML editor. (It's a good idea to take a copy of the default template file before editing it.)
  • When you are satisfied with your new template file, you can upload it to Class Calendar in the school's School details > Graphics section of your Class Calendar account.
The main template makes use of the DMLDoc open source Java dynamic web framework. Full details of DMLDoc, including programmers manuals, are available for free download, from The Open Math Company.
Contact ...
For further technical information and support, contact:
Email:
Phone:
+ 44 (0) 1273 680 806