Хранилища Subversion ant

Редакция

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

Редакция 383 Редакция 390
Строка 84... Строка 84...
84
    public function showDistributionList($name, $info = "", $format = 'html') {
84
    public function showDistributionList($name, $info = "", $format = 'html') {
85
        $query = "SELECT * FROM ".$this->prefix."distribution ORDER BY dist_id ASC";
85
        $query = "SELECT * FROM ".$this->prefix."distribution ORDER BY dist_id ASC";
86
        $rq =& $this->db->query($query);
86
        $rq =& $this->db->query($query);
87
        switch ($format) {
87
        switch ($format) {
88
            case 'html':
88
            case 'html':
89
                $show = "<fieldset><legend>".$info."</legend>\n<select id='".$name."' name='".$name."'>\n";                
89
                $show  = "<fieldset><legend>".$info."</legend>\n<select id='".$name."' name='".$name."'>\n";
-
 
90
                $show .= "<option value=''>".$info."</option>\n";
90
                while ($rq->fetchInto($element)) {
91
                while ($rq->fetchInto($element)) {
91
                    $show .= "<option value='".$this->secure->checkInt($element["dist_id"])."'>".$this->secure->checkStr($element["distname"],1)."</option>\n";
92
                    $show .= "<option value='".$this->secure->checkInt($element["dist_id"])."'>".$this->secure->checkStr($element["distname"],1)."</option>\n";
92
                }
93
                }
93
                $show .= "</select></fieldset>";
94
                $show .= "</select></fieldset>";
94
                break;
95
                break;
Строка 285... Строка 286...
285
286
286
        return $show;
287
        return $show;
287
    }
288
    }
288
289
289
    // sourses.list
290
    // sourses.list
290
    public function showSourcesList() {
291
    public function showSourcesList($requestID) {
291
       //TODO Написать генератор sources.list
292
       //TODO Написать генератор sources.list
-
 
293
       list($distID,$versID,$repsIDs) = split(":",$requestID);
-
 
294
       $reps = array();
-
 
295
       $reps = split("-",$repsIDs);
292
    }
296
    }
293
   
297
   
294
    // Проверка пароля (из формы авторизации)
298
    // Проверка пароля (из формы авторизации)
295
    public function checkSign($word) {
299
    public function checkSign($word) {
296
        $result = array();
300
        $result = array();
Строка 352... Строка 356...
352
        }
356
        }
353
357
354
        return $result;
358
        return $result;
355
    }
359
    }
356
360
-
 
361
357
}
362
}
358
363
359
?>
364
?>
360
365