1924,6 → 1924,18 |
return $show; |
} |
|
public function showVDList($name, $versionID = 0) { |
$query = "SELECT v.version_id, CONCAT(d.distname, ' ', v.version, ' ', v.vname) AS fullname FROM ".$this->prefix."version v"; |
$query .= "JOIN ".$this->prefix."distribution d ON v.dist_id=d.dist_id"; |
$rq =& $this->db->query($query); |
$show = "<select name='".$name."' id='".$name."'>\n"; |
while ($rq->fetchInto($element)) { |
$show .= "<option value='".$this->secure->checkInt($element["version_id"])."'>".$this->secure->checkStr($element["fullname"],1)."</option>\n"; |
} |
$show .= "</select>"; |
return $show; |
} |
|
/** |
* Форма создания/редактирвоания репозиториев |
* |
1947,7 → 1959,7 |
} |
if ($sRepID != 0) { |
// Режим редактирования |
$query = "SELECT r.*,v.*,d.distname,dt.type FROM ".$this->prefix."repository r "; |
$query = "SELECT r.*,v.*,d.dist_id,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 "; |
1958,6 → 1970,7 |
} |
|
$show = "<fieldset><legend>".$sInfo."</legend>\n"; |
$show .= "<div class='inputbox'><label for='rdist'>Дистрибутив:</label> ".$this->showVDList("rdist",$this->secure->checkInt($element["dist_id"]),"innerhtml")."</div>\n"; |
$show .= "<div class='inputbox'><label for='rname'>Название репозитория:</label> <input type='text' name='rname' value='".$this->secure->checkStr($element["repname"],1)."'></div>\n"; |
$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"; |