[if !cgi item_id] [bounce page="__UI_BASE__/gentable"] [/if] [calc] delete $Scratch->{ui_meta_option_col}; my $location = $CGI->{item_id}; my @parts = split /::/, $location; ($m_table, $m_col, $m_key) = @parts; $Scratch->{ui_meta_option_col} = $m_col; my $string = "Add field option: "; $string .= "table=$m_table column=$m_col"; $string .= " key=$m_key" if $m_key; $Scratch->{page_title} = $string; $string = <Add field option

table: | $m_table
column: | $m_col

EOF $Scratch->{page_banner} = $string; $CGI->{mv_data_table} = $m_table; return; [/calc] [if-mm function="!tables" name="[cgi mv_data_table]=c"] [seti ui_error]Not allowed to set options for that table ([cgi mv_data_table]), sorry.[/seti] [bounce page="__UI_BASE__/error"] [/if-mm] [if-mm function="!columns" name="[scratch ui_meta_option_col]"] [seti ui_error]Not allowed to set options for that column ([scratch ui_meta_option_col]), sorry.[/seti] [bounce page="__UI_BASE__/error"] [/if-mm] [comment] BEGIN former UI_STD_DBEDIT_HEAD [/comment] [tmp table_perm][cgi mv_data_table][/tmp] [set ui_class]Admin[/set] [set help_name]meta.edit[/set] [set icon_name][/set] [set enable_it] [tmp mv_data_enable]1[/tmp] [/set] @_UI_STD_HEAD_@ [table-editor table="[either]__UI_META_TABLE__[or]mv_metadata[/either]" key="[cgi item_id]" ui_data_fields="code options" no-table-meta=1 pre_filter.options="" filter.options=option_format label.options="Specials" widget.options="option_format" help.options="Add a promotion type by placing the key in the left column, and some descriptive text in the right-hand column." tabbed=0 cgi=1 ][/table-editor] @_UI_STD_FOOTER_@