Advertisement
Nikczemny

Untitled

Apr 13th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.19 KB | None | 0 0
  1.     <?php $string = $eqinfo[0];
  2. echo "<div><table class=\"name table table-responsive table-striped table-bordered\">";
  3. eval('$eq = '.$string.';');
  4. for($i = 0; $i < sizeof($eq); $i++) {
  5.     if(empty($eq[$i])) continue;
  6.     if($i == 0 || $i == 1 || $i == 2 || $i == 8) {
  7.         foreach($eq[$i] as $mod) {
  8.             if(empty($mod) || $mod == $eq[$i][0]) continue;
  9.             if(is_array($mod)) {
  10.                 $placeholder .= $mod[0].' ';
  11.             } else {
  12.                 $placeholder .= $mod.' ';
  13.             }
  14.         }
  15.         echo '<td><td data-ipstooltip="" _title="'.$placeholder.'">'.$eq[$i][0].'</td><td>1</td></tr>';
  16.     } else if($i == 6 || $i == 7) {
  17.         echo '<tr><td>'.$eq[$i].'</td><td>1</td></tr>';
  18.     } else if($i == 9) {
  19.         foreach($eq[$i] as $misc) {
  20.             if(empty($misc)) continue;
  21.             echo '<tr><td>'.$misc.'</td><td>1</td></tr>';
  22.         }
  23.     } else {
  24.         foreach($eq[$i][1] as $item) {
  25.             if(empty($item)) continue;
  26.             $placeholder .= $item[1].'x '.$item[0];
  27.         }
  28.         echo '<td><td data-ipstooltip="" _title="'.$placeholder.'">'.$eq[$i][0].'</td><td>1</td></tr>';
  29.     }
  30. }
  31. echo "</tbody></table></div>";
  32. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement