| [ Index ] |
PHP Cross Reference of Joomla 2.5.4 DE |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * @package Joomla.Administrator 4 * @subpackage com_content 5 * @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved. 6 * @license GNU General Public License version 2 or later; see LICENSE.txt 7 */ 8 9 defined('_JEXEC') or die; 10 11 $script = 'function insertPagebreak() {'."\n\t"; 12 // Get the pagebreak title 13 $script .= 'var title = document.getElementById("title").value;'."\n\t"; 14 $script .= 'if (title != \'\') {'."\n\t\t"; 15 $script .= 'title = "title=\""+title+"\" ";'."\n\t"; 16 $script .= '}'."\n\t"; 17 // Get the pagebreak toc alias -- not inserting for now 18 // don't know which attribute to use... 19 $script .= 'var alt = document.getElementById("alt").value;'."\n\t"; 20 $script .= 'if (alt != \'\') {'."\n\t\t"; 21 $script .= 'alt = "alt=\""+alt+"\" ";'."\n\t"; 22 $script .= '}'."\n\t"; 23 $script .= 'var tag = "<hr class=\"system-pagebreak\" "+title+" "+alt+"/>";'."\n\t"; 24 $script .= 'window.parent.jInsertEditorText(tag, \''.$this->eName.'\');'."\n\t"; 25 $script .= 'window.parent.SqueezeBox.close();'."\n\t"; 26 $script .= 'return false;'."\n"; 27 $script .= '}'."\n"; 28 29 JFactory::getDocument()->addScriptDeclaration($script); 30 ?> 31 <form> 32 <table width="100%" align="center"> 33 <tr width="40%"> 34 <td class="key" align="right"> 35 <label for="title"> 36 <?php echo JText::_( 'COM_CONTENT_PAGEBREAK_TITLE' ); ?> 37 </label> 38 </td> 39 <td> 40 <input type="text" id="title" name="title" /> 41 </td> 42 </tr> 43 <tr width="60%"> 44 <td class="key" align="right"> 45 <label for="alias"> 46 <?php echo JText::_( 'COM_CONTENT_PAGEBREAK_TOC' ); ?> 47 </label> 48 </td> 49 <td> 50 <input type="text" id="alt" name="alt" /> 51 </td> 52 </tr> 53 </table> 54 </form> 55 <button onclick="insertPagebreak();"><?php echo JText::_( 'COM_CONTENT_PAGEBREAK_INSERT_BUTTON' ); ?></button>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Tue Apr 3 11:40:28 2012 | Cross-referenced by PHPXref 0.7.1 |