<?php if($_row_count = count($d['row'])) {for ($_row_i = 0; $_row_i < $_row_count; $_row_i++){ ?>
<tr>
<td class="row1"><span class="gen"><?php $this->_echo($d['row'][$_row_i]['L_STAT']); ?></span></td>
<td class="row2"><span class="gen"><b><?php $this->_echo($d['row'][$_row_i]['STAT']);if($_unit_count = count($d['row'][$_row_i]['unit'])) {for ($_unit_i = 0; $_unit_i < $_unit_count; $_unit_i++){ ?>&nbsp;<?php $this->_echo($d['row'][$_row_i]['L_UNIT']);}} ?></b></span></td>
</tr>
<?php }} ?>