summaryrefslogtreecommitdiff
path: root/httemplate/browse/cable_provider.html
blob: 0d344984b87461cce63b5a8dac1e19b33fedbbbe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<& elements/browse.html,
     'title'              => 'Cable providers',
     'html_init'          => $html_init,
     'name'               => 'providers',
     'disableable'        => 1,
     'disabled_statuspos' => 1,
     'query'              => { 'table'     => 'cable_provider',
                               'hashref'   => {},
                               'order_by' => 'ORDER BY provider',
                             },
     'count_query'        => $count_query,
     'header'             => $header,
     'fields'             => $fields,
     'links'              => $links,
&>
<%init>

die "access denied"
  unless $FS::CurrentUser::CurrentUser->access_right('Configuration');

my $html_init =
  qq!<A HREF="${p}edit/cable_provider.html"><I>Add a provider</I></A><BR><BR>!;

my $count_query = 'SELECT COUNT(*) FROM cable_provider';

my $link = [ $p.'edit/cable_provider.html?', 'providernum' ];

my $header = [ 'Provider' ];
my $fields = [ 'provider' ];
my $links  = [ $link ];

</%init>