Редакция 390 | Редакция 393 | К новейшей редакции | Весь файл | Не учитывать пробелы | Содержимое файла | Авторство | Последнее изменение | Открыть журнал | RSS
Редакция 390 | Редакция 392 | ||
---|---|---|---|
Строка 79... | Строка 79... | ||
79 | 79 | ||
80 | return $result; |
80 | return $result; |
81 | }
|
81 | }
|
82 | 82 | ||
83 | // Получение и отображение списка дистрибутивов
|
83 | // Получение и отображение списка дистрибутивов
|
84 | public function showDistributionList($name, $info = "", $format = 'html') { |
84 | public function showDistributionList($name, $head = "", $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>".$head."</legend>\n<select id='".$name."' name='".$name."'>\n"; |
90 | $show .= "<option value=''>".$info."</option>\n"; |
90 | $show .= "<option value=''>".$info."</option>\n"; |
91 | while ($rq->fetchInto($element)) { |
91 | while ($rq->fetchInto($element)) { |
92 | $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"; |
93 | }
|
93 | }
|
94 | $show .= "</select></fieldset>"; |
94 | $show .= "</select></fieldset>"; |