Lasso Soft Inc. > Home

[rp_datemenu]

Linkrp_datemenu
AuthorRandy Phillips
CategoryDate
Version8.x
LicensePublic Domain
Posted07 Dec 2005
Updated16 Jan 2006
More by this author...

Description

This tag outputs month, day and year pulldown menus for html forms.

Sample Usage

[rp_datemenu: -monthlabel='Report Month', -daylabel='Report Day', -yearlabel='Report Year', -monthname='month', -dayname='day', -yearname='year', -selectmonth=(var:'month'), -selectday=(var:'day'), -selectyear=(var:'year'), -monthformat='MM', -yearformat='YYYY', -yearsbackward=1, -yearsforward=3, -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.

(setformat:'%Y');
			else;
				local: 'this_year' = (Date_GetCurrentDate);
				#this_year->(setformat:'%Y');
			/if;
		case: 'YY';
			if: (local_defined:'yearsbackward');
				local: 'this_year' = (date_subtract:(Date_GetCurrentDate), -year=#yearsbackward);
				#this_year->(setformat:'%y');
			else;
				local: 'this_year' = (Date_GetCurrentDate);
				#this_year->(setformat:'%y');
			/if;
		/select;
		
		//------ add month menu to output variable
		local: 'output' = ' \r';
			
		//------ add day menu to output variable
			#output += ' \r';
			
		//------ add year menu to output variable
			#output += '';
			
		return:#output;
	/define_tag;
?>

Related Tags

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