Changeset 672 for trunk/wifidog-auth/wifidog/classes/MainUI.php
- Timestamp:
- 07/11/05 17:14:37 (8 years ago)
- Files:
-
- 1 modified
-
trunk/wifidog-auth/wifidog/classes/MainUI.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wifidog-auth/wifidog/classes/MainUI.php
r660 r672 33 33 private $title; 34 34 private $html_headers; 35 private $footer_scripts = array(); 35 36 function __construct() 36 37 { … … 49 50 { 50 51 $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; 51 60 } 52 61 … … 298 307 299 308 $html .= '</div>'."\n"; //End outer_container 309 310 foreach ($this->footer_scripts as $script) 311 { 312 $html .= "$script\n"; 313 } 300 314 $html .= "</body>"."\n"; 301 315 $html .= "</html>"."\n"; 302 316 echo $html; 303 317 304 //$this->smarty->display(DEFAULT_CONTENT_SMARTY_PATH."footer.html");305 318 } 306 319
