Computer HardwareXbox GamesGameCubePlaystation 2PSOnePC/Windows GamesGameboy AdvanceDreamcastNintendo 64Gameboy ColorNintendo DSSony PSPXbox 360Nintendo Wii GamesPS3 Games

Neoseeker Forums » Programming and Design » Web Coding » [Challenge] Building a Generic Pageable and Sortable Grid

Moderated by: Kuldahar,  Artificer
REPLY TO THIS THREAD   START NEW THREAD
Options: Print   subscribe   remove   send to friend   PM this thread to a friendNeoPM
subscribe to thread Topic: [Challenge] Building a Generic Pageable and Sortable Grid
Artificer
Nov 05, 09 at 6:52am
[Challenge] Building a Generic Pageable and Sortable Grid

I thought it would be a good practical challenge to build a web page that displays a grid of data that is both pageable and sortable. Here are the requirements:

1. The page must initially display a grid which shows the contents of an array of objects, with one column per property.
2. The column headers must be clickable. If you click a column that has not been sorted or is sorted in descending order, it must sort the grid data in ascending order. If you click a column that is already sorted in ascending order, it must sort the grid data in descending order.
3. The grid must have a footer that allows you to page back and forth through the data. Show 5 records per page.

The first part of the challenge is to take objects of the following type and show four columns, one for each property. All of these properties are required on the Book object. The ISBN and title must be displayed as is. The publish date should be shown in the DD/MM/YYYY format. The authors should be comma-delimited.

php code


class Book
{
    public /* string */ $isbn;
    public /* string */ $title;
    public /* int */ $publishDate; // This is a timestamp
    public /* string array */ $authors;
}
 



.NET users can substitute the type of PublishDate with DateTime instead of int, if desired.

As always put your code in between spoiler tags. Actual sites would be nice to see!


-------------------
100% of innovation—from business to politics—is inspired not by "market analysis" but by people who are supremely pissed off by the way things are.

Tom Peters
quote   quick quote   edit   quick edit   del  searchposts in thread  report
Mr Roboto
Freebies Rule
high on "N"



Mr Roboto's profileMr Roboto's neohomeNeoPM Mr Roboto
since: Jul 2004
Nov 07, 09 at 10:44pm
re: [Challenge] Building a Generic Pageable and Sortable Grid

I'm gonna try my best to squeeze in some time for this. All you others better as well. What's the timeline for this? Is there a set end date or just after it looks like nobody else will make an entry?


-------------------
quote   quick quote   edit   quick edit   del  searchposts in thread  report
bobbonew
Nov 09, 09 at 8:17am
re: [Challenge] Building a Generic Pageable and Sortable Grid

I'll try, but this is damn involved. Couldn't just be write a new hash function or something?



-------------------
quote   quick quote   edit   quick edit   del  searchposts in thread  report
Artificer
Nov 09, 09 at 3:38pm
re: [Challenge] Building a Generic Pageable and Sortable Grid

quote Mr Roboto
I'm gonna try my best to squeeze in some time for this. All you others better as well. What's the timeline for this? Is there a set end date or just after it looks like nobody else will make an entry?
I will probably close it at the end of the month. That should be enough time, I think.


-------------------
100% of innovation—from business to politics—is inspired not by "market analysis" but by people who are supremely pissed off by the way things are.

Tom Peters
quote   quick quote   edit   quick edit   del  searchposts in thread  report
[All dates in (PT) time]Threads List   « Next Newest   Next Oldest »
REPLY TO THIS THREAD   START NEW THREAD


search:
Neoseeker Forums » Programming and Design » Web Coding » [Challenge] Building a Generic Pageable and Sortable Grid



Jump to another forum:

Powered by neoforums v0.9.7g (equilibrium)
Copyright Neo Era Media, Inc. 1999-2009

neoseeker forum community
Neoseeker.com   |   Forum Rules   |   Forum FAQ   |   Neoseeker Terms of Use   |   Supermods On Duty [ server id: ascension ··· elapsed: 0.0852839947]
Affiliated sites:   GameGrep - Football Manager Wiki - Halo Wiki - MGS Wiki - GTA Wiki - Smackdown Wiki - Zelda Wiki - PS2seeker - Xbox seeker - DEVPEN - GFXcess