| Server IP : 195.130.67.5 / Your IP : 216.73.217.154 Web Server : Microsoft-IIS/10.0 System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586 User : IUSR ( 0) PHP Version : 7.4.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/inetpub/wwwroot/icd/templates/mobile_pda/html/com_content/article/ |
Upload File : |
<script type="text/javascript">
function insertPagebreak(editor)
{
// Get the pagebreak title
var title = document.getElementById("title").value;
if (title != '') {
title = "title=\""+title+"\" ";
}
// Get the pagebreak toc alias -- not inserting for now
// don't know which attribute to use...
var alt = document.getElementById("alt").value;
if (alt != '') {
alt = "alt=\""+alt+"\" ";
}
var tag = "<hr class=\"system-pagebreak\" "+title+" "+alt+"/>";
window.parent.jInsertEditorText(tag, '<?php echo preg_replace( '#[^A-Z0-9\-\_\[\]]#i', '', JRequest::getVar('e_name') ); ?>');
window.parent.document.getElementById('sbox-window').close();
return false;
}
</script>
<form>
<div align="center">
<div class="key" align="right"><label for="title"><?php echo JText::_( 'PGB PAGE TITLE' ); ?></label></div>
<div><input type="text" id="title" name="title" /></div>
<div class="key" align="right"><label for="alias"><?php echo JText::_( 'PGB TOC ALIAS PROMPT' ); ?></label></div>
<div><input type="text" id="alt" name="alt" /></div>
</div>
</form>
<button onclick="insertPagebreak();"><?php echo JText::_( 'PGB INS PAGEBRK' ); ?></button>