[interchange-cvs] interchange - heins modified dist/foundation/pages/test_order.html

interchange-core@icdevgroup.org interchange-core@icdevgroup.org
Tue Jan 7 14:22:00 2003


User:      heins
Date:      2003-01-07 19:21:07 GMT
Added:     dist/foundation/pages test_order.html
Log:
* Add one-click test order page.

Revision  Changes    Path
1.1                  interchange/dist/foundation/pages/test_order.html


rev 1.1, prev_rev 1.0
Index: test_order.html
===================================================================
[comment]
ui_template: Yes
ui_template_name: noleft
[/comment]

[tmp page_title]__COMPANY__ -- Place one-click test order[/tmp]

@_NOLEFT_TOP_@

<!-- BEGIN CONTENT -->

<div style="
		text-align: left;
		margin: 20px
	 ">
[tmp itemstuff]
	[loop random=5
		search="
		    ra=yes
			st=db
			fi=products
		"][loop-calc]
		$todo = int( rand(6) ) || 1 if ! defined $todo;
		return if ++$done > $todo;
		my $quan = int rand(10) || 1;
		return qq{
		    mv_order_quantity=$quan
		    mv_order_item=[loop-code]
		};
	[/loop-calc][/loop]
    [/tmp]

    Will one-click order these random items:
    <xmp>[scratch itemstuff]</xmp>

	[page
	    form=|
		    mv_username=jking
		    mv_password=king
		    mv_click=Login
		    mv_action=submit
		    mv_order_profile=credit_card
		    mv_shipmode=PERD
		    mv_credit_card_number=4111 1111 1111 1111
		[time adjust="5 weeks"]
		    mv_credit_card_exp_year=%y
		    mv_credit_card_exp_month=%m
		[/time]
		    [scratch itemstuff]
	    |]Order this</A>
</div>

<!-- END CONTENT -->
@_NOLEFT_BOTTOM_@