Редакция 591 | Редакция 593 | К новейшей редакции | Весь файл | Учитывать пробелы | Содержимое файла | Авторство | Последнее изменение | Открыть журнал | RSS
Редакция 591 | Редакция 592 | ||
---|---|---|---|
Строка 1928... | Строка 1928... | ||
1928 | $query = "SELECT v.version_id, CONCAT(d.distname, ' ', v.version, ' ', v.vname) AS fullname FROM ".$this->prefix."version v"; |
1928 | $query = "SELECT v.version_id, CONCAT(d.distname, ' ', v.version, ' ', v.vname) AS fullname FROM ".$this->prefix."version v "; |
1929 | $query .= "JOIN ".$this->prefix."distribution d ON v.dist_id=d.dist_id"; |
1929 | $query .= "JOIN ".$this->prefix."distribution d ON v.dist_id=d.dist_id"; |
1930 | $rq =& $this->db->query($query); |
1930 | $rq =& $this->db->query($query); |
1931 | $show = "<select name='".$name."' id='".$name."'>\n"; |
1931 | $show = "<select name='".$name."' id='".$name."'>\n"; |
1932 | while ($rq->fetchInto($element)) { |
1932 | while ($rq->fetchInto($element)) { |
- | 1933 | if ($element["version_id"]==$versionID) { |
|
- | 1934 | $show .= "<option value='".$this->secure->checkInt($element["version_id"])."' selected>".$this->secure->checkStr($element["fullname"],1)."</option>\n"; |
|
- | 1935 | } else { |
|
1933 | $show .= "<option value='".$this->secure->checkInt($element["version_id"])."'>".$this->secure->checkStr($element["fullname"],1)."</option>\n"; |
1936 | $show .= "<option value='".$this->secure->checkInt($element["version_id"])."'>".$this->secure->checkStr($element["fullname"],1)."</option>\n"; |
1934 | }
|
1937 | }
|
- | 1938 | }
|
|
1935 | $show .= "</select>"; |
1939 | $show .= "</select>"; |
1936 | return $show; |
1940 | return $show; |
1937 | }
|
1941 | }
|
1938 | 1942 | ||
1939 | /**
|
1943 | /**
|