Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Update on View Updates
02-28-2014, 11:37 PM,
#2
RE: Update on View Updates
OK another update,

I'm starting to work in Bootstrap, and since Bootstrap needs jQuery I decided we could also get a proper tablesorter as well, so as you notice the table can be sorted by multiple columns (in this case, descending on the second and ascending on the first, in that order).
   

You can't see it from this example but the reason I implemented it was because the current table sort is doing a text sort on numbers, which causes some issues when they aren't the same length: an ascending sort will have 5 placed after 40 for example.

I have also created classes to describe forms and controls but it's still a work in progress, the table class should work fine for most applications but I wouldn't use the forms and controls just yet.

Attached is a compressed file of the additions I'm making, note that the tablesorter code comes from http://tablesorter.com/ if you're interested. It's all new files except for two small changes to header.inc and footer.inc to 'hook in' the new logic. Note that tables won't look like the picture unless they are implemented using the tableView class.

to 'hook in' add these lines to header.inc and footer.inc
before default.css is linked in header.inc i.e. before line 40:

Code:
include($_SERVER['DOCUMENT_ROOT'] . $RootPath . '/views/views-header.php');

after the last </div> but before </body> in footer.inc:
Code:
include($_SERVER['DOCUMENT_ROOT'] . $RootPath . '/views/views-footer.php');

Also attached is the modified AccountGroups.php that will display the table as shown. Note that I'm developing the css for aguapop first so it'll look weird with other themes, but I'll roll all the themes into the new design once I'm done.


Attached Files
.zip   webERP-Bootstrap.zip (Size: 247.13 KB / Downloads: 16)
.php   AccountGroups.php (Size: 19.94 KB / Downloads: 3)
Reply


Messages In This Thread
Update on View Updates - by serakfalcon - 02-28-2014, 01:12 AM
RE: Update on View Updates - by serakfalcon - 02-28-2014, 11:37 PM
RE: Update on View Updates - by phil - 03-01-2014, 01:53 PM
RE: Update on View Updates - by serakfalcon - 03-01-2014, 03:53 PM
RE: treating numbers as 'numbers' - by opto - 03-01-2014, 09:50 PM
RE: Update on View Updates - by Forums - 03-01-2014, 07:13 PM
RE: Update on View Updates - by Forums - 03-01-2014, 10:00 PM
RE: Update on View Updates - by Exsonqu_Qu - 03-03-2014, 09:38 AM
RE: Update on View Updates - by opto - 03-03-2014, 10:44 PM
RE: Update on View Updates - by serakfalcon - 03-04-2014, 12:35 PM
RE: Update on View Updates - by opto - 03-04-2014, 05:27 PM
RE: Update on View Updates - by Forums - 03-04-2014, 07:31 PM
RE: Update on View Updates - by serakfalcon - 03-05-2014, 02:17 AM
RE: Update on View Updates - by Forums - 03-05-2014, 04:12 AM
RE: Update on View Updates - by opto - 03-04-2014, 08:15 PM
RE: Update on View Updates - by Exsonqu_Qu - 03-05-2014, 01:40 PM
RE: Update on View Updates - by serakfalcon - 03-05-2014, 04:03 PM
RE: Update on View Updates - by Forums - 03-05-2014, 09:56 PM
RE: Update on View Updates - by Exsonqu_Qu - 03-06-2014, 06:36 PM
RE: Update on View Updates - by Forums - 03-06-2014, 06:47 PM
RE: Update on View Updates - by Forums - 03-05-2014, 06:43 PM
RE: Update on View Updates - by serakfalcon - 03-05-2014, 10:58 PM
RE: Update on View Updates - by opto - 03-05-2014, 08:11 PM
RE: Update on View Updates - by Forums - 03-05-2014, 08:21 PM
RE: Update on View Updates - by Forums - 03-05-2014, 11:21 PM
RE: Update on View Updates - by serakfalcon - 03-06-2014, 12:54 AM
RE: Update on View Updates - by opto - 03-06-2014, 10:15 PM
RE: Update on View Updates - by serakfalcon - 03-08-2014, 03:34 AM
RE: Update on View Updates - by Forums - 03-09-2014, 06:43 AM
RE: Update on View Updates - by icedlava - 03-09-2014, 10:51 PM
RE: Update on View Updates - by Forums - 03-10-2014, 04:58 AM
RE: Update on View Updates - by serakfalcon - 03-10-2014, 04:08 PM
RE: Update on View Updates - by icedlava - 03-10-2014, 04:53 PM
RE: Update on View Updates - by serakfalcon - 03-19-2014, 07:12 PM
RE: Update on View Updates - by serakfalcon - 04-04-2014, 03:03 PM
RE: Update on View Updates - by icedlava - 04-04-2014, 06:12 PM
RE: Update on View Updates - by serakfalcon - 04-04-2014, 07:24 PM
RE: Update on View Updates - by serakfalcon - 05-07-2014, 07:07 PM
RE: Update on View Updates - by wubuer198 - 12-10-2015, 05:13 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)