Хранилища Subversion ant

Редакция

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

Редакция 605 Редакция 606
Строка 297... Строка 297...
297
     * @param integer $reptype
297
     * @param integer $reptype
298
     * @param string $format
298
     * @param string $format
299
     * @return string
299
     * @return string
300
     */
300
     */
301
    public function showRepList($version, $reptype, $format = 'html') {
301
    public function showRepList($version, $reptype, $format = 'html') {
302
//        $query = "SELECT rtype FROM ".$this->prefix."rtype WHERE rtype_id='".$this->secure->checkInt($reptype)."'";
302
        $query = "SELECT rtype FROM ".$this->prefix."rtype WHERE rtype_id='".$this->secure->checkInt($reptype)."'";
303
//        $rq =& $this->db->query($query);
303
        $rq =& $this->db->query($query);
304
//        $rq->fetchInto($types);
304
        $rq->fetchInto($types);
305
        $query = "SELECT * FROM ".$this->prefix."repository WHERE version='".$this->secure->checkInt($version)."' AND rtype_id='".$this->secure->checkInt($reptype)."'";
305
        $query = "SELECT * FROM ".$this->prefix."repository WHERE version='".$this->secure->checkInt($version)."' AND rtype_id='".$this->secure->checkInt($reptype)."'";
306
        $rq =& $this->db->query($query);
306
        $rq =& $this->db->query($query);
307
        switch ($format) {
307
        switch ($format) {
308
            case 'html':
308
            case 'html':
309
                $show = "<fieldset><legend>".$this->secure->checkStr($types["rtype"],1)."</legend>\n";
309
                $show = $version.":".$reptype."<fieldset><legend>".$this->secure->checkStr($types["rtype"],1)."</legend>\n";
310
                while ($rq->fetchInto($types)) {
310
                while ($rq->fetchInto($types)) {
311
                    $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";
311
                    $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";
312
                }
312
                }
313
                $show .= "</fieldset>\n";
313
                $show .= "</fieldset>\n";
314
                break;
314
                break;