HTML Results Page

As each entry for the competition is entered, the results page is automatically generated. The appropriate page can be found in the Html sub-directory which itself is within a directory with the same name as the compcode, within the installation directory. In the example case, this would be C:\golfcomp\default\Html. If you look in this directory, you will find an item called Results.html. So in our example the path to the results page would be C:\golfcomp\default\Html\Results.html. If you click on this entry, it should open up the results page in your default web browser.

If the user has selected Front, Back & Overall as the sort value, 2 other pages are generated in addition to the standard page. The standard page will represent the Overall result. The other 2 pages will be called Results_Front.html for the front 9 results page and Results_Back.html for the back 9 results page. These will also be created in the directory as defined above.

If the user has setup a Team Competition, a team results page is generated in addition to the standard page(s). The webpage name will be Team.html. Again this will end up in the Html directory within the compcode directory.

Note that this results web page display is automatically refreshed in accordance with the user setting detailed above

 Customizing the Header

The results system can accomodate the customizing of the header by incorporating user defined HTML code. The HEADER BANNER has been split into three sections. In the middle of the banner is the Competition Name. Unless the user defines some customize code, this will take the value entered in the competition entry screens. Note that the main competition and team competition can have 2 different names. Either side of the competition are 2 blank areas that will only be filled with user defined HTML code.

Any HTML code added via this method must be well formed pieces of HTML code that fit in with the code into which they are inserted. It is suggested that user view the generated results pages to familiarise themselves with the context into which the code will be inserted.

 Header code

The main and team competition can have different code defined. In either case, the code must reside in the Params sub-directory , which itself is within a directory with the same name as the compcode, which is within the installation directory. In the example case, this would be C:\golfcomp\default\Params. For the MAIN competition, the system will try and find an item with the name header_html.txt. For the TEAM competition, the item name is team_header_html.txt.

 Side Header code

The main and team competition will pick up the same piece of code where defined. As above, the code must reside in the directory as defined in the previous section. The system will try and find an item with the name html.txt. The code that is inserted to the left of the HEADER CODE defined above will be taken from line 1 of html.txt. The code inserted to the right will come from line 2.

As an example, if the following piece of code was found on line 1 of the html.txt item, the results page would display the image default.jpg that would be found in the parent directory, in the left hand corner of the Results Page Header.

<img src="../../../default.jpg">

Two other parameters are found in this file. On line 3, the user can enter a value for cellpadding this indicates the amount of space to be put between the 3 areas in the HEADER.

The other value is on line 4. If no value is present, it does nothing. If a value of 1 is present, it puts a border around the 3 areas of the HEADER.


< Previous Home Next >