From: Rafael C. <raf...@gm...> - 2015-03-07 00:30:03
|
Hi Phil, Sorry by the delay. Now I am back. About thead/tbody and javascript sorting function: Up to now, I do not have do enough tests nor deep studied the script. Theoretically, as I know, both should work together fine or --at least-- will be easy to fix any problem. I think we can have a nice media=print output, a div class for reports What-You-See (on screen) is What-You-Get (on printer) and sortable tables with fixed header/footer and scrolling body. The problem is some browsers that do not act as expected. There are some "hacks", but I "feel" they are not easy to undestand for a newbie in the script code (e.g. double header in tables; several relative blocks; etc.). I will keep you informed. Best regards, Rafael. Nice improvement - maybe we should have it in all tables - does it mess with Tim's javascript sorting function? Phil On 2015-03-05 16:58, Rafael Chacón wrote: > 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 [1] > 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/ [2] > _______________________________________________ > Web-erp-svn mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/web-erp-svn [3] > > > > Links: > ------ > [1] http://sourceforge.net/p/web-erp/reponame/7189 > [2] http://goparallel.sourceforge.net/ > [3] https://lists.sourceforge.net/lists/listinfo/web-erp-svn > > ------------------------------------------------------------------------------ > 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-developers mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/web-erp-developers ------------------------------------------------------------------------------ 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-developers mailing list Web...@li... https://lists.sourceforge.net/lists/listinfo/web-erp-developers |