Хранилища Subversion ant

Сравнить редакции

Не учитывать пробелы Редакция 496 → Редакция 497

/branches/ant/0.9.x/lib/core.php
522,8 → 522,8
return $result;
}
 
public function showDistVerstionsEditor($name, $actor, $list = 1) {
if ($list == 1) {
public function showDistVerstionsEditor($name, $actor, $versionID = 0) {
if ($versionID == 0) {
$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";
532,7 → 532,15
}
$show .= "</ul>";
} else {
 
$query = "SELECT * FROM ".$this->prefix."version v JOIN ".$this->prefix."distribution d ON v.dist_id=d.dist_id WHERE v.version_id='".$versionID."'";
$rq =& $this->db->query($query);
$rq->fetchInto($element);
$show = "<form action='".$actor."' method='post'>\n";
$show .= "<input type='hidden' name='mode' value='".$name."'>\n";
$show .= "<input type='text' name='vname' value='".$this->secure->checkStr($element["vname"],1)."'>\n";
$show .= "<input type='text' name='version' value='".$this->secure->checkStr($element["version"],1)."'>\n";
$show .= "<input type='text' name='vcodename' value='".$this->secure->checkStr($element["vcodename"],1)."'>\n";
$show .= "<input type='submit' value=' Править '></form>\n";
}
return $show;
}