Make javascript work on more browsers than MSIE.
This commit is contained in:
@@ -10,6 +10,7 @@ $Source$
|
||||
libraries/display_tbl.lib.php3, libraries/get_foreign.lib.php3: Get row
|
||||
count by SHOW TABLE STATUS, and by SELECT COUNT(*) only for small
|
||||
(<20000 rows) tables (RFE #708533).
|
||||
* tbl_printview.php3: Make javascript work on more browsers than MSIE.
|
||||
|
||||
2003-04-09 Michal Cihar <nijel@users.sourceforge.net>
|
||||
* libraries/build_dump.lib.php3: Fixed undefined index warnings in LaTeX
|
||||
|
@@ -625,17 +625,17 @@ echo "\n";
|
||||
<!--
|
||||
function printPage()
|
||||
{
|
||||
document.all.print.style.visibility = 'hidden';
|
||||
document.getElementById('print').style.visibility = 'hidden';
|
||||
// Do print the page
|
||||
if (typeof(window.print) != 'undefined') {
|
||||
window.print();
|
||||
}
|
||||
document.all.print.style.visibility = '';
|
||||
document.getElementById('print').style.visibility = '';
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
<?php
|
||||
echo '<br /><br /> <input type="button" style="visibility: ; width: 100px; height: 25px" name="print" value="Print" onclick="printPage()">' . "\n";
|
||||
echo '<br /><br /> <input type="button" style="visibility: ; width: 100px; height: 25px" id="print" value="Print" onclick="printPage()">' . "\n";
|
||||
|
||||
require('./footer.inc.php3');
|
||||
?>
|
||||
|
Reference in New Issue
Block a user