| [ Index ] | PHP Cross Reference of Mambo 4.6.5 |
|
| [ Variables ] [ Functions ] [ Classes ] [ Constants ] [ Statistics ] | ||
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * @package Mambo 4 * @author Mambo Foundation Inc see README.php 5 * @copyright (C) 2000 - 2009 Mambo Foundation Inc. 6 * See COPYRIGHT.php for copyright notices and details. 7 * @license GNU/GPL Version 2, see LICENSE.php 8 * 9 * Redistributions of files must retain the above copyright notice. 10 * 11 * Mambo is free software; you can redistribute it and/or 12 * modify it under the terms of the GNU General Public License 13 * as published by the Free Software Foundation; version 2 of the License. 14 */ 15 16 /** ensure this file is being included by a parent file */ 17 defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' ); 18 19 function initEditor() { 20 global $mosConfig_live_site; 21 ?> 22 <script type="text/javascript"> 23 <!-- 24 _editor_url = '<?php echo $mosConfig_live_site; ?>/editor/htmlarea2/'; // URL to htmlarea files 25 var win_ie_ver = parseFloat(navigator.appVersion.split("MSIE")[1]); 26 if (navigator.userAgent.indexOf('Mac') >= 0) { win_ie_ver = 0; } 27 if (navigator.userAgent.indexOf('Windows CE') >= 0) { win_ie_ver = 0; } 28 if (navigator.userAgent.indexOf('Opera') >= 0) { win_ie_ver = 0; } 29 30 if (win_ie_ver >= 5.5) { 31 document.write('<scr' + 'ipt src="' +_editor_url+ 'editor.js"'); 32 document.write(' language="Javascript1.2"></scr' + 'ipt>'); 33 } else { 34 document.write('<scr'+'ipt>function editor_generate() { return false; }</scr'+'ipt>'); 35 } 36 37 /** Wrapper around the editor specific update function in JavaScript 38 */ 39 function updateEditorContents( editorName, newValue ) { 40 editor_setHTML( editorName, newValue ); 41 } 42 //--> 43 </script> 44 <?php 45 } 46 47 function editorArea( $name, $content, $hiddenField, $width, $height, $col, $row ) { 48 ?> 49 <textarea name="<?php echo $hiddenField; ?>" id="<?php echo $hiddenField; ?>" cols="<?php echo $col; ?>" rows="<?php echo $row; ?>" style="width:<?php echo $width; ?>; height:<?php echo $height; ?>"><?php echo $content; ?></textarea> 50 <script type="text/javascript" defer="defer"> 51 <!-- 52 editor_generate('<?php echo $hiddenField ?>'); 53 //--> 54 </script> 55 <?php 56 } 57 58 function getEditorContents( $editorArea, $hiddenField ) { 59 } 60 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Wed Feb 8 00:05:01 2012 | Cross-referenced by PHPXref 0.7 |
| Mambo API: Mambo is Free software released under the GNU/General Public License, Version 2 |