123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104 |
- <?php // $Id: template.php,v 1.2 2006/03/15 14:34:45 pcool Exp $
- /*
- ==============================================================================
- Dokeos - elearning and course management software
- Copyright (c) 2004-2006 Dokeos S.A.
- Copyright (c) Sally "Example" Programmer (sally@somewhere.net)
- //add your name + the name of your organisation - if any - to this list
- For a full list of contributors, see "credits.txt".
- The full license can be read in "license.txt".
- This program is free software; you can redistribute it and/or
- modify it under the terms of the GNU General Public License
- as published by the Free Software Foundation; either version 2
- of the License, or (at your option) any later version.
- See the GNU General Public License for more details.
- Contact address: Dokeos, 44 rue des palais, B-1030 Brussels, Belgium
- Mail: info@dokeos.com
- ==============================================================================
- */
- /**
- ==============================================================================
- * This file is a code template;
- * copy the code and paste it in a new file to begin your own work.
- *
- * @package dokeos.plugin
- ==============================================================================
- */
- /*
- ==============================================================================
- INIT SECTION
- ==============================================================================
- */
- // global settings initialisation
- // also provides access to main, database and display API libraries
- include("../inc/global.inc.php");
- /*
- -----------------------------------------------------------
- Libraries
- -----------------------------------------------------------
- */
- //the main_api.lib.php, database.lib.php and display.lib.php
- //libraries are included by default
- /*
- -----------------------------------------------------------
- Header
- -----------------------------------------------------------
- */
- // Optional extra http or html header
- // If you need to add some HTTP/HTML headers code
- // like JavaScript functions, stylesheets, redirects, put them here.
- // $httpHeadXtra[] = "";
- // $httpHeadXtra[] = "";
- // ...
- //
- // $htmlHeadXtra[] = "";
- // $htmlHeadXtra[] = "";
- // ...
- $tool_name = "Example Plugin"; // title of the page (should come from the language file)
- Display::display_header($tool_name);
- /*
- ==============================================================================
- FUNCTIONS
- ==============================================================================
- */
- // put your functions here
- // if the list gets large, divide them into different sections:
- // display functions, tool logic functions, database functions
- // try to place your functions into an API library or separate functions file - it helps reuse
- /*
- ==============================================================================
- MAIN CODE
- ==============================================================================
- */
- // Put your main code here. Keep this section short,
- // it's better to use functions for any non-trivial code
- api_display_tool_title($tool_name);
- Display::display_normal_message("Hello world!");
- /*
- ==============================================================================
- FOOTER
- ==============================================================================
- */
- Display::display_footer();
- ?>
|