Added a print media CSS file, and fixed the jqGrid print problem of truncating the table to a single page. Also, used the opportunity to disable printing of the side menu and the debug toolkit, as well as some more jqGrid cleanup.

git-svn-id: file:///svn-source/pmgr/branches/yafr_20090716/site@403 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
abijah
2009-07-29 01:41:34 +00:00
parent 1d6c7436d4
commit 6cd0a1378d
2 changed files with 47 additions and 0 deletions

46
webroot/css/print.css Normal file
View File

@@ -0,0 +1,46 @@
/************************************************************
************************************************************
* Styles for media type: print
*/
/* No need for the menu */
table#layout td#sidecolumn
{ display: none; }
/* No need for the debug kit */
div#debug-kit-toolbar
{ display: none; }
/* In fact, no need for any debug stuff */
.debug
{ display: none; }
/************************************************************
* Grid display
*/
/* Grid are not to be truncated when printing, so
* set overflow to visible for necessary selectors.
*/
div#content, div.grid_bdiv
{ overflow: visible ! important }
div.grid_hdiv
{ border-bottom: 3px double #000; }
/* The header is generally useless, except for the <th>,
* as well as the footer navtable. The pagination buttons
* are of no use, nor is the selbox to set # of rows.
*/
.GridHeader td,
div.scroll .navtable,
div.scroll .pgbuttons,
div.scroll select.selbox
{ display: none; }
/* The "page N / M" input box... make it look like normal text */
div.scroll input[type='text'] {
border: none;
background: transparent;
}