Use same script tag, use CDATA for scripts (RFE #995065).

This commit is contained in:
Michal Čihař
2005-12-04 23:14:41 +00:00
parent d7c81e9c44
commit 75a16f45f8
15 changed files with 55 additions and 44 deletions

View File

@@ -543,8 +543,8 @@ foreach ($the_tables AS $key => $table) {
*/
echo "\n";
?>
<script type="text/javascript" language="javascript1.2">
<!--
<script type="text/javascript" language="javascript">
//<![CDATA[
function printPage()
{
// Do print the page
@@ -552,7 +552,7 @@ function printPage()
window.print();
}
}
//-->
//]]>
</script>
<?php
echo '<br /><br />&nbsp;<input type="button" class="print_ignore" style="width: 100px; height: 25px" id="print" value="' . $strPrint . '" onclick="printPage()" />' . "\n";