Редакция 346 | Редакция 348 | К новейшей редакции | Весь файл | Не учитывать пробелы | Содержимое файла | Авторство | Последнее изменение | Открыть журнал | RSS
Редакция 346 | Редакция 347 | ||
---|---|---|---|
Строка 179... | Строка 179... | ||
179 | function showDistTypeForm($name = "dtype",$type = 0) { |
179 | function showDistTypeForm($name = "dtype",$type = 0) { |
180 | $query = "SELECT * FROM ".$this->prefix."dtype"; |
180 | $query = "SELECT * FROM ".$this->prefix."dtype"; |
181 | $rq =& $this->db->query($query); |
181 | $rq =& $this->db->query($query); |
182 | $show = "<select name='".$name."' id='".$name."'>\n"; |
182 | $show = "<select name='".$name."' id='".$name."'>\n"; |
183 | while ($rq->fetchInto($element)) { |
183 | while ($rq->fetchInto($element)) { |
184 | if ($element["dtype_id"] == $type) { |
184 | if ($element["type_id"] == $type) { |
185 | $show .= "<option value='".$element["dtype_id"]."' selected>".$this->secure->checkStr($element["dtype"],1)."</option>\n"; |
185 | $show .= "<option value='".$element["type_id"]."' selected>".$this->secure->checkStr($element["type"],1)."</option>\n"; |
186 | } else { |
186 | } else { |
187 | $show .= "<option value='".$element["dtype_id"]."'>".$this->secure->checkStr($element["dtype"],1)."</option>\n"; |
187 | $show .= "<option value='".$element["type_id"]."'>".$this->secure->checkStr($element["type"],1)."</option>\n"; |
188 | }
|
188 | }
|
189 | }
|
189 | }
|
190 | $show .= "</select>"; |
190 | $show .= "</select>"; |
191 | 191 | ||
192 | return $show; |
192 | return $show; |