diff options
author | Michal Čihař <mcihar@suse.cz> | 2011-10-24 16:13:47 +0400 |
---|---|---|
committer | Michal Čihař <mcihar@suse.cz> | 2011-10-24 16:13:47 +0400 |
commit | 3dc06f4f704ce8ef49ddecf9a500796a7a41db47 (patch) | |
tree | 4818a9eb20e75fe00b20610e423096a70b9c486c /db_printview.php | |
parent | 848f057c498bc7ca1ca9aed12977718033475ad5 (diff) |
Unify print button code and factor it out to function
Diffstat (limited to 'db_printview.php')
-rw-r--r-- | db_printview.php | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/db_printview.php b/db_printview.php index 2ede085bdb..a03b8b1f97 100644 --- a/db_printview.php +++ b/db_printview.php @@ -244,24 +244,7 @@ if ($num_tables == 0) { /** * Displays the footer */ -?> - -<script type="text/javascript"> -//<![CDATA[ -function printPage() -{ - // Do print the page - if (typeof(window.print) != 'undefined') { - window.print(); - } -} -//]]> -</script> -<br /><br /> - -<input type="button" class="print_ignore" - id="print" value="<?php echo __('Print'); ?>" onclick="printPage()" /> +PMA_printButton(); -<?php require './libraries/footer.inc.php'; ?> |