Modify code to change cell colour based on value

Diskussions related to the development of PhpLogCon

Google Ads


Modify code to change cell colour based on value

Postby bdaboy22 » Mon Oct 03, 2011 3:27 am

Hello,
I have a custom view for my Log Anaylzer to filter IP table log from a firewall. What I would like to know is how can I colour a line or just a specific column's cell based on the value present?

Action column = DENY (make that cell or line red)
Action column = DROP (make that cell or line orange)

This is what my filter looks like:
10-2-2011 10-22-14 PM.png
10-2-2011 10-22-14 PM.png (52.52 KiB) Viewed 16872 times


Any suggestions?
Thanks
bdaboy22
New
 
Posts: 2
Joined: Mon Oct 03, 2011 3:01 am

Urgent Question?

  • Pulling out your Hair?
  • Wasting Time and Money?
  • Deadline Approaching?

Re: Modify code to change cell colour based on value

Postby alorbach » Thu Oct 06, 2011 10:16 am

Hi,

currently it is not possible to add customized colours to specific columns. The colour coding for facility and severity columns is hardcoded. However technically I think it would be possible to add customized colour coding like we added custom fields, database mappings and more. But it would require some deep changes into the code. We are currently focusing on new reports. But maybe you are interesting in funding this feature?

best regards,
Andre Lorbach
alorbach
Site Admin
 
Posts: 1627
Joined: Thu Feb 13, 2003 11:55 am

Re: Modify code to change cell colour based on value

Postby bdaboy22 » Fri Oct 14, 2011 11:34 am

You can contat me at bdaboy22@yahoo.com to discuss this feature further.
Thanks
bdaboy22
New
 
Posts: 2
Joined: Mon Oct 03, 2011 3:01 am

Google Ads



Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 1 guest

cron