Hello everyone) through this code information about the goods is displayed. There are sections on products in which there are 30 checkboxes and they are displayed in one vertical list (it’s scary not nice), I would like it to be displayed in 3 columns .. tell me how?
<?php if ( !defined('ABS_PATH') ) { exit('ABS_PATH is not loaded. Direct access is not allowed.'); } ?> <table class="sss"> <tbody> <?php $hide_empty = osc_get_preference('hide_empty', CA_PLUGIN_NAME); foreach ($fields as $field): $value = Attributes::newInstance()->getValue($item_id, $field['pk_i_id']); if (!empty($hide_empty) && 'hide' == $hide_empty) { if ('checkbox' != $field['s_type'] && '' == trim($value)) { continue; } } if ($field['s_type'] == 'checkbox'){ if($value != 'checked') continue; else $value = ''; } ?> <tr class="ddd"> <td class='detail_label'><?=$field['s_label']?></td> <td class='detail_label1'><?=$value?></td> </tr> <?php endforeach; ?> </tbody> </table> <?php //END
<tr>...</tr>) to output 2 (3) list items at once. - aleksandr barakin