what i wanted is from 1 - 4 it will display on 1st row, 5 - 8 on 2nd, 9 - 12 on 3rd ....PHP Code:<? $arrModel = $db->get_class_model($arrGroup[$i]["group_id"]);?>
<? $x = 1; ?>
<? foreach($arrModel as $k1 => $v1): ?>
<? if($db->model_num_item($v1["model_id"]) > 0): ?>
<? $file_row = $db->file_to_download($v1["model_id"]); ?>
<? if($x == 1): ?><tr><? endif; ?>
<td width="25%" align="center" height="30px"><a style="font-size: 12px; font-weight: bold" href="?act=download&model_id=<?=$v1["model_id"];?>"><?=(getIcon($v1["model_id"], 'model'))?getIcon($v1["model_id"], 'model'):$v1["model_name"];?></a><br /><i style="font-size: 10px; font-weight: normal">(<?=gmdate("m/d/Y", $file_row["date"]);?>)</i></td>
<? if($x == 4): ?></tr><? endif; ?>
<? $x++; ?>
<? endif; ?>
<? endforeach; ?>
<? if(count($arrModel) % 4 != 0): ?></tr><? endif; ?>
1 - 4 and 5 - 8 is fine but if i have 9 or more it doesn't go to the 3 row but it squeeze on second row and make everything offset.
how can i fixed it ?



Reply With Quote


Bookmarks