| [ Index ] |
PHP Cross Reference of Joomla 1.5.26 DE |
[Summary view] [Print] [Text view]
1 <?php // no direct access 2 defined( '_JEXEC' ) or die( 'Restricted access' ); ?> 3 <script type="text/javascript"> 4 function insertPagebreak(editor) 5 { 6 // Get the pagebreak title 7 var title = document.getElementById("title").value; 8 if (title != '') { 9 title = "title=\""+title+"\" "; 10 } 11 12 // Get the pagebreak toc alias -- not inserting for now 13 // don't know which attribute to use... 14 var alt = document.getElementById("alt").value; 15 if (alt != '') { 16 alt = "alt=\""+alt+"\" "; 17 } 18 19 var tag = "<hr class=\"system-pagebreak\" "+title+" "+alt+"/>"; 20 21 window.parent.jInsertEditorText(tag, '<?php echo preg_replace( '#[^A-Z0-9\-\_\[\]]#i', '', JRequest::getVar('e_name') ); ?>'); 22 window.parent.document.getElementById('sbox-window').close(); 23 return false; 24 } 25 </script> 26 27 <form> 28 <table width="100%" align="center"> 29 <tr width="40%"> 30 <td class="key" align="right"> 31 <label for="title"> 32 <?php echo JText::_( 'PGB PAGE TITLE' ); ?> 33 </label> 34 </td> 35 <td> 36 <input type="text" id="title" name="title" /> 37 </td> 38 </tr> 39 <tr width="60%"> 40 <td class="key" align="right"> 41 <label for="alias"> 42 <?php echo JText::_( 'PGB TOC ALIAS PROMPT' ); ?> 43 </label> 44 </td> 45 <td> 46 <input type="text" id="alt" name="alt" /> 47 </td> 48 </tr> 49 </table> 50 </form> 51 <button onclick="insertPagebreak();"><?php echo JText::_( 'PGB INS PAGEBRK' ); ?></button>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Wed Mar 28 15:54:07 2012 | Cross-referenced by PHPXref 0.7.1 |