|
From: <vv...@us...> - 2015-02-17 20:14:35
|
Revision: 7155
http://sourceforge.net/p/web-erp/reponame/7155
Author: vvs2012
Date: 2015-02-17 20:14:32 +0000 (Tue, 17 Feb 2015)
Log Message:
-----------
Added print.css
Modified Paths:
--------------
trunk/GLBalanceSheet.php
trunk/GLProfit_Loss.php
trunk/GLTrialBalance.php
trunk/doc/Change.log
trunk/includes/header.inc
Added Paths:
-----------
trunk/css/print.css
Modified: trunk/GLBalanceSheet.php
===================================================================
--- trunk/GLBalanceSheet.php 2015-02-17 18:32:23 UTC (rev 7154)
+++ trunk/GLBalanceSheet.php 2015-02-17 20:14:32 UTC (rev 7155)
@@ -384,7 +384,7 @@
chartdetails.accountcode";
$AccountsResult = DB_query($SQL,_('No general ledger accounts were returned by the SQL because'));
- echo '<p class="page_title_text"><img src="'.$RootPath.'/css/'.$Theme.'/images/preview.gif" title="' . _('Search') . '" alt="" /> ' . _('HTML View') . '</p>';
+ echo '<p class="page_title_text noprint"><img src="'.$RootPath.'/css/'.$Theme.'/images/preview.gif" title="' . _('Search') . '" alt="" /> ' . _('HTML View') . '</p>';
echo '<div class="invoice">
<table class="selection">
@@ -701,7 +701,7 @@
echo '</table>';
echo '</div>';
- echo '<br /><div class="centre"><input type="submit" name="SelectADifferentPeriod" value="'._('Select A Different Balance Date').'" /></div>';
+ echo '<br /><div class="centre noprint"><input type="submit" name="SelectADifferentPeriod" value="'._('Select A Different Balance Date').'" /></div>';
echo '</div></form>';
}
Modified: trunk/GLProfit_Loss.php
===================================================================
--- trunk/GLProfit_Loss.php 2015-02-17 18:32:23 UTC (rev 7154)
+++ trunk/GLProfit_Loss.php 2015-02-17 20:14:32 UTC (rev 7155)
@@ -608,7 +608,8 @@
$AccountsResult = DB_query($SQL,_('No general ledger accounts were returned by the SQL because'),_('The SQL that failed was'));
- echo '<p class="page_title_text"><img src="'.$RootPath.'/css/'.$Theme.'/images/transactions.png" title="' . _('General Ledger Profit Loss Inquiry') . '" alt="" />' . ' ' . _('Statement of Profit and Loss for the') . ' ' . $NumberOfMonths . ' ' . _('months to') . ' and including ' . $PeriodToDate . '</p>';
+ echo '<p class="page_title_text"><img class="noprint" src="'.$RootPath.'/css/'.$Theme.'/images/transactions.png" title="' . _('General Ledger Profit Loss Inquiry') . '" alt="" />
+ <h2>' . ' ' . _('Statement of Profit and Loss for the') . ' ' . $NumberOfMonths . ' ' . _('months to') . ' and including ' . $PeriodToDate . '</h2></p>';
/*show a table of the accounts info returned by the SQL
Account Code , Account Name , Month Actual, Month Budget, Period Actual, Period Budget */
@@ -1290,7 +1291,7 @@
<td colspan="6"><hr /></td>
</tr>';
echo '</table>';
- echo '<br /><div class="centre"><input type="submit" name="SelectADifferentPeriod" value="' . _('Select A Different Period') . '" /></div>';
+ echo '<br /><div class="centre noprint"><input type="submit" name="SelectADifferentPeriod" value="' . _('Select A Different Period') . '" /></div>';
}
echo '</div>';
echo '</form>';
Modified: trunk/GLTrialBalance.php
===================================================================
--- trunk/GLTrialBalance.php 2015-02-17 18:32:23 UTC (rev 7154)
+++ trunk/GLTrialBalance.php 2015-02-17 20:14:32 UTC (rev 7155)
@@ -435,7 +435,7 @@
$AccountsResult = DB_query($SQL, _('No general ledger accounts were returned by the SQL because'), _('The SQL that failed was:'));
- echo '<p class="page_title_text"><img src="'.$RootPath.'/css/'.$Theme.'/images/magnifier.png" title="' .
+ echo '<p class="page_title_text noprint"><img src="'.$RootPath.'/css/'.$Theme.'/images/magnifier.png" title="' .
_('Trial Balance') . '" alt="" />' . ' ' . _('Trial Balance Report') . '</p>';
/*show a table of the accounts info returned by the SQL
@@ -727,7 +727,7 @@
locale_number_format($CheckPeriodBudget,$_SESSION['CompanyRecord']['decimalplaces']));
echo '</table><br />';
- echo '<div class="centre">
+ echo '<div class="centre noprint">
<input type="submit" name="SelectADifferentPeriod" value="' . _('Select A Different Period') . '" />
</div>';
}
Added: trunk/css/print.css
===================================================================
--- trunk/css/print.css (rev 0)
+++ trunk/css/print.css 2015-02-17 20:14:32 UTC (rev 7155)
@@ -0,0 +1,67 @@
+@media print {
+
+#HeaderDiv {display:none;}
+#FooterDiv {display:none;}
+#MainMenuDiv {display:none;}
+.noprint {display:none;}
+
+#content p {
+ color: black;
+}
+
+#content img {
+ display:block;
+ page-break-after: avoid;
+ page-break-inside: avoid;
+}
+
+#content ul, li {
+ display:block;
+ page-break-inside:avoid;
+}
+
+hr {
+ color: black;
+}
+
+a {
+ color:navy;
+ text-decoration:none;
+}
+
+#CanvasDiv, body {
+ font-family: Arial, Verdana, Helvetica, sans-serif;
+ font-size:11pt;
+ background: white;
+ background-image: none;
+ margin: 0;
+ border: none;
+ border-radius: 0;
+ padding: 0;
+ box-shadow: none;
+}
+
+#BodyDiv {
+ background: white;
+ background-image: none;
+ width: 100%;
+ margin: 0;
+ float: none;
+ border: none;
+ border-radius: 0;
+ padding: 0;
+ box-shadow: none;
+}
+
+#BodyDiv table{
+ background: white;
+ border: none;
+ padding: 0;
+ box-shadow: none;
+ border-radius:0;
+}
+
+.site-description {display:none;}
+.site-title {display:none;}
+
+}
Modified: trunk/doc/Change.log
===================================================================
--- trunk/doc/Change.log 2015-02-17 18:32:23 UTC (rev 7154)
+++ trunk/doc/Change.log 2015-02-17 20:14:32 UTC (rev 7155)
@@ -1,5 +1,6 @@
webERP Change Log
+17/2/15 Vitaly: Added print.css to allow printing pages off the screen
15/2/2015: Exson: Fixed date format error for request date and start date in WorkOrderEntry.php.
12/2/15 RChacon: Fix on PrintCustTransPortrait.php: Do not need to escape special characters in a string for use in an SQL statement.
11/2/15 Vitaly: BOMIndented.php fix bug that duplicated components - error with SQL to restrict to only those users with permission to view a locations
Modified: trunk/includes/header.inc
===================================================================
--- trunk/includes/header.inc 2015-02-17 18:32:23 UTC (rev 7154)
+++ trunk/includes/header.inc 2015-02-17 20:14:32 UTC (rev 7155)
@@ -37,7 +37,8 @@
} else {
echo '<meta http-equiv="Content-Type" content="application/html; charset=utf-8" />';
}
- echo '<link href="' . $RootPath . '/css/'. $_SESSION['Theme'] .'/default.css" rel="stylesheet" type="text/css" />';
+ echo '<link href="' . $RootPath . '/css/print.css" rel="stylesheet" type="text/css" media="print" />';
+ echo '<link href="' . $RootPath . '/css/'. $_SESSION['Theme'] .'/default.css" rel="stylesheet" type="text/css" media="screen"/>';
echo '<script type="text/javascript" src = "'.$RootPath.'/javascripts/MiscFunctions.js"></script>';
echo '</head>';
echo '<body>';
|