Хранилища Subversion ant

Редакция

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

Редакция 520 Редакция 522
Строка 586... Строка 586...
586
586
587
    // sourses.list
587
    // sourses.list
588
    public function showSourcesList($distID,$versID,$sectIDs,$repIDs) {
588
    public function showSourcesList($distID,$versID,$sectIDs,$repIDs) {
589
       //TODO Написать генератор sources.list       
589
       //TODO Написать генератор sources.list       
590
    }
590
    }
-
 
591
-
 
592
    /**
-
 
593
     * Показывает список секций
-
 
594
     *
-
 
595
     * @author Alexander Wolf
-
 
596
     * @category Core
-
 
597
     *
-
 
598
     * @param string $name
-
 
599
     * @param string $actor
-
 
600
     * @return string
-
 
601
     */
-
 
602
    public function showSectionsList($name, $actor) {
-
 
603
        $query = "SELECT * FROM ".$this->prefix."section";
-
 
604
        $rq =& $this->db->query($query);
-
 
605
        $show = "<ul>\n";
-
 
606
        while ($rq->fetchInto($element)) {
-
 
607
            $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";
-
 
608
        }
-
 
609
        $show .= "</ul>";
-
 
610
-
 
611
        return $show;
-
 
612
    }
-
 
613
-
 
614
    public function showSectionsForm($sectionID = 0, $info = '') {
-
 
615
        $sSectID = $this->secure->checkInt($sectionID);
-
 
616
        $sInfo = $this->secure->checkStr($info, 1);
-
 
617
        if ($sInfo == "") {
-
 
618
            $sInfo = "Секция";
-
 
619
        }
-
 
620
        if ($sSectID != 0) {
-
 
621
            // Режим редактирования
-
 
622
            $query = "SELECT * FROM ".$this->prefix."section WHERE sect_id='".$sSectID."'";
-
 
623
            $rq =& $this->db->query($query);
-
 
624
            $rq->fetchInto($element);
-
 
625
        }
-
 
626
-
 
627
        $show  = "<fieldset><legend>".$sInfo."</legend>\n";
-
 
628
        $show .= "<div class='inputbox'><label for='sname'>Название секции:</label> <input type='text' name='sname' id='sname' value='".$this->secure->checkStr($element["secname"],1)."'></div>\n";
-
 
629
        $show .= "<div class='inputbox'><label for='sinfo'>Описание секции:</label> <input type='text' name='sinfo' id='sinfo' value='".$this->secure->checkStr($element["sectinfo"],1)."'></div>\n";
-
 
630
        $show .= "<div class='inputbox'><input type='submit' value=' Отправить данные '></div>\n</fieldset>\n";
-
 
631
-
 
632
        return $show;
-
 
633
    }
591
   
634
592
    /**
635
    /**
593
     * Проверка пароля (из формы авторизации)
636
     * Проверка пароля (из формы авторизации)
594
     *
637
     *
595
     * @author Alexander Wolf
638
     * @author Alexander Wolf
596
     * @category Core
639
     * @category Core