522,7 → 522,21 |
return $result; |
} |
|
public function showDistVerstionsEditor($name, $actor, $list = 1) { |
if ($list == 1) { |
$query = "SELECT * FROM ".$this->prefix."version v JOIN ".$this->prefix."distribution d ON v.dist_id=d.dist_id ORDER BY d.dist_id,v.version ASC"; |
$rq =& $this->db->query($query); |
$show = "<ul>\n"; |
while ($rq->fetchInto($element)) { |
$show .= "<li>[<a href='".$actor."?mode=versions&action=edit&uuid=".$this->secure->checkInt($element["version_id"])."'>править</a>][<a href='".$actor."?mode=versions&action=delete&uuid=".$this->secure->checkInt($element["version_id"])."'>удалить</a>] ".$this->secure->checkStr($element["distname"],1)." ".$this->secure->checkStr($element["version"],1)." ".$this->secure->checkStr($element["vname"],1)."</li>\n"; |
} |
$show .= "</ul>"; |
} else { |
|
} |
return $show; |
} |
|
} |
|
?> |