Хранилища Subversion ant

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

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

/branches/ant/0.9.x/lib/core.php
307,11 → 307,13
$rq =& $this->db->query($query);
switch ($format) {
case 'html':
$show = "<fieldset><legend>".$this->secure->checkStr($types["rtype"],1)."</legend>\n";
while ($rq->fetchInto($element)) {
$show .= "<div class='repository'><input type='checkbox' name='repository[]' value='".$element["rep_id"]."'> ".$this->secure->checkStr($element["repname"],1)." &mdash; ".$this->secure->checkStr($element["repinfo"],1)."</div>\n";
if ($rq->numRows()>0) {
$show = "<fieldset><legend>".$this->secure->checkStr($types["rtype"],1)."</legend>\n";
while ($rq->fetchInto($element)) {
$show .= "<div class='repository'><input type='checkbox' name='repository[]' value='".$element["rep_id"]."'> ".$this->secure->checkStr($element["repname"],1)." &mdash; ".$this->secure->checkStr($element["repinfo"],1)."</div>\n";
}
$show .= "</fieldset>\n";
}
$show .= "</fieldset>\n";
break;
case 'json':
//TODO Доделать JSON-вывод списка репозиториев