Lasso Soft Inc. > Home

[rp_grid]

Linkrp_grid
AuthorRandy Phillips
CategoryOutput
Version8.x
LicensePublic Domain
Posted24 Jan 2006
Updated07 Nov 2008
More by this author...

Description

This tag is useful for displaying database query results or arrays from left to right in a HTML table grid. Just populate an array from a record set, specify the number of cells needed in each table row and rp_grid does the rest.

Sample Usage

[rp_grid: 
  -cell_content=$my_array,
  -cell_count = 3,
  -border = 0,
  -width= 500,
  -cellpadding = 2,
  -cellspacing = 1,
  -tablestyle = 'mytablestyle',
  -cellstyle = 'mycellstyle',
  -encodenone]

Source Code

Click the "Download" button below to retrieve a copy of this tag, including the complete documentation and sample usage shown on this page. Place the downloaded ".inc" file in your LassoStartup folder, restart Lasso, and you can begin using this tag immediately.

size % #cell_count;
			local:'empty_cells' = #cell_count - #mod;
			local:'output' = (string);
			
			// begin building output here
			
			#output = '';
				
			if:(loop_count) % #cell_count == 0; 
				
			#output += '';
			
			/if;
						
			/iterate;
				
							
			if: #empty_cells != #cell_count;
			
				loop: #empty_cells; 
				
					#output += ''; 
				
				/loop;
				
			#output += '';
			
			/if;		
				
			#output += '
 
'; return: #output; /define_tag; ?>

Comments

No comments

Please log in to comment

Subscribe to the LassoTalk mail list

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft