CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 Multiple column Grid - PHP4 & Templates

Print topic Send  topic

Author Message
Jeri2001
Posted: 10/06/2002, 4:37 PM

Hi,

I have a page where I would like to list about 200 records. It would look much better to have 3 columns of listings rather than one long list.

For example the page would list cities in a state. So, the number of rows would vary depending on the state. I looked at the Tips and Articles but the articles there were for CCS and non-templated pages.

Any help greatly appreciated.

Thanks,

Jer
Jer
Posted: 10/07/2002, 8:41 PM

Any ideas?
antman
Posted: 10/08/2002, 1:06 AM

Just an idea.
You could take advantage of the page number.

Add a navigation to your grid and codecharge will add a page parameter. You can se this parameters name if you click on the link to the bottom of the grid.

Then you could add the grid twice (I will call them left and right grid).
Add code to the open that changes the pagenumber parameter, for the left grid n pagenumber and for the right grid n+1 pagenumber.
*****************************************************************
Another idea

For mysql you can change "sWhere" on the open event i think and add "limit ($pagenumber-1)*$recordspercolumn,($pagenumber)*$recordspercolumn"


MAny details are required but that is the basic idea
Jeri2001
Posted: 10/08/2002, 2:23 AM

Thanks,

I gave up trying to use templates and resorted to embedding PHP with the HTML. Not the way I'd like to do, but it worked.

Jer
Tomasz
Posted: 10/08/2002, 6:18 AM

There's an example at T&T:
http://www.gotocode.com/art.asp?art_id=189&

I've tried, it works
Tomasz
Posted: 10/08/2002, 6:21 AM

My mistake:

for CC is here: http://www.gotocode.com/art.asp?art_id=115&

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.