Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Change background color in MATE
- $this->Editor->setConfig('modifyRowSets',array(&$this,'changeBgColor')); and
- function changeBgColor($rowSets,$rowInfo,$rowNum)
- {
- $day_diff = strtotime($rowInfo['expiry']) - strtotime(date('Y-m-d'));
- $day_diff = $day_diff / (24*60*60); // difference in days.
- if( $day_diff < 90 )
- {
- // $rowSets['bgcolor'] = '#ffffff';
- $rowSets['bgcolor'] = 'pink';
- $rowSets['class'] = 'clickable';
- }
- return $rowSets;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement