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
  • for example if you want display some background color if status is new means do following:

    {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;</style>';}{/php} >



Reply
  • for example if you want display some background color if status is new means do following:

    {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;</style>';}{/php} >



Children
No Data