156,6 → 156,13 |
} |
$show .= "</select>"; |
break; |
case 'list': |
$show = "<ul>"; |
while ($rq->fetchInto($element)) { |
$show .= "<li>[<a href='".$heads."?mode=distributions&action=edit&uuid=".$this->secure->checkInt($element["dist_id"])."'>править</a>][<a href='".$heads."?mode=distributions&action=delete&uuid=".$this->secure->checkInt($element["dist_id"])."'>удалить</a>] ".$this->secure->checkStr($element["distname"],1)."</li>\n"; |
} |
$show .= "</ul>"; |
break; |
} |
return $show; |
} |
566,6 → 573,17 |
return $show; |
} |
|
/** |
* Вывод формы добавления и удаления версии дистрибутива |
* |
* @author Alexander Wolf |
* @category Core |
* |
* @param string $name |
* @param string $actor |
* @param integer $versionID |
* @return string |
*/ |
public function showDistVersionsForm($name, $actor, $versionID = 0) { |
$show = "<form action='".$actor."' method='post'>"; |
if ($versionID == 0) { |