[ Index ] |
|
Code source de eGroupWare 1.2.106-2 |
1 <?php 2 /**************************************************************************\ 3 * eGroupWare SiteMgr - Web Content Management * 4 * http://www.egroupware.org * 5 * -------------------------------------------- * 6 * This program is free software; you can redistribute it and/or modify it * 7 * under the terms of the GNU General Public License as published by the * 8 * Free Software Foundation; either version 2 of the License, or (at your * 9 * option) any later version. * 10 \**************************************************************************/ 11 12 /* $Id: class.module_frame.inc.php 20295 2006-02-15 12:31:25Z $ */ 13 14 class module_frame extends Module 15 { 16 function module_frame() 17 { 18 $this->arguments = array( 19 'URL' => array( 20 'type' => 'textfield', 21 'params' => array('size' => 80), 22 'label' => lang('The URL to display') 23 ), 24 'width' => array( 25 'type' => 'textfield', 26 'label' => lang('Width') 27 ), 28 'height' => array( 29 'type' => 'textfield', 30 'label' => lang('Height') 31 ), 32 'style' => array( 33 'type' => 'textfield', 34 'params' => array('size' => 80), 35 'label' => lang('CSS styles') 36 ), 37 ); 38 $this->title = lang('HTML Frame'); 39 $this->description = lang('This module lets you show a given URL inside an IFRAME in the page.'); 40 } 41 42 function get_content(&$arguments,$properties) 43 { 44 return '<iframe width="'.htmlspecialchars($arguments['width']).'" height="'.htmlspecialchars($arguments['height']).'" src="'.$arguments['URL'].'"'.($arguments['style'] ? ' style="'.htmlspecialchars($arguments['style']).'"' : '').'></iframe>'; 45 } 46 }
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Feb 25 17:20:01 2007 | par Balluche grâce à PHPXref 0.7 |