Do print the page in "printview" mode
This commit is contained in:
@@ -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;
|
||||||
|
15
sql.php3
15
sql.php3
@@ -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
|
||||||
|
Reference in New Issue
Block a user