default to a session cookie instead of setting an explicit timeout, weird timezone...
[freeside.git] / httemplate / edit / prepay_credit.cgi
index f7a1b08..3f0d6ba 100644 (file)
@@ -18,13 +18,12 @@ prepaid cards of
 
 characters each
 
-<BR>for <SELECT NAME="agentnum"><OPTION>(any agent)
-% foreach my $opt_agent ( qsearch('agent', { 'disabled' => '' } ) ) { 
+<BR>for 
 
-  <OPTION VALUE="<% $opt_agent->agentnum %>"<% $opt_agent->agentnum == $agentnum ? ' SELECTED' : '' %>><% $opt_agent->agent %>
-% } 
-
-</SELECT>
+<& /elements/select-agent.html,
+     'empty_label' => '(any agent)',
+     'curr_value'  => $agentnum,
+&>
 
 <TABLE>
 <TR><TD>Value: