Welcome to Dream.In.Code
Getting Help is Easy!

Join 107,698 Programmers for FREE! Ask your question and get quick answers from experts. There are 1,012 online right now! We've got more than 500 tutorials and 2,000 snippets. Join and find out why Dream.In.Code is the #1 programming help community on the internet! Registration is fast and FREE... Join Now!



How do I repeate region from left to right then down

 
Reply to this topicStart new topic

How do I repeate region from left to right then down

cumupkid
post 23 Mar, 2008 - 08:19 PM
Post #1


New D.I.C Head

*
Joined: 22 Jan, 2008
Posts: 9

I can make a repeat region from top to bottum but i need to know how to make the region repeate 2 columns down the page.

Also How do I make links and such only show up when admin is logged in?


Here is the code I have:

<cfparam name="URL.GALLERY" default="1">
<cfparam name="PageNum_rsArt" default="1">
<cfquery name="rsArt" datasource="seanBerrodin">
SELECT *
FROM art
WHERE GALLERY = <cfqueryparam value="#URL.GALLERY#" cfsqltype="cf_sql_clob" maxlength="50">
ORDER BY ARTNAME ASC
</cfquery>
<cfset MaxRows_rsArt=10>
<cfset StartRow_rsArt=Min((PageNum_rsArt-1)*MaxRows_rsArt+1,Max(rsArt.RecordCount,1))>
<cfset EndRow_rsArt=Min(StartRow_rsArt+MaxRows_rsArt-1,rsArt.RecordCount)>
<cfset TotalPages_rsArt=Ceiling(rsArt.RecordCount/MaxRows_rsArt)>

<link href="assets/styles.css" rel="stylesheet" type="text/css" />

<table border="0" cellpadding="0" cellspacing="0" id="tablemain">
<tr>
<td width="25%" valign="top">
<cfinclude template="galleryNavBar.cfm">
</td>
<td width="50%" valign="top">
<table width="100%" border="0" cellpadding="0" cellspacing="0" id="tablegalleryoutput">
<tr>
<td align="center">
<cfoutput>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="center">#rsArt.GALLERY#</td>
</tr>
</table>
</cfoutput>
<cfoutput query="rsArt" startrow="#StartRow_rsArt#" maxrows="#MaxRows_rsArt#">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="50%" height="35" align="left"><span class="subHeader">#rsArt.ARTNAME#</span></td>
<td width="50%" align="left"><span class="subHeader"></span></td>
</tr>
<tr>
<td width="50%" align="left"><a href="index.cfm?artdetailsid=#rsArt.ARTID#"><img src="images/#rsArt.LARGEIMAGE#" alt="Click To View Large Image" width="200" height="100" longdesc="images/image1.jpg" /></a></td>
<td width="50%">&nbsp;</td>
</tr>
</table>
</cfoutput>
</td>
</tr>
</table>



</td>
<td width="25%">

<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
</td>
</tr>
</table>



P.S. This site is great, I want to thank all of you for your knowledge.

Joe

This post has been edited by cumupkid: 24 Mar, 2008 - 07:30 AM
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 8/30/08 01:37AM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month