Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Čihař <mcihar@suse.cz>2011-10-24 16:13:47 +0400
committerMichal Čihař <mcihar@suse.cz>2011-10-24 16:13:47 +0400
commit3dc06f4f704ce8ef49ddecf9a500796a7a41db47 (patch)
tree4818a9eb20e75fe00b20610e423096a70b9c486c /db_printview.php
parent848f057c498bc7ca1ca9aed12977718033475ad5 (diff)
Unify print button code and factor it out to function
Diffstat (limited to 'db_printview.php')
-rw-r--r--db_printview.php19
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';
?>