Show
Ignore:
Timestamp:
07/11/05 17:14:37 (8 years ago)
Author:
benoitg
Message:

2005-07-11 Benoit Gr�goire <bock@…>

  • classes/RssPressReview.php: Begin rewrite.
  • classes/MainUI.php: Add addFooterScript() function.
  • venues_map.php: Workaround the IE DOM problem.
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/wifidog-auth/wifidog/classes/MainUI.php

    r660 r672  
    3333        private $title; 
    3434        private $html_headers; 
     35        private $footer_scripts = array(); 
    3536        function __construct() 
    3637        { 
     
    4950        { 
    5051                $this->title = $title_string; 
     52        } 
     53         
     54         
     55        /** Add content at the very end of the <body>.  This is NOT meant to add footers or other display content, it is meant to add <script></script> tag pairs that have to be executed only once the page is loaded. 
     56         * @param $script A piece of script surrounded by <script></script> tags. */ 
     57        public function addFooterScript($script) 
     58        { 
     59                $this->footer_scripts[] = $script; 
    5160        } 
    5261         
     
    298307         
    299308                $html .= '</div>'."\n"; //End outer_container 
     309                 
     310                foreach ($this->footer_scripts as $script) 
     311                { 
     312                        $html .= "$script\n"; 
     313                } 
    300314                $html .= "</body>"."\n"; 
    301315                $html .= "</html>"."\n"; 
    302316                echo $html; 
    303317 
    304                 //$this->smarty->display(DEFAULT_CONTENT_SMARTY_PATH."footer.html"); 
    305318        } 
    306319