[freeside-commits] freeside/httemplate/browse agent.cgi, 1.48, 1.48.6.1

Ivan,,, ivan at wavetail.420.am
Fri Nov 19 14:05:23 PST 2010


Update of /home/cvs/cvsroot/freeside/httemplate/browse
In directory wavetail.420.am:/tmp/cvs-serv17084

Modified Files:
      Tag: FREESIDE_2_1_BRANCH
	agent.cgi 
Log Message:
disabled/active links styled red/green on agent report like elsewhere

Index: agent.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/browse/agent.cgi,v
retrieving revision 1.48
retrieving revision 1.48.6.1
diff -u -w -d -r1.48 -r1.48.6.1
--- agent.cgi	11 Oct 2009 01:43:23 -0000	1.48
+++ agent.cgi	19 Nov 2010 22:05:21 -0000	1.48.6.1
@@ -65,10 +65,11 @@
           <A HREF="<%$p%>edit/agent.cgi?<% $agent->agentnum %>"><% $agent->agentnum %></A>
         </TD>
 
-%       if ( dbdef->table('agent')->column('disabled')
-%            && !$cgi->param('showdisabled')           ) { 
-          <TD CLASS="grid" BGCOLOR="<% $bgcolor %>">
-            <% $agent->disabled ? 'DISABLED' : '' %>
+%       if ( ! $cgi->param('showdisabled') ) { 
+          <TD CLASS="grid" BGCOLOR="<% $bgcolor %>" ALIGN="center">
+            <% $agent->disabled ? '<FONT COLOR="#FF0000"><B>DISABLED</B></FONT>'
+                                : '<FONT COLOR="#00CC00"><B>Active</B></FONT>'
+            %>
           </TD>
 %       } 
 



More information about the freeside-commits mailing list