Хранилища Subversion ant

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

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

/branches/ant/0.9.x/lib/core.php
420,8 → 420,12
* @param integer $distID
* @return string
*/
public function showDistributionForm($distID = 0) {
public function showDistributionForm($distID = 0, $info = '') {
$sDistID = $this->secure->checkInt($distID);
$sInfo = $this->secure->checkStr($info, 1);
if ($sInfo == "") {
$sInfo = "Дистрибутив";
}
if ($sDistID != 0) {
// Режим редактирования
$query = "SELECT * FROM ".$this->prefix."distribution WHERE dist_id='".$sDistID."'";
435,7 → 439,7
$image = "<img src='./img/d/empty-logo.png' width='32' height='32' id='adm-dist-logo' alt='Логотип дистрибутива' title='Логотип дистрибутива не загружен'>";
}
 
$show = "<fieldset><legend>Дистрибутив</legend>\n";
$show = "<fieldset><legend>".$sInfo."</legend>\n";
$show .= "<div class='inputbox'><label for='dname'>Название дистрибутива:</label> <input type='text' name='dname' id='dname' value='".$this->secure->checkStr($element["distname"],1)."'></div>\n";
$show .= "<div class='inputbox'><label for='dua'>UA дистрибутива:</label> <input type='text' name='dua' id='dua' value='".$this->secure->checkStr($element["distua"],1)."'></div>\n";
$show .= "<div class='inputbox'><label for='dtype'>Тип дистрибутива:</label> ".$this->showDistTypeForm("dtype",$element["dtype_id"])."</div>\n";
558,8 → 562,12
* @param integer $versionID
* @return string
*/
public function showDistVersionsForm($versionID = 0) {
public function showDistVersionsForm($versionID = 0, $info = '') {
$sVersionID = $this->secure->checkInt($versionID);
$sInfo = $this->secure->checkStr($info, 1);
if ($sInfo == "") {
$sInfo = "Версия дистрибутива";
}
if ($sVersionID != 0) {
// Режим редактирования
$query = "SELECT * FROM ".$this->prefix."version v JOIN ".$this->prefix."distribution d ON v.dist_id=d.dist_id WHERE v.version_id='".$versionID."'";
567,7 → 575,7
$rq->fetchInto($element);
}
$show = "<fieldset><legend>Версия дистрибутива</legend>\n";
$show = "<fieldset><legend>".$sInfo."</legend>\n";
if ($sVersionID != 0) {
$show .= "<div class='inputbox'><label for='distname'>Дистрибутив:</label> <input type='text' name='distname' value='".$this->secure->checkStr($element["distname"],1)."' readonly='readonly'></div>\n";
} else {