How to Change background color  of record at listview  in case module ??

I want to change background color of record on listview of case module.
if status is New or startdate.

please help !!
Thank you.
Parents
  • hi bhandari. try this for status new

    just find <tr height='20' class='{$_rowColor}S1'> and instead of this do follow

    {php}   
    $color='';
        $status_val=$this->_tpl_vars['rowData']['STATUS'];
        if(isset($status_val)&&$status_val=='New'){$color='blackcolor';}
       {/php}
       <tr height='20' class='{$_rowColor}S1' {php}if($color=='blackcolor'){ echo 'style="background:#000"'; } {/php}>
Reply
  • hi bhandari. try this for status new

    just find <tr height='20' class='{$_rowColor}S1'> and instead of this do follow

    {php}   
    $color='';
        $status_val=$this->_tpl_vars['rowData']['STATUS'];
        if(isset($status_val)&&$status_val=='New'){$color='blackcolor';}
       {/php}
       <tr height='20' class='{$_rowColor}S1' {php}if($color=='blackcolor'){ echo 'style="background:#000"'; } {/php}>
Children
No Data