1 <% include( 'elements/browse.html',
2 'title' => 'Contact types',
3 'html_init' => $html_init,
4 'name' => 'contact types',
6 'disabled_statuspos' => 1,
7 'query' => { 'table' => 'contact_class',
9 'order_by' => 'ORDER BY classnum',
11 'count_query' => $count_query,
20 unless $FS::CurrentUser::CurrentUser->access_right('Configuration');
23 'Contact classes define types for contacts.<BR><BR>'.
24 qq!<A HREF="${p}edit/contact_class.html"><I>Add a contact type</I></A><BR><BR>!;
26 my $count_query = 'SELECT COUNT(*) FROM contact_class';
28 my $link = [ $p.'edit/contact_class.html?', 'classnum' ];
30 my $header = [ '#', 'Class' ];
31 my $fields = [ 'classnum', 'classname' ];
32 my $links = [ $link, $link ];