X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fbrowse%2Fagent.cgi;h=64288b830cad78733a7d9766822fc1358ad295d8;hb=6f5b68a5dc6a6b145c88aa1b2bad3848cc6f8788;hp=fd360ab3c43fc35c5d3319a0ef339a9b7e06dc33;hpb=6ed5d51b3a72e2935dd5d084c9e24567150b03ca;p=freeside.git
diff --git a/httemplate/browse/agent.cgi b/httemplate/browse/agent.cgi
index fd360ab3c..64288b830 100755
--- a/httemplate/browse/agent.cgi
+++ b/httemplate/browse/agent.cgi
@@ -1,186 +1,425 @@
-<%
-
- 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->agentnum %> | -<% if ( dbdef->table('agent')->column('disabled') - && !$cgi->param('showdisabled') ) { %> -<%= $agent->disabled ? 'DISABLED' : '' %> | -<% } %> - -- <%= $agent->agent %> | -<%= $agent->agent_type->atype %> | - -
-
|
-
-
|