Хранилища Subversion ant

Редакция

Редакция 505 | Редакция 509 | К новейшей редакции | Весь файл | Не учитывать пробелы | Содержимое файла | Авторство | Последнее изменение | Открыть журнал | RSS

Редакция 505 Редакция 506
Строка 154... Строка 154...
154
                while ($rq->fetchInto($element)) {
154
                while ($rq->fetchInto($element)) {
155
                    $show .= "<option value='".$this->secure->checkInt($element["dist_id"])."'>".$this->secure->checkStr($element["distname"],1)."</option>\n";
155
                    $show .= "<option value='".$this->secure->checkInt($element["dist_id"])."'>".$this->secure->checkStr($element["distname"],1)."</option>\n";
156
                }
156
                }
157
                $show .= "</select>";
157
                $show .= "</select>";
158
                break;
158
                break;
-
 
159
            case 'list':
-
 
160
                $show = "<ul>";
-
 
161
                while ($rq->fetchInto($element)) {
-
 
162
                    $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";
-
 
163
                }
-
 
164
                $show .= "</ul>";
-
 
165
                break;
159
        }
166
        }
160
        return $show;
167
        return $show;
161
    }
168
    }
162
169
163
    /**
170
    /**
Строка 564... Строка 571...
564
            $show .= "<div class='inputbox'><input type='submit' value=' Править '></div></fieldset></form>\n";
571
            $show .= "<div class='inputbox'><input type='submit' value=' Править '></div></fieldset></form>\n";
565
        }
572
        }
566
        return $show;
573
        return $show;
567
    }
574
    }
568
575
-
 
576
    /**
-
 
577
     * Вывод формы добавления и удаления версии дистрибутива
-
 
578
     *
-
 
579
     * @author Alexander Wolf
-
 
580
     * @category Core
-
 
581
     *
-
 
582
     * @param string $name
-
 
583
     * @param string $actor
-
 
584
     * @param integer $versionID
-
 
585
     * @return string
-
 
586
     */
569
    public function showDistVersionsForm($name, $actor, $versionID = 0) {
587
    public function showDistVersionsForm($name, $actor, $versionID = 0) {
570
        $show  = "<form action='".$actor."' method='post'>";
588
        $show  = "<form action='".$actor."' method='post'>";
571
        if ($versionID == 0) {
589
        if ($versionID == 0) {
572
            $show .= "<fieldset><legend>Добавить описание новой версии дистрибутива</legend>\n";
590
            $show .= "<fieldset><legend>Добавить описание новой версии дистрибутива</legend>\n";
573
            $show .= "<input type='hidden' name='mode' value='".$name."-add'>\n";
591
            $show .= "<input type='hidden' name='mode' value='".$name."-add'>\n";