[ic] Re: [formel] UserTag: more information, example usage?

Stefan Hornburg racke@linuxia.de
10 Feb 2001 11:32:45 +0100


Dan B <db@cyclonehq.dnsalias.net> writes:

> -*- Where can I find out more information about the [formel] UserTag?
>From me :-)
> -*- Does it work with 4.6.1 or is it just 4.7.x?
4.6.x (CVS LINUXIA branch is 4.6.x + patches + Debian packaging stuff)
> -*- What benefit does it bring over manually entering form elements?  (Does 
> it automatically remember values?)
I wrote it because I need a more convenient way to highlight incorrect
filled form elements which displays the corresponding page.
It makes your pages shorter and it is possible to change the table
layout in one place.
> -*- Where can I find examples of its usage?
Below.

Bye
        Racke

<form METHOD="POST" ACTION="[process-target]">
<INPUT TYPE=hidden NAME=mv_todo VALUE=submit>
<INPUT TYPE=hidden NAME=mv_order_profile VALUE=enroll>
<INPUT TYPE=hidden NAME=mv_successpage VALUE=enrolled>
<INPUT TYPE=hidden NAME=parent VALUE="__STORE_ID__">
<INPUT TYPE=hidden NAME=mv_failpage VALUE="enroll">
[value name="mv_formel_format" set="<TR><TD ALIGN=RIGHT><FONT SIZE=2><B>%s</B></FONT></TD><TD ALIGN=LEFT>%s</TD></TR>" hide=1]
[value name="mv_formel_signal" set="<BLINK>%s</BLINK>" hide=1]
[value name="mv_formel_size" set="20" hide=1]
<TABLE>
[if errors]
<TR><TD COLSPAN=2>There is a problem with one or more fields. Please correct the flashing items below.</TD></TR>
[/if]
[formel label="CHECKS MADE PAYABLE TO" name="payable_to"]
[formel label="OWNER'S FIRST NAME" name="first_name"]
[formel label="OWNER'S LAST NAME" name="last_name"]
[formel label="SITE NAME" name="site_name"]
[formel label="HEADER TITLE (default SITE NAME)" name="head_title"]
[formel label="STREET ADDRESS" name="address" size=30]
[formel label="CITY / PROVINCE" name="city" size=15]
[formel label="STATE" name="state" size=3]
[formel label="POSTAL CODE" name="zip" size=6]
[formel label="COUNTRY" name="country" size=15]
[formel label="TELEPHONE" name="phone" size=15]
[formel label="FAX" name="fax" size=15]
[formel label="SOCIAL SECURITY NO. / TAX I.D." name="ssn" size=15]
[formel label="PRIMARY URL" name="primary_url" size=30]
[formel label="E-MAIL" name="email" size=15]
<TR><TD ALIGN=right>PLEASE SET UP THESE CATALOGS</TD>
<TD ALIGN=left>
[loop arg="__PRODUCT_LINES__"]
[if value cat_type]
<input type="checkbox" name="cat_type" value="[loop-code]" [checked cat_type [loop-code] 1]>[loop-data category name]<BR>
[else]
<input type="checkbox" name="cat_type" value="[loop-code]" checked>[loop-data category name]<BR>
[/else]
[/if]
[/loop]
</TD></TR>
<TR><TD ALIGN=right>I want the catalog(s) co-branded with my graphics</TD>
<TD ALIGN=left>
<input type="radio" name="co_branded" value="YES" [checked co_branded YES]><BR>
</TD></TR>

<TR><TD ALIGN=right>Please use the default graphics</TD>
<TD ALIGN=left>
<input type="radio" name="co_branded" value="NO" [checked co_branded NO]><BR>
</TD></TR>
</TABLE>
</TD></TR>

<TR><TD ALIGN=center>




</TD></TR></TABLE>

</TD></TR>
</TABLE>





<TABLE>
[formel label="E-MAIL MY ORDERS TO:" name="mailorderto" size=20]
<TR><TD ALIGN=right><FONT SIZE=2><B>
LINK MY HOME BUTTONS TO:</TD>
<TD ALIGN=left><input type="text" value="http://" name="url" size=20></TD></TR>
[formel label="PASSWORD FOR ORDER REPORTS:" name="password" size=9 type="password"]
[formel label="VERIFY PASSWORD:" name="verify" size=9 type="password"]
<TR><TD COLSPAN=2>
<CENTER>If you wanted the default graphics, <BR>please skip the next section and <BR>click the sign me up button.</CENTER>
<HR><P>
<CENTER><FONT SIZE=2><B>BODY TAGS
<P>
Please change the values for each field as needed.<BR>
If you prefer to have the graphics kept on our server, <BR>
please email them after completing this form.<P>
None of the following fields are required.
</B></FONT></CENTER>
</TD></TR>
[formel label="MY BACKGROUND IMAGE IS AT:<BR>(this can be left blank if you don't want a background image)" name="background" size="30"]
[formel label="BGCOLOR" name="bgcolor" size=15]
[formel label="TEXT COLOR" name="text" size=15]
[formel label="LINK COLOR" name="link" size=15]
[formel label="VLINK COLOR" name="vlink" size=15]
[formel label="ALINK COLOR" name="alink" size=15]
<TR><TD COLSPAN=2><FONT SIZE=2><B><P>
<CENTER>A custom header and footer can be put on the catalog, <BR>this can be any combination of text, graphics, links and even java<BR>or as simple as a banner.</CENTER>
</TD></TR>
[formel label="HEADER:" name="header" type=textarea size="50x4"]
[formel label="FOOTER:" name="footer" type=textarea size="50x4"]
</TABLE>
</TD></TR>

<TR><TD ALIGN=center>
<TABLE>
<TR><TD ALIGN=center>
<INPUT TYPE="submit" VALUE="Sign Me Up!"><P>
<FONT SIZE=1><B>CLICK "SIGN ME UP!" TO TRANSMIT APPLICATION.
</form></TD></TR>

-- 
LinuXia Systems && Cobolt NetServices, eCommerce and more
Shop- und Datenbanklösungen mit MiniVend, Firewalls auf Debian-Basis
http://www.linuxia.de - http://www.cobolt.net
--> Junior Officer of the MiniVend/Interchange Bug Patrol <---