X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=httemplate%2Fbrowse%2Fagent.cgi;h=3fe68c15d582fd959f1ed49a4e0958f6d8916afc;hb=cd254e04ba204b5d0b4a69b65c392fb175dd1e97;hp=5c3220290b07bbeac9c70dfd21990c60528fc66e;hpb=f1242ee84dba33d2e58e86ad329f8e3d519c153d;p=freeside.git
diff --git a/httemplate/browse/agent.cgi b/httemplate/browse/agent.cgi
index 5c3220290..3fe68c15d 100755
--- a/httemplate/browse/agent.cgi
+++ b/httemplate/browse/agent.cgi
@@ -1,146 +1,418 @@
-<%
-
- my %search;
- if ( $cgi->param('showdisabled')
- || !dbdef->table('agent')->column('disabled') ) {
- %search = ();
- } else {
- %search = ( 'disabled' => '' );
- }
-
-%>
-<%= header('Agent Listing', menubar(
- 'Main Menu' => $p,
+<% include("/elements/header.html",'Agent Listing', menubar(
'Agent Types' => $p. 'browse/agent_type.cgi',
# 'Add new agent' => '../edit/agent.cgi'
)) %>
Agents are resellers of your service. Agents may be limited to a subset of your
full offerings (via their type).
-Add a new agent
+Add a new agent
+% if ( dbdef->table('agent')->column('disabled') ) {
-<% if ( dbdef->table('agent')->column('disabled') ) { %>
- <%= $cgi->param('showdisabled')
+ <% $cgi->param('showdisabled')
? do { $cgi->param('showdisabled', 0);
'( hide disabled agents )'; }
: do { $cgi->param('showdisabled', 1);
'( show disabled agents )'; }
%>
-<% } %>
+% }
+
+
+<% include('/elements/table-grid.html') %>
+% my $bgcolor1 = '#eeeeee';
+% my $bgcolor2 = '#ffffff';
+% my $bgcolor = '';
-<%= table() %>
<% $agent_pkg_class->commission_percent || 0 %>% | +<% $pkg_class ? $pkg_class->classname : mt('(no package class)') |h %> + | +
+ + <% $num = $agent->$meth() %> + + | +% } +
+% if ( $num || $disable_counts ) {
+%
+
+ ">
+% }
+<% exists($PL{$status}) ? $PL{$status} : $status %>
+% if ($num || $disable_counts ) {
+
+% }
-
|
+
+% ##
+% # customer packages
+% ##
+
+
+
|
-
- Payments
- Credits - A/R Aging - +% ## +% # reports +% ## + |
+ Package Churn
+ Payments + Credits + A/R Aging + + |
+
+% ##
+% # registration codes
+% ##
+
+
+ <% my $num_reg_code = $agent->num_reg_code %>
+% if ( $num_reg_code ) {
+
+% }
+Unused
+% if ( $num_reg_code ) {
+
+% }
+
+ Generate codes |
-
- <%= my $num_reg_code = $agent->num_reg_code %>
- <% if ( $num_reg_code ) { %>
- <% } %>Unused<% if ( $num_reg_code ) { %><% } %>
- Generate codes +% ## +% # prepaid cards +% ## + + |
+ <% my $num_prepay_credit = $agent->num_prepay_credit %>
+% if ( $num_prepay_credit ) {
+
+
+% }
+Unused
+% if ( $num_prepay_credit ) {
+
+% }
+
+ Generate cards |
-
- <%= my $num_prepay_credit = $agent->num_prepay_credit %>
- <% if ( $num_prepay_credit ) { %>
- <% } %>Unused<% if ( $num_prepay_credit ) { %><% } %>
- Generate cards +% ## +% # ticketing +% ## +% if ( $conf->config('ticket_system') ) { + |
+% if ( $agent->ticketing_queueid ) {
+ Queue: <% $agent->ticketing_queueid %>:
+ <% $agent->ticketing_queue %>
+ +% } + |
+% }
+
+% ##
+% # currencies
+% ##
+% if ( $conf->config('currencies') ) {
+
+ <% join(' ', sort keys %{ $agent->agent_currency_hashref } ) %> + |
+% }
+
+% ##
+% # payment gateway overrides
+% ##
+
+
+
|
- <%= $agent->freq %> | -<%= $agent->prog %> | +% ## +% # configuration overrides +% ## + +
+
|
---|