Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Use print.css in header_printview.inc.php

  • Loading branch information...
commit b06b622dde9a903b9555fb3bbd382f15e049a979 1 parent 843fce6
@roccivic roccivic authored
View
4 db_printview.php
@@ -13,9 +13,7 @@
/**
* Gets the variables sent or posted to this script, then displays headers
*/
-$print_view = true;
-define('PMA_DISPLAY_HEADING', 0);
-require_once 'libraries/header.inc.php';
+require_once 'libraries/header_printview.inc.php';
PMA_checkParameters(array('db'));
View
2  libraries/header_meta_style.inc.php
@@ -44,7 +44,7 @@
echo 'phpMyAdmin';
}
?></title>
- <link rel="stylesheet" type="text/css" href="<?php echo defined('PMA_PATH_TO_BASEDIR') ? PMA_PATH_TO_BASEDIR : ''; ?>phpmyadmin.css.php<?php echo PMA_generate_common_url(array('server' => $GLOBALS['server'])); ?>&amp;js_frame=<?php echo isset($print_view) ? 'print' : 'right'; ?>&amp;nocache=<?php echo $GLOBALS['PMA_Config']->getThemeUniqueValue(); ?>" />
+ <link rel="stylesheet" type="text/css" href="<?php echo defined('PMA_PATH_TO_BASEDIR') ? PMA_PATH_TO_BASEDIR : ''; ?>phpmyadmin.css.php<?php echo PMA_generate_common_url(array('server' => $GLOBALS['server'])); ?>&amp;js_frame=right&amp;nocache=<?php echo $GLOBALS['PMA_Config']->getThemeUniqueValue(); ?>" />
<link rel="stylesheet" type="text/css" href="<?php echo defined('PMA_PATH_TO_BASEDIR') ? PMA_PATH_TO_BASEDIR : ''; ?>print.css" media="print" />
<link rel="stylesheet" type="text/css" href="<?php echo $GLOBALS['pmaThemePath']; ?>/jquery/jquery-ui-1.8.16.custom.css" />
<meta name="robots" content="noindex,nofollow" />
View
4 libraries/header_printview.inc.php
@@ -44,8 +44,8 @@
<meta charset="utf-8" />
<link rel="icon" href="favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
-<title><?php echo __('SQL result'); ?> - phpMyAdmin <?php echo PMA_VERSION ?></title>
-<link rel="stylesheet" type="text/css" href="phpmyadmin.css.php?<?php echo PMA_generate_common_url('', ''); ?>&amp;js_frame=print&amp;nocache=<?php echo $GLOBALS['PMA_Config']->getThemeUniqueValue(); ?>" />
+<title><?php echo __('Print view'); ?> - phpMyAdmin <?php echo PMA_VERSION ?></title>
+<link rel="stylesheet" type="text/css" href="print.css" />
<?php
require_once './libraries/header_scripts.inc.php';
?>
View
49 print.css
@@ -1,11 +1,14 @@
-.print_ignore {
+.nowrap {
+ white-space: nowrap;
+}
+
+.hide {
display: none;
}
body, table, th, td {
- color: #000000;
- background-color: #ffffff;
- font-size: 8pt;
+ color: #000;
+ background-color: #fff;
}
img {
@@ -13,9 +16,7 @@ img {
}
table, th, td {
- border-width: 0.1em;
- border-color: #000000;
- border-style: solid;
+ border: .1em solid #000;
}
table {
@@ -32,15 +33,30 @@ th {
background-color: #e5e5e5;
}
+th.vtop, td.vtop {
+ vertical-align: top;
+}
+
+th.vbottom, td.vbottom {
+ vertical-align: bottom;
+}
+
@media print {
.print_ignore {
display: none;
}
+ .nowrap {
+ white-space: nowrap;
+ }
+
+ .hide {
+ display: none;
+ }
+
body, table, th, td {
- color: #000000;
- background-color: #ffffff;
- font-size: 8pt;
+ color: #000;
+ background-color: #fff;
}
img {
@@ -48,9 +64,7 @@ th {
}
table, th, td {
- border-width: 1px;
- border-color: #000000;
- border-style: solid;
+ border: .1em solid #000;
}
table {
@@ -66,4 +80,13 @@ th {
font-weight: bold;
background-color: #e5e5e5;
}
+
+ th.vtop, td.vtop {
+ vertical-align: top;
+ }
+
+ th.vbottom, td.vbottom {
+ vertical-align: bottom;
+ }
}
+
View
4 tbl_printview.php
@@ -13,10 +13,8 @@
/**
* Gets the variables sent or posted to this script, then displays headers
*/
-$print_view = true;
-define('PMA_DISPLAY_HEADING', 0);
if (! isset($selected_tbl)) {
- include_once 'libraries/header.inc.php';
+ include_once 'libraries/header_printview.inc.php';
}
require 'libraries/tbl_common.inc.php';
Please sign in to comment.
Something went wrong with that request. Please try again.