Files
@ ad303f67d1aa
Branch filter:
Location: hot67beta/components/com_content/views/article/tmpl/pagebreak.php - annotation
ad303f67d1aa
1.3 KiB
text/x-php
it works\!
c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 | <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>
<table width="100%" align="center">
<tr width="40%">
<td class="key" align="right">
<label for="title">
<?php echo JText::_( 'PGB PAGE TITLE' ); ?>
</label>
</td>
<td>
<input type="text" id="title" name="title" />
</td>
</tr>
<tr width="60%">
<td class="key" align="right">
<label for="alias">
<?php echo JText::_( 'PGB TOC ALIAS PROMPT' ); ?>
</label>
</td>
<td>
<input type="text" id="alt" name="alt" />
</td>
</tr>
</table>
</form>
<button onclick="insertPagebreak();"><?php echo JText::_( 'PGB INS PAGEBRK' ); ?></button>
|