[button name="show_changematrix_cmd" text="Change matrix"][/button]
[button
text="Delete item"
src="admin/dalete.gif"
alt="Delete the item from the database"
confirm="Are you sure you want to delete this item?"
]
[tag flag write]inventory pricing products[/tag]
mv_nextpage=__UI_BASE__/item
[if-mm advanced item=d]
[perl tables="inventory pricing products"]
my ($item) = $CGI->{item_id};
my $out;
for(qw/products pricing inventory/) {
next unless $Db{$_};
if ($Db{$_}->delete_record($item)) {
$out .= "Deleted $item from $_ table ";
}
else {
$out .= "Item $item not in $_ table (or delete failed) ";
}
}
$Scratch->{ui_message} = $out;
return;
[/perl]
[else]
[set ui_message]Not authorized to delete items.[/set]
[/else]
[/if-mm]
[/button]
|
[button text="Limit" src="admin/search.gif"]
mv_nextpage=@@MV_PAGE@@
[/button]
[more-list] Items [matches] of [value mv_search_match_count], pages: [more][/more-list]
[/loop]
|