Advertisement
Guest User

Untitled

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