Share Pastebin
Guest
Public paste!

Untitled

By: a guest | Jul 15th, 2010 | Syntax: PHP | Size: 0.48 KB | Hits: 41 | Expires: Never
Copy text to clipboard
  1. class list_action extends listform_actions {
  2.        
  3.         function prepareDataRow($rec){
  4.                 global $app;
  5.                
  6.                 $rec = $app->listform->decode($rec);
  7.  
  8.                 //* Alternating datarow colors
  9.                 $this->DataRowColor = ($this->DataRowColor == '#FFFFFF') ? '#EEEEEE' : '#FFFFFF';
  10.                 $rec['bgcolor'] = $this->DataRowColor;
  11.                
  12.                 $rec['dir'] = str_replace('/var/www/clients/'.$_SESSION['s']['user']['username'],'',$rec['dir']);
  13.  
  14.                 return $rec;
  15.  
  16.         }
  17.        
  18. }