Example:
include( '/elements/location.html',
- 'object' => $cust_main, # or $cust_location
- 'prefix' => $pre, #only for cust_main objects
- 'onchange' => $javascript,
- 'disabled' => $disabled,
- 'same_checked' => $same_checked,
- 'geocode' => $geocode, #passed through
- 'no_asterisks' => 0, #set true to disable the red asterisks next
- #to required fields
+ 'object' => $cust_main, # or $cust_location
+ 'prefix' => $pre, #only for cust_main objects
+ 'onchange' => $javascript,
+ 'disabled' => $disabled,
+ 'same_checked' => $same_checked,
+ 'geocode' => $geocode, #passed through
+ 'no_asterisks' => 0, #set true to disable the red asterisks next
+ #to required fields
+ 'address1_label' => 'Address', #label for address
)
</%doc>
<TR>
- <TH ALIGN="right"><%$r%>Address</TH>
+ <TH ALIGN="right"><%$r%><% $opt{'address1_label'} || 'Address' %></TH>
<TD COLSPAN=7>
<INPUT TYPE = "text"
NAME = "<%$pre%>address1"
+ ID = "<%$pre%>address1"
VALUE = "<% $object->get($pre.'address1') |h %>"
- SIZE = 70
+ SIZE = 58
onChange = "<% $onchange %>"
<% $disabled %>
<% $style %>
</TR>
<TR>
- <TD ALIGN="right"><FONT ID="<% $pre %>address2_required" color="#ff0000" STYLE="<% $address2_label_style %>">*</FONT> <FONT ID="<% $pre %>address2_label" STYLE="<% $address2_label_style %>"><B>Unit #</B></FONT></TD>
+ <TD ALIGN="right"><FONT ID="<% $pre %>address2_required" color="#ff0000" <% $address2_label_style %>>*</FONT> <FONT ID="<% $pre %>address2_label" <% $address2_label_style %>><B>Unit #</B></FONT></TD>
<TD COLSPAN=7>
<INPUT TYPE = "text"
NAME = "<%$pre%>address2"
+ ID = "<%$pre%>address2"
VALUE = "<% $object->get($pre.'address2') |h %>"
- SIZE = 70
+ SIZE = 58
onChange = "<% $onchange %>"
<% $disabled %>
<% $style %>
<TD>
<INPUT TYPE = "text"
NAME = "<%$pre%>city"
+ ID = "<%$pre%>city"
VALUE = "<% $object->get($pre.'city') |h %>"
onChange = "<% $onchange %>"
<% $disabled %>
<% $style %>
>
- </TD>
+ </TD>
<TH ALIGN="right" ID="<%$pre%>countylabel" <%$county_style%>><%$r%>County</TH>
<TD>
<% include('/elements/select-county.html', %select_hash ) %>
<TD>
<INPUT TYPE = "text"
NAME = "<%$pre%>zip"
+ ID = "<%$pre%>zip"
VALUE = "<% $object->get($pre.'zip') |h %>"
SIZE = 10
onChange = "<% $onchange %>"