Есть выподающее меню с выводом производителя:
Код |
// start SORT echo " <table width=\"173\" align=\"center\" border=\"0\">\n"; echo " <tr>\n"; echo " <td class=gray align=right>" .$LNG['WARES_VIBOR']. "</td>\n"; echo " <td class=gray><select name=name onChange=location.href=this.options[selectedIndex].value >\n"; $query = "select firm.id, firm.name from firm, wares where wares.id_type=$id_type and firm.id=wares.id_firm group by firm.name"; if($name = mysql_query($query)) { while(list($id, $id_firm)=mysql_fetch_array($name)) { echo "<option value=\"index.php?lang=$lang&p=$p&id_type=$id_type&id_subtype=$id_subtype&id_firm=$id\" >" . $id_firm . "</option>"; } } else puterror("error"); echo " </select></td>\n"; echo " </table>"; //end SORT |