| [ PHPXref.com ] | [ Generated: Sun Jul 20 18:31:57 2008 ] | [ Mambo 4.6 ] |
| [ Index ] [ Variables ] [ Functions ] [ Classes ] [ Constants ] [ Statistics ] | ||
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * @package Mambo Open Source 4 * @copyright (C) 2005 - 2006 Mambo Foundation Inc. 5 * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL 6 * 7 * Mambo was originally developed by Miro (www.miro.com.au) in 2000. Miro assigned the copyright in Mambo to The Mambo Foundation in 2005 to ensure 8 * that Mambo remained free Open Source software owned and managed by the community. 9 * Mambo is Free Software 10 */ 11 12 /** ensure this file is being included by a parent file */ 13 defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' ); 14 15 global $_CONFIG, $_LANG; 16 17 $params->def( 'url', '' ); 18 $params->def( 'scrolling', 'auto' ); 19 $params->def( 'height', '200' ); 20 $params->def( 'height_auto', '0' ); 21 $params->def( 'width', '100%' ); 22 $params->def( 'add', '1' ); 23 24 $url = $params->get( 'url' ); 25 if ( $params->get( 'add' ) ) { 26 // adds "http://" if none is set 27 if ( !strstr( $url, 'http' ) && !strstr( $url, 'https' ) ) { 28 $url = 'http://'. $url; 29 } 30 } 31 32 // auto height control 33 if ( $params->get( 'height_auto' ) ) { 34 $load = "window.onload = iFrameHeight;\n"; 35 } else { 36 $load = ''; 37 } 38 39 ?> 40 <script language="javascript" type="text/javascript"> 41 <?php echo $load; ?> 42 function iFrameHeight() { 43 var h = 0; 44 if ( !document.all ) { 45 h = document.getElementById('blockrandom').contentDocument.height; 46 document.getElementById('blockrandom').style.height = h + 60 + 'px'; 47 } else if( document.all ) { 48 h = document.frames('blockrandom').document.body.scrollHeight; 49 document.all.blockrandom.style.height = h + 20 + 'px'; 50 } 51 } 52 </script> 53 <iframe 54 id="blockrandom" 55 src="<?php echo $url; ?>" 56 width="<?php echo $params->get( 'width' ); ?>" 57 height="<?php echo $params->get( 'height' ); ?>" 58 scrolling="<?php echo $params->get( 'scrolling' ); ?>" 59 align="top" 60 frameborder="0" 61 class="wrapper<?php echo $params->get( 'pageclass_sfx' ); ?>"> 62 </iframe>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| [ Powered by PHPXref - Served by Debian GNU/Linux ] |