close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

How to get results in a grid?

Thread begun 8/10/2024 10:30 am by Peterson Design Studio - jefferis | Last modified 8/15/2024 10:07 am by Patrice | 326 views | 3 replies |

Peterson Design Studio - jefferis

How to get results in a grid?

Hi folks, I believe when I created this page they were in a grid. Now they are displayed as a column

html:
https://www.ringsbychristianbauer.com/weddingrings.php



Any idea how to get this page to function again as a grid? It was developed a long time ago, and I forget all I did to create it

<table border="0" cellpadding="0" cellspacing="0" >
<tr>
<?php
do { // horizontal looper version 3
?>
<td width="146" align="center" ><form action="form.php" method="post" enctype="multipart/form-data" target="_self" />
<input name="image" type="image" value="value" src="/thumbs/<?php echo $WeddingRings->getColumnVal('Images'); ?>" alt="<?php echo $WeddingRings->getColumnVal('Left_or_Top_Description'); ?>" width="150" height="150" border="0" id="WeddingRings" /><br />No: <?php echo $WeddingRings->getColumnVal('Left_Number'); ?>
<input name="img" type="hidden" value="<?php echo $WeddingRings->getColumnVal('Images'); ?>" />
<input name="Leftno" type="hidden" value="<?php echo $WeddingRings->getColumnVal('Left_Number'); ?>" />
<input name="Leftdesc" type="hidden" value="<?php echo $WeddingRings->getColumnVal('Left_or_Top_Description'); ?>" />
<input name="Leftdim" type="hidden" value="<?php echo $WeddingRings->getColumnVal('L_Dimensions'); ?>" />
<input name="Rightno" type="hidden" value="<?php echo $WeddingRings->getColumnVal('Right_Number'); ?>" />
<input name="Rightdesc" type="hidden" value="<?php echo $WeddingRings->getColumnVal('Right_or_Bottom_Description'); ?>" />
<input name="Rightdim" type="hidden" value="<?php echo $WeddingRings->getColumnVal('R_Dimensions'); ?>" />
<input name="Ourname" type="hidden" value="<?php echo $WeddingRings->getColumnVal('OurName'); ?>" />
<input name="CurPage" type="hidden" value="<?php echo curPageURL(); ?>" />
</form></td>
<?php
$row_WeddingRings = mysqli_fetch_assoc($WeddingRings);
if (!isset($nested_WeddingRings)) {
$nested_WeddingRings= 1;
}
if (isset($row_WeddingRings) && is_array($row_WeddingRings) && $nested_WeddingRings++ % 3==0) {
echo "</tr><tr>";
}
} while ($row_WeddingRings); //end horizontal looper version 3
?>
</tr>
</table>
<?php
$WeddingRings->moveNext();
}
$WeddingRings->moveFirst(); //return RS to first record
unset($wa_startindex);
unset($wa_repeatcount);
?></div>
<div align="center"><table border="0" align="center" cellpadding="0" cellspacing="0" id="repeatnav">
<tr>
<td colspan="5" align="center"><img src="/images/images/spacer.gif" width="250" height="1" alt="spacer" /></td>
</tr>
<tr>
<td align="center"><?php if ($WeddingRings->PageNum > 0) { // Show if mysqli not first page ?>
<a href="<?php echo $WeddingRings->getFirstPageLink(); ?>" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('videobut_r1_c1','','plugins/images/videobut_r1_c1_f2.gif',1);"><img name="videobut_r1_c1" src="images/videobut_r1_c1.gif" width="42" height="13" border="0" id="videobut_r1_c1" alt="First" /></a>
<?php } // Show if mysqli not first page ?>
<?php if ($WeddingRings->PageNum == 0) { // Show if mysqli first page ?>
<img src="/images/videobut_r1_c1_f2.gif" width="42" height="13" alt="spacer" />
<?php } // Show if mysqli first page ?></td>
<td><?php if ($WeddingRings->PageNum > 0) { // Show if mysqli not first page ?>
<a href="<?php echo $WeddingRings->getPrevPageLink(); ?>" onmouseover="MM_swapImage('videobut_r1_c3','','plugins/images/videobut_r1_c3_f2.gif',1)" onmouseout="MM_swapImgRestore()"><img name="videobut_r1_c3" src="/images/videobut_r1_c3.gif" width="41" height="13" border="0" id="videobut_r1_c3" alt="Previous" /></a>
<?php } // Show if mysqli not first page ?><?php if ($WeddingRings->PageNum == 0) { // Show if mysqli first page ?>
<img src="/images/videobut_r1_c3_f2.gif" width="41" height="13" alt="spacer" />
<?php } // Show if mysqli first page ?></td>
<td align="center"><?php if ($WeddingRings->PageNum < $WeddingRings->TotalPages) { // Show if mysqli not last page ?>
<a href="<?php echo $WeddingRings->getNextPageLink(); ?>" onmouseover="MM_swapImage('videobut_r1_c5','','plugins/images/videobut_r1_c5_f2.gif',1)" onmouseout="MM_swapImgRestore()"><img name="videobut_r1_c5" src="/images/videobut_r1_c5.gif" width="35" height="13" border="0" id="videobut_r1_c5" alt="Next" /></a>
<?php } // Show if mysqli not last page ?>
<?php if ($WeddingRings->PageNum >= $WeddingRings->TotalPages) { // Show if mysqli last page ?>
<img src="/images/videobut_r1_c5_f2.gif" width="35" height="13" alt="spacer" />
<?php } // Show if mysqli last page ?></td>
<td align="center">
<a href="<?php echo $WeddingRings->getLastPageLink(); ?>" onmouseover="MM_swapImage('videobut_r1_c7','','plugins/images/videobut_r1_c7_f2.gif',1)" onmouseout="MM_swapImgRestore()">
<?php if ($WeddingRings->PageNum < $WeddingRings->TotalPages) { // Show if mysqli not last page ?>
<img name="videobut_r1_c7" src="/images/videobut_r1_c7.gif" width="37" height="13" border="0" id="videobut_r1_c7" alt="Last" />
<?php } // Show if mysqli not last page ?>
</a>
<?php if ($WeddingRings->PageNum >= $WeddingRings->TotalPages) { // Show if mysqli last page ?>
<img src="/images/videobut_r1_c7_f2.gif" width="37" height="13" alt="spacer" />
<?php } // Show if mysqli last page ?></td>
<td>&nbsp;</td>
</tr>
</table>
Sign in to reply to this post

PatriceWebAssist

What is this?

<?php
do { // horizontal looper version 3
?>

I see you are using:

PVII CSS Page Builder Magic 2

Are all the related files uploaded for that package?

Al Sparber has passed away and P7 Forum is no longer functioning, but Gerry is doing one-on-one help, so if you email him, he may be able to spot the issue too: support@projectseven.com

Sign in to reply to this post

PatriceWebAssist

ah... the looper is a VERY old Tom Muck extension. I remember that from a zillion years ago. I doubt you need it with newer css coming into play.

Suggestion: Create a simple page without a form etc. Create a div that is 100% of the page. Within that div, create a new div (named something so you can id later for phone) at 25%. Enter an image, text etc. Tie all to database table as appropriate. Then envelop the 25% div and do a repeat region. It should put all in rows of 4 images. (25% will give you 4 to a row, 20% will be 5 to a row etc.) Add media query for phone size to show that name div for 100% etc.

The 25% div will need a class. In the media query for phone change class to read 100%.

Sign in to reply to this post

Peterson Design Studio - jefferis

Thank you!

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...