Редакция 586 | Редакция 588 | К новейшей редакции | Весь файл | Учитывать пробелы | Содержимое файла | Авторство | Последнее изменение | Открыть журнал | RSS
Редакция 586 | Редакция 587 | ||
---|---|---|---|
Строка 1797... | Строка 1797... | ||
1797 | if ($sRType == "") { |
1797 | if ($sRType == "") { |
1798 | $sRType = "deb"; |
1798 | $sRType = "deb"; |
1799 | }
|
1799 | }
|
1800 | if ($sRepID != 0) { |
1800 | if ($sRepID != 0) { |
1801 | // Режим редактирования
|
1801 | // Режим редактирования
|
1802 | $query = "SELECT r.rtype_id,r.repname,r.repinfo,r.repkey,p.proto_id,h.rhost,f.rfolder,v.*,d.distname,dt.type FROM ".$this->prefix."repository r "; |
1802 | $query = "SELECT r.*,v.*,d.distname,dt.type FROM ".$this->prefix."repository r "; |
1803 | //$query .= "JOIN ".$this->prefix."rtype rt ON r.rtype_id=rt.rtype_id ";
|
- | |
1804 | $query .= "JOIN ".$this->prefix."protos p ON r.proto_id=p.proto_id "; |
- | |
1805 | $query .= "JOIN ".$this->prefix."rephost h ON r.rhost_id=h.rhost_id "; |
- | |
1806 | $query .= "JOIN ".$this->prefix."repfolder f ON r.rfolder_id=f.rfolder_id "; |
- | |
1807 | $query .= "JOIN ".$this->prefix."version v ON r.version=v.version_id "; |
1803 | $query .= "JOIN ".$this->prefix."version v ON r.version=v.version_id "; |
1808 | $query .= "JOIN ".$this->prefix."distribution d ON v.dist_id=d.dist_id "; |
1804 | $query .= "JOIN ".$this->prefix."distribution d ON v.dist_id=d.dist_id "; |
1809 | $query .= "JOIN ".$this->prefix."dtype dt ON d.disttype=dt.type_id "; |
1805 | $query .= "JOIN ".$this->prefix."dtype dt ON d.disttype=dt.type_id "; |
1810 | $query .= "WHERE r.rep_id='".$sRepID."'"; |
1806 | $query .= "WHERE r.rep_id='".$sRepID."'"; |
1811 | $rq =& $this->db->query($query); |
1807 | $rq =& $this->db->query($query); |
Строка 1816... | Строка 1812... | ||
1816 | $show = "<fieldset><legend>".$sInfo."</legend>\n"; |
1812 | $show = "<fieldset><legend>".$sInfo."</legend>\n"; |
1817 | $show .= "<div class='inputbox'><label for='rname'>Название репозитория:</label> <input type='text' name='rname' value='".$this->secure->checkStr($element["repname"],1)."'></div>\n"; |
1813 | $show .= "<div class='inputbox'><label for='rname'>Название репозитория:</label> <input type='text' name='rname' value='".$this->secure->checkStr($element["repname"],1)."'></div>\n"; |
1818 | $show .= "<div class='inputbox'><label for='rinfo'>Описание репозитория:</label> <input type='text' name='rinfo' value='".$this->secure->checkStr($element["repinfo"],1)."'></div>\n"; |
1814 | $show .= "<div class='inputbox'><label for='rinfo'>Описание репозитория:</label> <input type='text' name='rinfo' value='".$this->secure->checkStr($element["repinfo"],1)."'></div>\n"; |
1819 | $show .= "<div class='inputbox'><label for='rkey'>Ключ подписи репозитория:</label> <input type='text' name='rkey' value='".$this->secure->checkStr($element["repkey"],1)."'></div>\n"; |
1815 | $show .= "<div class='inputbox'><label for='rkey'>Ключ подписи репозитория:</label> <input type='text' name='rkey' value='".$this->secure->checkStr($element["repkey"],1)."'></div>\n"; |
1820 | $show .= "<div class='inputbox'><label for='rproto'>Протокол доступа:</label> ".$this->showProtoList("rproto",$this->secure->checkInt($element["proto_id"]),"innerhtml")."</div>\n"; |
1816 | $show .= "<div class='inputbox'><label for='rproto'>Протокол доступа:</label> ".$this->showProtoList("rproto",$this->secure->checkInt($element["proto_id"]),"innerhtml")."</div>\n"; |
1821 | $show .= "<div class='inputbox'><label for='rhost'>Хост репозитория:</label> <input type='text' name='rhost' value='".$this->secure->checkStr($element["rhost"],1)."'></div>\n"; |
1817 | $show .= "<div class='inputbox'><label for='rhost'>Хост репозитория:</label> ".$this->showProtoList("rhost",$this->secure->checkInt($element["rhost_id"]),"innerhtml")."</div>\n"; |
1822 | $show .= "<div class='inputbox'><label for='rfolder'>Корневая папка:</label> <input type='text' name='rfolder' value='".$this->secure->checkStr($element["rfolder"],1)."'></div>\n"; |
1818 | $show .= "<div class='inputbox'><label for='rfolder'>Корневая папка:</label> <input type='text' name='rfolder' value='".$this->secure->checkStr($element["rfolder"],1)."'></div>\n"; |
1823 | $show .= "<div class='inputbox'><label for='rtype'>Тип репозитория:</label> ".$this->showRepType($this->secure->checkInt($element["rtype_id"]), "rtype")."</div>\n"; |
1819 | $show .= "<div class='inputbox'><label for='rtype'>Тип репозитория:</label> ".$this->showRepType($this->secure->checkInt($element["rtype_id"]), "rtype")."</div>\n"; |
1824 | $show .= "<div class='inputbox'><label for='rsects'>Секции репозитория:</label> <div class='formwrapper'>".$this->showSectionsList("rsects",$sRepID,"innerhtml")."</div></div>\n"; |
1820 | $show .= "<div class='inputbox'><label for='rsects'>Секции репозитория:</label> <div class='formwrapper'>".$this->showSectionsList("rsects",$sRepID,"innerhtml")."</div></div>\n"; |
1825 | $show .= "<div class='inputbox'><label for='rarchs'>Архитектуры:</label> <div class='formwrapper'>".$this->showArchList("rarchs",$sRepID,"innerhtml")."</div></div>\n"; |
1821 | $show .= "<div class='inputbox'><label for='rarchs'>Архитектуры:</label> <div class='formwrapper'>".$this->showArchList("rarchs",$sRepID,"innerhtml")."</div></div>\n"; |
1826 | $show .= "<div class='inputbox'><label for='rscheme'>Схема репозитория:</label> ".$this->showSchemeList("rscheme",$sRepID,"innerhtml")."</div>\n"; |
1822 | $show .= "<div class='inputbox'><label for='rscheme'>Схема репозитория:</label> ".$this->showSchemeList("rscheme",$sRepID,"innerhtml")."</div>\n"; |