<% include( 'elements/browse.html', 'title' => 'Contact types', 'html_init' => $html_init, 'name' => 'contact types', 'disableable' => 1, 'disabled_statuspos' => 1, 'query' => { 'table' => 'contact_class', 'hashref' => {}, 'order_by' => 'ORDER BY classnum', }, 'count_query' => $count_query, 'header' => $header, 'fields' => $fields, 'links' => $links, ) %> <%init> die "access denied" unless $FS::CurrentUser::CurrentUser->access_right('Configuration'); my $html_init = 'Contact classes define types for contacts.

'. qq!Add a contact type

!; my $count_query = 'SELECT COUNT(*) FROM contact_class'; my $link = [ $p.'edit/contact_class.html?', 'classnum' ]; my $header = [ '#', 'Class' ]; my $fields = [ 'classnum', 'classname' ]; my $links = [ $link, $link ];