Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php $string = $eqinfo[0];
- echo "<div><table class=\"name table table-responsive table-striped table-bordered\">";
- eval('$eq = '.$string.';');
- for($i = 0; $i < sizeof($eq); $i++) {
- if(empty($eq[$i])) continue;
- if($i == 0 || $i == 1 || $i == 2 || $i == 8) {
- foreach($eq[$i] as $mod) {
- if(empty($mod) || $mod == $eq[$i][0]) continue;
- if(is_array($mod)) {
- $placeholder .= $mod[0].' ';
- } else {
- $placeholder .= $mod.' ';
- }
- }
- echo '<td><td data-ipstooltip="" _title="'.$placeholder.'">'.$eq[$i][0].'</td><td>1</td></tr>';
- } else if($i == 6 || $i == 7) {
- echo '<tr><td>'.$eq[$i].'</td><td>1</td></tr>';
- } else if($i == 9) {
- foreach($eq[$i] as $misc) {
- if(empty($misc)) continue;
- echo '<tr><td>'.$misc.'</td><td>1</td></tr>';
- }
- } else {
- foreach($eq[$i][1] as $item) {
- if(empty($item)) continue;
- $placeholder .= $item[1].'x '.$item[0];
- }
- echo '<td><td data-ipstooltip="" _title="'.$placeholder.'">'.$eq[$i][0].'</td><td>1</td></tr>';
- }
- }
- echo "</tbody></table></div>";
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement