summaryrefslogtreecommitdiff
path: root/httemplate/elements/select-agent.html
blob: 009cc6e0638d88cfc05c83ebdd6683d2191b0a51 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<%
  my( $agentnum, %opt ) = @_;

  $opt{'records'} = delete $opt{'agents'}
    if $opt{'agents'};

%><%= include( '/elements/select-table.html',
                 'table'       => 'agent',
                 'name_col'    => 'agent',
                 'value'       => $agentnum,
                 'empty_label' => 'all',
                 'hashref'     => { 'disabled' => '' },
                 'extra_sql'   => ' AND '.
                                  $FS::CurrentUser::CurrentUser->agentnums_sql.
                                  ' ORDER BY agent',
                 %opt,
             )
%>