[comment]
ui_template: Yes
ui_template_name: leftonly
[/comment]
[tmp members_only]1[/tmp]
[tmp page_title]__COMPANY__ -- [L]Billing Addresses[/L][/tmp]
[control reset=1]
[control-set]
[component]search_box_small[/component]
[/control-set]
[control-set]
[component]cart_tiny[/component]
[/control-set]
[control-set]
[component]product_tree[/component]
[/control-set]
[control reset=1]
@_LEFTONLY_TOP_@
[if cgi delete_billing]
[userdb function=delete_billing nickname="[cgi delete_billing]"]
Deleted billing [cgi name=delete_billing filter=encode_entities]
[/if]
[table-editor
tabbed=0
href="@@MV_PAGE@@"
hidden.mv_action=back
hidden_all.destination=`$CGI->{destination}`
hidden.ui_return_to=`$CGI->{destination}`
mv_nextpage=`$CGI->{destination}`
ui_hide_key=1
table=userdb
table_width="95%"
auto_secure=1
reload=1
all_errors=1
default_ref=`{
b_company => '',
b_fname => '',
b_lname => '',
b_address1 => '',
b_address2 => '',
b_city => '',
b_state => '',
b_zip => '',
b_country => '',
b_phone => '',
}`
defaults=1
force_defaults=1
mv_blob_label="b_city"
mv_blob_title="Billing addresses"
mv_blob_only=1
mv_blob_field="accounts"
mv_blob_nick="[cgi mv_blob_nick]"
check.mv_blob_nick="
regex ^[-\w\0]+$ 'Nickname must be of characters [-A-Za-z0-9]'
"
check.username="
regex ^\w+$ '[L]Username must be of characters [A-Za-z0-9][/L]'
length 4-10
"
get=1
ui_data_fields="username b_company b_fname b_lname b_address1 b_address2 b_city b_state b_zip b_country b_phone"
key="[data session username]"]
[userdb get_billing_names]
[if value accounts]
[loop list="[value accounts]"]
[page
href=@@MV_PAGE@@
form="
delete_billing=[loop-code]
destination=[cgi destination]
"]Delete [loop-code]
[/loop]
[/if]
[if cgi destination]
[page href="[cgi destination]"]Return
[/if]
@_LEFTONLY_BOTTOM_@