- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
<? while ($cat = db_fetch_object($qid_c)) { ?>
<?
$n_p_id = $cat->id;
$n_p = $cat->name;
$list[] = "";
$list_n_p_id[] = $n_p_id;
$list_n_p[] = $n_p;
?>
<? } ?>
<table>
<?
for ($n_ar = 0; (count($list) - $n_ar) >= 4; $n_ar +=4) {
$first = $list[$n_ar];
$second = $list[$n_ar + 1];
$third = $list[$n_ar + 2];
$forth = $list[$n_ar + 3];
$first_n_p_id = $list_n_p_id[$n_ar];
$second_n_p_id = $list_n_p_id[$n_ar + 1];
$third_n_p_id = $list_n_p_id[$n_ar + 2];
$forth_n_p_id = $list_n_p_id[$n_ar + 3];
$first_n_p = "<a href=../collection/?id=$first_n_p_id>$list_n_p[$n_ar]</a>";
$n_ar1 = $n_ar + 1;
$second_n_p = "<a href=../collection/?id=$second_n_p_id>$list_n_p[$n_ar1]</a>";
$n_ar2 = $n_ar + 2;
$third_n_p = "<a href=../collection/?id=$third_n_p_id>$list_n_p[$n_ar2]</a>";
$n_ar3 = $n_ar + 3;
$forth_n_p = "<a href=../collection/?id=$forth_n_p_id>$list_n_p[$n_ar3]</a>";
print "<tr class=collection>" . "<td class=collection1>" . $first_n_p . "</td>" . "<td class=collection2>" . $second_n_p . "</td>" . "<td class=collection3>" . $third_n_p . "</td>" . "<td class=collection4>" . $forth_n_p . "</td>" . "</tr>";
}
?>
Комментарии (0) RSS
Добавить комментарий