Редакция 590 | Редакция 592 | К новейшей редакции | Весь файл | Не учитывать пробелы | Содержимое файла | Авторство | Последнее изменение | Открыть журнал | RSS
Редакция 590 | Редакция 591 | ||
---|---|---|---|
Строка 1922... | Строка 1922... | ||
1922 | $show .= "</select>"; |
1922 | $show .= "</select>"; |
1923 | 1923 | ||
1924 | return $show; |
1924 | return $show; |
1925 | }
|
1925 | }
|
1926 | 1926 | ||
- | 1927 | public function showVDList($name, $versionID = 0) { |
|
- | 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"; |
|
- | 1930 | $rq =& $this->db->query($query); |
|
- | 1931 | $show = "<select name='".$name."' id='".$name."'>\n"; |
|
- | 1932 | while ($rq->fetchInto($element)) { |
|
- | 1933 | $show .= "<option value='".$this->secure->checkInt($element["version_id"])."'>".$this->secure->checkStr($element["fullname"],1)."</option>\n"; |
|
- | 1934 | }
|
|
- | 1935 | $show .= "</select>"; |
|
- | 1936 | return $show; |
|
- | 1937 | }
|
|
- | 1938 | ||
1927 | /**
|
1939 | /**
|
1928 | * Форма создания/редактирвоания репозиториев
|
1940 | * Форма создания/редактирвоания репозиториев
|
1929 | *
|
1941 | *
|
1930 | * @author Alexander Wolf
|
1942 | * @author Alexander Wolf
|
1931 | * @category Core
|
1943 | * @category Core
|
Строка 1945... | Строка 1957... | ||
1945 | if ($sRType == "") { |
1957 | if ($sRType == "") { |
1946 | $sRType = "deb"; |
1958 | $sRType = "deb"; |
1947 | }
|
1959 | }
|
1948 | if ($sRepID != 0) { |
1960 | if ($sRepID != 0) { |
1949 | // Режим редактирования
|
1961 | // Режим редактирования
|
1950 | $query = "SELECT r.*,v.*,d.distname,dt.type FROM ".$this->prefix."repository r "; |
1962 | $query = "SELECT r.*,v.*,d.dist_id,dt.type FROM ".$this->prefix."repository r "; |
1951 | $query .= "JOIN ".$this->prefix."version v ON r.version=v.version_id "; |
1963 | $query .= "JOIN ".$this->prefix."version v ON r.version=v.version_id "; |
1952 | $query .= "JOIN ".$this->prefix."distribution d ON v.dist_id=d.dist_id "; |
1964 | $query .= "JOIN ".$this->prefix."distribution d ON v.dist_id=d.dist_id "; |
1953 | $query .= "JOIN ".$this->prefix."dtype dt ON d.disttype=dt.type_id "; |
1965 | $query .= "JOIN ".$this->prefix."dtype dt ON d.disttype=dt.type_id "; |
1954 | $query .= "WHERE r.rep_id='".$sRepID."'"; |
1966 | $query .= "WHERE r.rep_id='".$sRepID."'"; |
1955 | $rq =& $this->db->query($query); |
1967 | $rq =& $this->db->query($query); |
1956 | $rq->fetchInto($element); |
1968 | $rq->fetchInto($element); |
1957 | $sRType = $this->secure->checkStr($element["type"],1); |
1969 | $sRType = $this->secure->checkStr($element["type"],1); |
1958 | }
|
1970 | }
|
1959 | 1971 | ||
1960 | $show = "<fieldset><legend>".$sInfo."</legend>\n"; |
1972 | $show = "<fieldset><legend>".$sInfo."</legend>\n"; |
- | 1973 | $show .= "<div class='inputbox'><label for='rdist'>Дистрибутив:</label> ".$this->showVDList("rdist",$this->secure->checkInt($element["dist_id"]),"innerhtml")."</div>\n"; |
|
1961 | $show .= "<div class='inputbox'><label for='rname'>Название репозитория:</label> <input type='text' name='rname' value='".$this->secure->checkStr($element["repname"],1)."'></div>\n"; |
1974 | $show .= "<div class='inputbox'><label for='rname'>Название репозитория:</label> <input type='text' name='rname' value='".$this->secure->checkStr($element["repname"],1)."'></div>\n"; |
1962 | $show .= "<div class='inputbox'><label for='rinfo'>Описание репозитория:</label> <input type='text' name='rinfo' value='".$this->secure->checkStr($element["repinfo"],1)."'></div>\n"; |
1975 | $show .= "<div class='inputbox'><label for='rinfo'>Описание репозитория:</label> <input type='text' name='rinfo' value='".$this->secure->checkStr($element["repinfo"],1)."'></div>\n"; |
1963 | $show .= "<div class='inputbox'><label for='rkey'>Ключ подписи репозитория:</label> <input type='text' name='rkey' value='".$this->secure->checkStr($element["repkey"],1)."'></div>\n"; |
1976 | $show .= "<div class='inputbox'><label for='rkey'>Ключ подписи репозитория:</label> <input type='text' name='rkey' value='".$this->secure->checkStr($element["repkey"],1)."'></div>\n"; |
1964 | $show .= "<div class='inputbox'><label for='rproto'>Протокол доступа:</label> ".$this->showProtoList("rproto",$this->secure->checkInt($element["proto_id"]),"innerhtml")."</div>\n"; |
1977 | $show .= "<div class='inputbox'><label for='rproto'>Протокол доступа:</label> ".$this->showProtoList("rproto",$this->secure->checkInt($element["proto_id"]),"innerhtml")."</div>\n"; |
1965 | $show .= "<div class='inputbox'><label for='rhost'>Хост репозитория:</label> ".$this->showHostsList("rhost",$this->secure->checkInt($element["rhost_id"]),"innerhtml")."</div>\n"; |
1978 | $show .= "<div class='inputbox'><label for='rhost'>Хост репозитория:</label> ".$this->showHostsList("rhost",$this->secure->checkInt($element["rhost_id"]),"innerhtml")."</div>\n"; |