Хранилища Subversion ant

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

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

/branches/ant/0.9.x/lib/core.php
588,8 → 588,51
public function showSourcesList($distID,$versID,$sectIDs,$repIDs) {
//TODO Написать генератор sources.list
}
 
/**
* Показывает список секций
*
* @author Alexander Wolf
* @category Core
*
* @param string $name
* @param string $actor
* @return string
*/
public function showSectionsList($name, $actor) {
$query = "SELECT * FROM ".$this->prefix."section";
$rq =& $this->db->query($query);
$show = "<ul>\n";
while ($rq->fetchInto($element)) {
$show .= "<li>[<a href='".$actor."?mode=".$name."&action=edit&uuid=".$element["sect_id"]."'>править</a>][<a href='".$actor."?mode=".$name."&action=delete&uuid=".$element["sect_id"]."'>удалить</a>] ".$this->secure->checkStr($element["secname"],1)."</li>\n";
}
$show .= "</ul>";
 
return $show;
}
 
public function showSectionsForm($sectionID = 0, $info = '') {
$sSectID = $this->secure->checkInt($sectionID);
$sInfo = $this->secure->checkStr($info, 1);
if ($sInfo == "") {
$sInfo = "Секция";
}
if ($sSectID != 0) {
// Режим редактирования
$query = "SELECT * FROM ".$this->prefix."section WHERE sect_id='".$sSectID."'";
$rq =& $this->db->query($query);
$rq->fetchInto($element);
}
 
$show = "<fieldset><legend>".$sInfo."</legend>\n";
$show .= "<div class='inputbox'><label for='sname'>Название секции:</label> <input type='text' name='sname' id='sname' value='".$this->secure->checkStr($element["secname"],1)."'></div>\n";
$show .= "<div class='inputbox'><label for='sinfo'>Описание секции:</label> <input type='text' name='sinfo' id='sinfo' value='".$this->secure->checkStr($element["sectinfo"],1)."'></div>\n";
$show .= "<div class='inputbox'><input type='submit' value=' Отправить данные '></div>\n</fieldset>\n";
 
return $show;
}
 
/**
* Проверка пароля (из формы авторизации)
*
* @author Alexander Wolf