[comment]
ui_template: Yes
ui_template_name: leftonly
[/comment]
[tmp members_only]1[/tmp]
[tmp page_title]__COMPANY__ -- [L]Shipping 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_shipping]
[userdb function=delete_shipping nickname="[cgi delete_shipping]"]
Deleted shipping [cgi name=delete_shipping 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
mv_blob_label="city"
mv_blob_title="Shipping addresses"
mv_blob_only=1
mv_blob_field="address_book"
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 company fname lname address1 address2 city state zip country phone_day"
key="[data session username]"]
[userdb get_shipping_names]
[if value address_book]
[loop list="[value address_book]"]
[page
href=@@MV_PAGE@@
form="
delete_shipping=[loop-code]
destination=[cgi destination]
"]Delete [loop-code]
[/loop]
[/if]
[if cgi destination]
[page href="[cgi destination]"]Return
[/if]
@_LEFTONLY_BOTTOM_@