Do print the page in "printview" mode

This commit is contained in:
Loïc Chapeaux
2002-06-02 15:09:44 +00:00
parent 18e88a20b5
commit df6f3bfaa4
2 changed files with 16 additions and 0 deletions

View File

@@ -8,6 +8,7 @@ $Source$
2002-06-02 Lo<4C>c Chapeaux <lolo@phpheaven.net> 2002-06-02 Lo<4C>c Chapeaux <lolo@phpheaven.net>
* libraries/display_tbl.inc.php3, line 1413: xhtml fix. * libraries/display_tbl.inc.php3, line 1413: xhtml fix.
* libraries/fpdf/fpdf.php3: light optimizations and fixes. * libraries/fpdf/fpdf.php3: light optimizations and fixes.
* sql.php3, lines 509-522: do print the page in "printview" mode.
2002-06-01 Lo<4C>c Chapeaux <lolo@phpheaven.net> 2002-06-01 Lo<4C>c Chapeaux <lolo@phpheaven.net>
* db_details_structure.php3, lines 440-441; Documentation.html; * db_details_structure.php3, lines 440-441; Documentation.html;

View File

@@ -505,6 +505,21 @@ else {
</form> </form>
<?php <?php
} // end bookmark support } // end bookmark support
// Do print the page if required
if (isset($printview) && $printview == '1') {
echo "\n";
?>
<script type="text/javascript" language="javascript1.2">
<!--
// Do print the page
if (typeof(window.print) != 'undefined') {
window.print();
}
//-->
</script>
<?php
} // end print case
} // end rows returned } // end rows returned
} // end executes the query } // end executes the query