Advertisement
Guest User

Untitled

a guest
Jun 25th, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.55 KB | None | 0 0
  1.     function getItem ($i,$list) {
  2.         $item = NULL;
  3.         if ($list[$i]['Mold'])
  4.             {
  5.             $item = '<tr class="mold">';
  6.            
  7.             }
  8.         if ( $list[$i]['Category'] == 'HH' && $list[$i]['Group'] == 'Gold' )
  9.             {
  10.             $item = '<tr class="gold">';
  11.             }
  12.         if (  $list[$i]['Category'] == 'HH' && $list[$i]['Group'] == 'Green' )
  13.             {
  14.             $item = '<tr class="green">';
  15.             }
  16.         if ( $list[$i]['Category'] == 'HH' && $list[$i]['Group'] == 'Common' )
  17.             {
  18.                 $item = '<tr class="common">';
  19.             }
  20.         if (!$item)
  21.             {
  22.                 $item = "<tr border = 4>";
  23.    
  24.             }
  25.  
  26.         return $item;
  27.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement