Re: Datagrid class in PEAR?

From: Date: Fri, 19 Apr 2002 14:49:43 +0000
Subject: Re: Datagrid class in PEAR?
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-1218@lists.php.net to get a copy of this message
I was working on something like this a while back, and here is what I came up with: http://www.newbienetwork.net/class.report.php?order_by=secname&order_by_desc =1 The code at the bottom is all that is need to display the table above it. It's rather simply, but for me, when I want to do reports like this, I just want something quick and easy. I stopped work on it, but I still have all the code, and would be more than willing to open it up and share it, though it's still in the "I am not pretty code" stage, but its a start. Jason Lotito ----- Original Message ----- From: "Guillaume JUSTIER" <newsgroup@inmeres.com> To: "Bertrand Mansion" <bmansion@mamasam.com>; "Markus Wolff" <wolff@21st.de>; <pear-general@lists.php.net> Cc: <pear-dev@lists.php.net> Sent: Friday, April 19, 2002 8:26 AM Subject: RE: [PEAR] Datagrid class in PEAR? > Hi Markus, Peter, Bertrand, and anybody interested in the DataGrid class !!! > > First of all, > I have just discovered PEAR a week ago (never too late), so I would like > to apologize in advance for my ignorance on the subject. > > I have been obviously following the PEAR mailing lists to get familiar > with the libraries and terms, but there is lot to learn > > I hope I'll be able to contribute one day to the great work you guys did > so far, and the Datagrid seems like a good opportunity as it is something > I am very likely to use in the near future. > > Following this thread I gather there are (at least) two possibilities to > implement > such a class : > 1 - Template base. > 2 - Object based like so (more or less) : > .... > $DBGrid->sql='select * from users'; > $DBGrid->columns('name','login','telephone','fax') > ... > $DBGrid->display; > $DBGrid->close; > > I 'll have to look more into the tools mentioned by Bertrand (ITX, > HTML_Table, QuickForm) > so what would be the advantages of one over the other ? > > Again, sorry for the possibly silly question(s), but I'll hope I 'll be able > to contribute soon. > > Regards, > > Guillaume > ============================================ > Guillaume JUSTIER > Inmeres Solutions Ltd > > [e] guillaume@removeme.inmeres.com > [w] www.inmeres.com > [t] +44 (0)7980 743 771 > [f] +44 (0)7092 012 199 > [a] 6 Cambridge Square > Royal Earlswood Park > Redhill > Surrey > RH1 6TG > UK > ============================================ > > > > -- > PEAR General Mailing List (http://pear.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.pear.general (#1218) next »