[ Index ]

PHP Cross Reference of Mambo 4.6.5

[ Variables ]     [ Functions ]     [ Classes ]     [ Constants ]     [ Statistics ]

title

Body

[close]

/components/com_wrapper/ -> wrapper.html.php (source)

   1  <?php
   2  /**
   3  * @package Mambo
   4  * @subpackage Wrapper
   5  * @author Mambo Foundation Inc see README.php
   6  * @copyright (C) 2000 - 2009 Mambo Foundation Inc.
   7  * See COPYRIGHT.php for copyright notices and details.
   8  * @license GNU/GPL Version 2, see LICENSE.php
   9  *
  10  * Redistributions of files must retain the above copyright notice.
  11  *
  12  * Mambo is free software; you can redistribute it and/or
  13  * modify it under the terms of the GNU General Public License
  14  * as published by the Free Software Foundation; version 2 of the License.
  15  */
  16  
  17  /** ensure this file is being included by a parent file */
  18  defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
  19  
  20  class HTML_wrapper {
  21  
  22  	function displayWrap( &$row, &$params, &$menu ) {
  23          ?>
  24          <script type="text/javascript">
  25          <?php echo $row->load ."\n"; ?>
  26  		function iFrameHeight() {
  27              var h = 0;
  28              if ( !document.all ) {
  29                  h = document.getElementById('blockrandom').contentDocument.height;
  30                  document.getElementById('blockrandom').style.height = h + 60 + 'px';
  31              } else if( document.all ) {
  32                  h = document.frames('blockrandom').document.body.scrollHeight;
  33                  document.all.blockrandom.style.height = h + 20 + 'px';
  34              }
  35          }
  36          </script>
  37          <div class="contentpane<?php echo $params->get( 'pageclass_sfx' ); ?>">
  38  
  39          <?php
  40          if ( $params->get( 'page_title' ) ) {
  41              ?>
  42              <div class="componentheading<?php echo $params->get( 'pageclass_sfx' ); ?>">
  43              <?php echo $params->get( 'header' ); ?>
  44              </div>
  45              <?php
  46          }
  47          ?>
  48          <iframe   
  49          id="blockrandom"
  50          src="<?php echo $row->url; ?>" 
  51          width="<?php echo $params->get( 'width' ); ?>" 
  52          height="<?php echo $params->get( 'height' ); ?>" 
  53          scrolling="<?php echo $params->get( 'scrolling' ); ?>" 
  54          align="top"
  55          frameborder="0"
  56          class="wrapper<?php echo $params->get( 'pageclass_sfx' ); ?>">
  57          <?php echo T_('This option will not work correctly.  Unfortunately, your browser does not support Inline Frames'); ?>
  58          </iframe>
  59  
  60          </div>
  61          <?php
  62          // displays back button
  63          mosHTML::BackButton ( $params );
  64      }
  65  
  66  }
  67  ?>