/trunk/custom/apt/apt.php/apt.php |
---|
12,9 → 12,9 |
$distrs =& $db->query("SELECT * FROM apt_distrs"); |
echo "<td>"; |
while ($distrs->fetchInto($info_distrs, DB_FETCHMODE_ASSOC)) { |
echo $info_distrs['distr'].": "; |
$vers =& $db->query("SELECT * FROM apt_vers JOIN apt_reps2vers ON apt_vers.id=apt_reps2vers.ver_id WHERE distr_id=".$info_distrs['id']." AND rep_id=".$info_mirs['id']); |
if ($vers->numRows()!=0) echo $info_distrs['distr'].": "; |
while ($vers->fetchInto($info_vers, DB_FETCHMODE_ASSOC)) { |
echo $info_vers['codename']." "; |
} |