Source for file wrapper.html.php

Documentation is available at wrapper.html.php

  1. <?php
  2. /**
  3. @package Mambo
  4. @subpackage Wrapper
  5. @copyright  Refer to copyright.php
  6. @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
  7. @author Mambo Foundation Inc see README.php
  8. */ 
  9.  
  10. /** ensure this file is being included by a parent file */
  11. defined'_VALID_MOS' or die'Direct Access to this location is not allowed.' );
  12.  
  13. class HTML_wrapper {
  14.  
  15.     function displayWrap&$row&$params&$menu {
  16.         ?>
  17.         <script language="javascript" type="text/javascript">
  18.         <?php echo $row->load ."\n"?>
  19.         function iFrameHeight() {
  20.             var h = 0;
  21.             if ( !document.all ) {
  22.                 h = document.getElementById('blockrandom').contentDocument.height;
  23.                 document.getElementById('blockrandom').style.height = h + 60 + 'px';
  24.             } else if( document.all ) {
  25.                 h = document.frames('blockrandom').document.body.scrollHeight;
  26.                 document.all.blockrandom.style.height = h + 20 + 'px';
  27.             }
  28.         }
  29.         </script>
  30.         <div class="contentpane<?php echo $params->get'pageclass_sfx' )?>">
  31.  
  32.         <?php
  33.         if $params->get'page_title' ) ) {
  34.             ?>
  35.             <div class="componentheading<?php echo $params->get'pageclass_sfx' )?>">
  36.             <?php echo $params->get'header' )?>
  37.             </div>
  38.             <?php
  39.         }
  40.         ?>
  41.         <iframe   
  42.         id="blockrandom"
  43.         src="<?php echo $row->url?>
  44.         width="<?php echo $params->get'width' )?>
  45.         height="<?php echo $params->get'height' )?>
  46.         scrolling="<?php echo $params->get'scrolling' )?>
  47.         align="top"
  48.         frameborder="0"
  49.         class="wrapper<?php echo $params->get'pageclass_sfx' )?>">
  50.         <?php echo T_('This option will not work correctly.  Unfortunately, your browser does not support Inline Frames')?>
  51.         </iframe>
  52.  
  53.         </div>
  54.         <?php
  55.         // displays back button
  56.         mosHTML::BackButton $params );
  57.     }
  58.  
  59. }
  60. ?>

Documentation generated on Mon, 05 May 2008 16:24:32 +0400 by phpDocumentor 1.4.0