Login   Register  
PHP Classes
elePHPant
Icontem

File: ClassTestFile/testHTMLTemplateAjax.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Guerrieri Luca  >  PXAServer  >  ClassTestFile/testHTMLTemplateAjax.php  >  Download  
File: ClassTestFile/testHTMLTemplateAjax.php
Role: Example script
Content type: text/plain
Description: Test for HTML class
Class: PXAServer
Library to build applications configured with XML
Author: By
Last change:
Date: 2007-03-16 14:21
Size: 1,038 bytes
 

Contents

Class file image Download
<?php
/*
 * Questo file server come test per la classe HTMLManager
 */
 
require ('../libreria/global.inc.php');                    //richiede la global per l'istanza delle classi'
 
$hm = new HTMLManager;
 
$hm -> set_html_header('complete_html_header');        //imposta il tipo di header che vogliamo costruire
                                                         //questo header è presente nel file libhtml.inc.php
 
$hm -> set_html_title('general_html_title');            //imposta il titolo della pagina
 
$hm -> set_html_stylesheet('html_stylesheet');            //imposta il foglio di stile per lo schermo
 
$hm -> set_print_stylesheet('print_stylesheet');        //imposta il foglio di stile per la stampa
 
$hm -> set_javascript('ajax_javascript');                //imposta uno script javascript
 //$hm -> set_html_body('html_body_color');    
 
$hm -> set_html_footer('html_footer');                    //imposta il footer della pagina
 
echo $hm -> get_html_header();    
 
$tm = new TemplateManager;
 echo 
$tm->make_static_template('template01','test_template_static.tpl','test_data_static.xml');
 echo 
$hm -> get_html_footer();
?>