1 <& elements/browse.html,
2 'title' => 'Alarm central stations',
3 'html_init' => $html_init,
4 'name_singlar' => 'central station',
6 'disabled_statuspos' => 1,
8 'agent_null_right' => 'Alarm global configuration',
10 'query' => { 'table' => 'alarm_station',
12 'order_by' => 'ORDER BY stationname',
14 'count_query' => $count_query,
22 unless $FS::CurrentUser::CurrentUser->access_right('Alarm configuration')
23 || $FS::CurrentUser::CurrentUser->access_right('Alarm global configuration');
27 qq!<A HREF="${p}edit/alarm_station.html"><I>Add an alarm central station</I></A><BR><BR>!;
29 my $count_query = 'SELECT COUNT(*) FROM alarm_station';
31 my $link = [ $p.'edit/alarm_station.html?', 'alarmstationnum' ];
33 my $header = [ 'Central station' ];
34 my $fields = [ 'stationname' ];
35 my $links = [ $link ];