Now we can make a template that we can use as a base for all our pages.
source-highlight -n --input=raditex-template.php --output=src/raditex-template.php.html
01: <?php 02: //---------------------------------------------------------------------- 03: // Copyright Raditex Control AB, gorhas@raditex.nu 04: //---------------------------------------------------------------------- 05: 06: include_once('raditex-config.php'); // configuration data 07: include_once('raditex-library.php'); // main library 08: include_once('raditex-lists.php'); // lists - like menues an other 09: 10: //php_session_start(); // Optitional - If we need login or cookies 11: 12: page_start(); 13: 14: page_header($header_image,"User: gorhas@demo.se"); 15: page_drop_down_menu($site_menu); 16: 17: page_menu($framework_menu); 18: 19: page_row_start(); 20: page_column_start_left(); 21: 22: // Main content of site 23: 24: html_h('Template', 1); 25: 26: html_p('Some paragraph text'); 27: 28: //... Main content of page here! 29: 30: page_column_end(); 31: page_column_start_right(); // Optitional 32: 33: //... Left optitional content 34: 35: page_column_end(); 36: page_row_end(); 37: 38: page_footer("http://www.raditex.nu","Raditex Konsult","http://www.rscada.se","rScada"); 39: page_end(); 40: //---------------------------------------------------------------------- 41: // 42: //---------------------------------------------------------------------- 43: ?> 44: