1799,11 → 1799,7 |
} |
if ($sRepID != 0) { |
// Режим редактирования |
$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 "; |
//$query .= "JOIN ".$this->prefix."rtype rt ON r.rtype_id=rt.rtype_id "; |
$query .= "JOIN ".$this->prefix."protos p ON r.proto_id=p.proto_id "; |
$query .= "JOIN ".$this->prefix."rephost h ON r.rhost_id=h.rhost_id "; |
$query .= "JOIN ".$this->prefix."repfolder f ON r.rfolder_id=f.rfolder_id "; |
$query = "SELECT r.*,v.*,d.distname,dt.type FROM ".$this->prefix."repository r "; |
$query .= "JOIN ".$this->prefix."version v ON r.version=v.version_id "; |
$query .= "JOIN ".$this->prefix."distribution d ON v.dist_id=d.dist_id "; |
$query .= "JOIN ".$this->prefix."dtype dt ON d.disttype=dt.type_id "; |
1818,7 → 1814,7 |
$show .= "<div class='inputbox'><label for='rinfo'>Описание репозитория:</label> <input type='text' name='rinfo' value='".$this->secure->checkStr($element["repinfo"],1)."'></div>\n"; |
$show .= "<div class='inputbox'><label for='rkey'>Ключ подписи репозитория:</label> <input type='text' name='rkey' value='".$this->secure->checkStr($element["repkey"],1)."'></div>\n"; |
$show .= "<div class='inputbox'><label for='rproto'>Протокол доступа:</label> ".$this->showProtoList("rproto",$this->secure->checkInt($element["proto_id"]),"innerhtml")."</div>\n"; |
$show .= "<div class='inputbox'><label for='rhost'>Хост репозитория:</label> <input type='text' name='rhost' value='".$this->secure->checkStr($element["rhost"],1)."'></div>\n"; |
$show .= "<div class='inputbox'><label for='rhost'>Хост репозитория:</label> ".$this->showProtoList("rhost",$this->secure->checkInt($element["rhost_id"]),"innerhtml")."</div>\n"; |
$show .= "<div class='inputbox'><label for='rfolder'>Корневая папка:</label> <input type='text' name='rfolder' value='".$this->secure->checkStr($element["rfolder"],1)."'></div>\n"; |
$show .= "<div class='inputbox'><label for='rtype'>Тип репозитория:</label> ".$this->showRepType($this->secure->checkInt($element["rtype_id"]), "rtype")."</div>\n"; |
$show .= "<div class='inputbox'><label for='rsects'>Секции репозитория:</label> <div class='formwrapper'>".$this->showSectionsList("rsects",$sRepID,"innerhtml")."</div></div>\n"; |