<?php if($_topicrow_count = count($d['topicrow'])) {for ($_topicrow_i = 0; $_topicrow_i < $_topicrow_count; $_topicrow_i++){if($_bottom_count = count($d['topicrow'][$_topicrow_i]['bottom'])) {for ($_bottom_i = 0; $_bottom_i < $_bottom_count; $_bottom_i++){ ?>
<tr>
<td class="catBottom" align="center" valign="middle" colspan="<?php if($_no_topics_count = count($d['topicrow'][$_topicrow_i]['bottom'][$_bottom_i]['no_topics'])) {for ($_no_topics_i = 0; $_no_topics_i < $_no_topics_count; $_no_topics_i++){ ?>5<?php }} else { ?>7<?php } ?>" height="28"><span class="genmed">&nbsp;
<?php $this->_echo($d['.'][0]['L_PREVIOUS_DAYS']); ?>:&nbsp;<select name="topicdays"><?php $this->_echo($d['.'][0]['TOPICDAYS']); ?></select>&nbsp;
<?php $this->_echo($d['.'][0]['L_SORT_BY']); ?>:&nbsp;<select name="sort"><?php $this->_echo($d['.'][0]['SORT']); ?></select>
<select name="order"><?php $this->_echo($d['.'][0]['ORDER']); ?></select>&nbsp;
<input type="submit" class="liteoption" value="<?php $this->_echo($d['.'][0]['L_GO']); ?>" name="submit" />&nbsp;
</span></td>
</tr>
<?php }}}} ?>