2 my( $agentnum, %opt ) = @_;
5 if ( $opt{'agents'} ) {
6 @agents = @{ $opt{'agents'} };
8 @agents = qsearch( 'agent', { disabled=>'' } );
13 <% if ( scalar(@agents) == 1 ) { %>
15 <INPUT TYPE="hidden" NAME="agentnum" VALUE="<%= $agents[0]->agentnum %>">
20 <TD ALIGN="right"><%= $opt{'label'} || 'Agent: ' %></TD>
22 <%= include( '/elements/select-agent.html', $agentnum,