![]() |
Modify Shop Display
I am trying to modify the shop listing display so that shops are next to one another (I am only showing the images), instead of over one another. So, say I have 5 shops, it show 5 shops all next to one another horizontally.
Say I have 10 shops, it has 2 rows of 5. I am not very clever with PHP generated tables, so I am a wee bit lost. Does anyone know how I might accomplish this? |
You need to create a table without border, and then you need to calculate the number of rows from total shops and the columns(5 in your case). You will use PHP for loops to add table cells to a table row until it needs to switch to a new row. Finally you add all rows to the table, and add table to the document.
If it sounds too complex, you can take a look at levelupview.php file and method daycare(), it will give you an example of how to create Icon View. It is not very difficult once you get a hang of it. Code:
$daycareTable = new Table("daycare", "", FALSE); |
Here's my code for /view/shopview.php:
PHP Code:
|
Thank you both!
I've decided to use Lotus's modifications, now I can set it up to actually look like a market! |
All times are GMT -5. The time now is 01:02 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.