Feature request #700205

This commit is contained in:
Garvin Hicking
2003-03-09 11:18:52 +00:00
parent 2f8ee3f52c
commit 3ff3a3ba5f
2 changed files with 20 additions and 0 deletions

View File

@@ -5,6 +5,9 @@ phpMyAdmin - Changelog
$Id$
$Source$
2003-03-09 Garvin Hicking <me@supergarv.de>
* db_printview.php3: Added print button (#700205)
2003-03-08 Marc Delisle <lem9@users.sourceforge.net>
* libraries/transformations/*.sh: did not work in bash

View File

@@ -258,5 +258,22 @@ else {
* Displays the footer
*/
echo "\n";
?>
<script type="text/javascript" language="javascript1.2">
<!--
function printPage()
{
document.all.print.style.visibility = 'hidden';
// Do print the page
if (typeof(window.print) != 'undefined') {
window.print();
}
document.all.print.style.visibility = '';
}
//-->
</script>
<?php
echo '<br /><br />&nbsp;<input type="button" style="visibility: ; width: 100px; height: 25px" name="print" value="' . $strPrint . '" onclick="printPage()">' . "\n";
require('./footer.inc.php3');
?>