[if !cgi mv_data_table] [calc] $CGI->{mv_data_table} = $Values->{mv_data_table} = 'affiliate'; return; [/calc] [/if] [comment] [if-mm function="!tables" table=`$Config->{ProductFiles}[0]`] [bounce page="__UI_BASE__/error"] [/if-mm] [/comment] [set ui_class]Merchandising[/set] [set page_title][L]Affiliates manager[/L][/set] [set table_perm]1[/set] [set help_name]affiliate.manager[/set] [set icon_name]icon_people.gif[/set] [calc] $CGI->{affiliates} = 1; return; [/calc] @_UI_STD_HEAD_@ [if scratch ui_message]

> [scratch ui_message] [set ui_message][/set]

[/if] [form-session-id] [if cgi ui_text_qualification]

### [msg arg.0="[cgi ui_text_qualification]"]Entries containing "%s"[/msg]

[/if] [search-region more=1 arg=" [if cgi ui_text_qualification] se=[cgi ui_text_qualification] su=yes [else]ra=yes[/else][/if] [if cgi ui_sort_field] tf=[cgi ui_sort_field] to=[cgi ui_sort_option] [else] tf=description [/else] [/if] st=db fi=affiliate sp=@@MV_PAGE@@ ml=__UI_SZ_LIST_MERCH__ "][on-match] [calc] my $so = $CGI->{ui_sort_option}; my $fld = $CGI->{ui_sort_field}; $fld =~ s/[\s,\0].*//; sub sortrev { my ($f, $n) = @_; my $out = 'ui_sort_option='; $out .= 'n' if $n; return $out unless $fld eq $f; return $out if $so =~ /r/; return $out . 'r'; } return; [/calc]

[page extra=rmarq href=@@MV_PAGE@@ form=` return "ui_sort_field=affiliate\n" . sortrev('affiliate'); `]Code | [page href=@@MV_PAGE@@ form=` return "ui_sort_field=name\n" . sortrev('name'); ` extra=rmarq][L]Name[/L] | [L]Linkback and entry URLs[/L] | [L]Reports[/L] | [page href=@@MV_PAGE@@ extra=rmarq form=` return "ui_sort_field=active\n" . sortrev('active'); `][L]Active[/L]
[/on-match] [search-list]
[page href=__UI_BASE__/flex_editor form=" item_id=[item-code] page_title=Edit affiliate -- [item-data affiliate name] page_banner=Edit affiliate: [item-data affiliate name] mv_data_table=affiliate icon_name=icon_people.gif ui_return_to=__UI_BASE__/affiliates help_name=affiliate.edit "][item-code] | [item-data affiliate name] | linkback: [item-data affiliate url] entry: [calc] my $url = $Config->{VendURL}; $url .= q{?mv_pc=[item-code]}; return qq{$url}; [/calc] | [page href="__UI_BASE__/reports/order/ByAffiliate" form=" start_date=[tag time]%Y%m[/tag] affiliate=[item-code] "][L]Orders[/L] [page href="__UI_BASE__/reports/traffic/ByAffiliate" form=" start_date=[tag time]%Y%m[/tag] affiliate=[item-code] "][L]Traffic[/L] | [if-item-data affiliate active][L]Yes[/L][else][L]No[/L][/else][/if-item-data]
[/search-list] [no-match]
[L]Nothing matched.[/L]
[/no-match]
[more-list]
[L]More affiliates[/L]: [decade-next][/decade-next] [more] [decade-prev][/decade-prev]
[/more-list]

[/search-region] @_UI_STD_FOOTER_@