Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if( $prod->info['desc'][3] != '' )
- {
- $prod->info['desc'][3] = str_replace("\r\n", "\n", $prod->info['desc'][3]);
- $prod->info['desc'][3] = str_replace("\r", "", $prod->info['desc'][3]);
- $temp_tech = explode("\n", $prod->info['desc'][3]);
- $table = '<table class="shop-tech"><tbody>';
- for( $i=0; $i<=count($temp_tech)-1; $i++)
- {
- $temp_tech2 = explode('||||', $temp_tech[$i]);
- if( $temp_tech2[1] == 0 )
- $table .= '<tr><td class="shop-tech-header" colspan="2">'. $temp_tech2[0] .'</td></tr>';
- else
- $table .= '<tr><td class="shop-tech-left">'. $temp_tech2[0] .'</td><td class="shop-tech-right">'. $temp_tech2[1] .'</td></tr>';
- }
- $table .= '</tbody></table>';
- $module->assign('tech_notes', $table);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement