From: Rafael C. <raf...@gm...> - 2015-03-05 23:58:39
|
Hello, If someone want to use scrolling of the table body independently of the header and footer (on screen), and a common header printed at the top of each page (on printer), uncomment the two lines with <thead> and <tbody> tags. This do not work on all browsers (?). Best regards, Rafael. ---------- Forwarded message ---------- From: <rc...@us...> Date: 2015-03-05 17:49 GMT-06:00 Subject: [Web-erp-svn] SF.net SVN: web-erp:[7189] trunk To: web...@li... Revision: 7189 http://sourceforge.net/p/web-erp/reponame/7189 Author: rchacon Date: 2015-03-05 23:49:01 +0000 (Thu, 05 Mar 2015) Log Message: ----------- Format improvement: makes the body of the report use the entire width of the page. Modified Paths: -------------- trunk/GLBalanceSheet.php trunk/GLProfit_Loss.php Modified: trunk/GLBalanceSheet.php =================================================================== --- trunk/GLBalanceSheet.php 2015-03-05 01:57:24 UTC (rev 7188) +++ trunk/GLBalanceSheet.php 2015-03-05 23:49:01 UTC (rev 7189) @@ -400,7 +400,7 @@ _('All amounts stated in').': '. _($CurrencyName[$_SESSION['CompanyRecord']['currencydefault']]).'</p>';// Page title, reporting presentation currency and level of rounding used. echo '<div class="invoice"> - <table class="selection">'; + <table class="selection" width="100%">'; if ($_POST['Detail']=='Detailed'){ $TableHeader = '<tr> @@ -416,8 +416,8 @@ <th colspan="2">' ._('Last Year') . '</th> </tr>'; } +/* echo '<thead>' . $TableHeader . '<thead><tbody>';// thead used in conjunction with tbody enable scrolling of the table body independently of the header and footer. Also, when printing a large table that spans multiple pages, these elements can enable the table header to be printed at the top of each page. */ - $k=0; //row colour counter $Section=''; $SectionBalance = 0; @@ -704,20 +704,18 @@ <td></td> <td><hr /></td> </tr>'; - +/* echo '</tbody>';// See comment at the begin of the table.*/ echo '</table>'; echo '</div>'; - echo '<br />'; -/* <div class="centre noprint"><input type="submit" name="SelectADifferentPeriod" value="'._('Select A Different Balance Date').'" /></div>';*/ - -echo '<div class="centre noprint">'. + echo '<br /> + <div class="centre noprint">'. '<button onclick="javascript:window.print()" type="button"><img alt="" src="'.$RootPath.'/css/'.$Theme. '/images/printer.png" /> ' . _('Print This') . '</button>'.// "Print This" button. '<button name="SelectADifferentPeriod" type="submit" value="'. _('Select A Different Period') .'"><img alt="" src="'.$RootPath.'/css/'.$Theme. '/images/gl.png" /> ' . _('Select A Different Balance Date') . '</button>'.// "Select A Different Period" button. '<button formaction="index.php" type="submit"><img alt="" src="'.$RootPath.'/css/'.$Theme. '/images/previous.png" /> ' . _('Return') . '</button>'.// "Return" button. - '</div>'; + '</div>'; echo '</div></form>'; } Modified: trunk/GLProfit_Loss.php =================================================================== --- trunk/GLProfit_Loss.php 2015-03-05 01:57:24 UTC (rev 7188) +++ trunk/GLProfit_Loss.php 2015-03-05 23:49:01 UTC (rev 7189) @@ -625,7 +625,7 @@ /*show a table of the accounts info returned by the SQL Account Code , Account Name , Month Actual, Month Budget, Period Actual, Period Budget */ - echo '<table class="selection">'; + echo '<table class="selection" width="100%">'; if ($_POST['Detail']=='Detailed'){ $TableHeader = '<tr> @@ -643,8 +643,8 @@ <th colspan="2">' . _('Last Year') . '</th> </tr>'; } +/* echo '<thead>' . $TableHeader . '<thead><tbody>';// thead used in conjunction with tbody enable scrolling of the table body independently of the header and footer. Also, when printing a large table that spans multiple pages, these elements can enable the table header to be printed at the top of each page. */ - $j = 1; $k=0; //row colour counter $Section=''; @@ -1301,6 +1301,7 @@ <td colspan="2"></td> <td colspan="6"><hr /></td> </tr>'; +/* echo '</tbody>';// See comment at the begin of the table.*/ echo '</table>'; echo '<br /> <div class="centre noprint">'. ------------------------------------------------------------------------------ Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ Web-erp-svn mailing list Web...@li... https://lists.sourceforge.net/lists/listinfo/web-erp-svn |