1 <& elements/browse.html,
3 'html_init' => $html_init,
6 'disabled_statuspos' => 2,
7 'query' => { 'table' => 'vend_main',
9 'order_by' => 'ORDER BY vendname',
11 'count_query' => $count_query,
19 unless $FS::CurrentUser::CurrentUser->access_right('Configuration');
23 qq!<A HREF="${p}edit/vend_main.html"><I>Add a vendor</I></A><BR><BR>!;
25 my $count_query = 'SELECT COUNT(*) FROM vend_main';
27 my $link = [ $p.'edit/vend_main.html?', 'vendnum' ];
28 my $clink = [ $p.'edit/vend_class.html?', 'classnum' ];
30 my $header = [ '#', 'Vendor', 'Class', ];
31 my $fields = [ 'vendnum', 'vendname',
32 sub { shift->vend_class->classname; }
34 my $links = [ $link, $link, $clink ];