Редакция 319 | Редакция 321 | К новейшей редакции | Весь файл | Учитывать пробелы | Содержимое файла | Авторство | Последнее изменение | Открыть журнал | RSS
Редакция 319 | Редакция 320 | ||
---|---|---|---|
Строка 117... | Строка 117... | ||
117 | $rq =& $this->db->query($query); |
117 | $rq =& $this->db->query($query); |
118 | switch ($format) { |
118 | switch ($format) { |
119 | case 'html': |
119 | case 'html': |
120 | $show = "<fieldset><legend>".$this->secure->checkStr($types["rtype"],1)."</legend>\n"; |
120 | $show = "<fieldset><legend>".$this->secure->checkStr($types["rtype"],1)."</legend>\n"; |
121 | while ($rq->fetchInto($element)) { |
121 | while ($rq->fetchInto($element)) { |
122 | $show .= "<div class='sections'><input type='checkbox' name='section[]' value='".$element["sect_id"]."'> ".$this->secure->checkStr($element["sectname"],1)." — ".$this->secure->checkStr($element["sectinfo"],1)."</div>\n"; |
122 | $show .= "<div class='sections'><input type='checkbox' name='section[]' value='".$element["sect_id"]."'> ".$this->secure->checkStr($element["secname"],1)." — ".$this->secure->checkStr($element["secinfo"],1)."</div>\n"; |
123 | }
|
123 | }
|
124 | $show .= "</fieldset>\n"; |
124 | $show .= "</fieldset>\n"; |
125 | break; |
125 | break; |
126 | case 'json': |
126 | case 'json': |
127 | //TODO Доделать JSON-вывод списка секций основного репозитория
|
127 | //TODO Доделать JSON-вывод списка секций основного репозитория
|
Строка 140... | Строка 140... | ||
140 | $rq =& $this->db->query($query); |
140 | $rq =& $this->db->query($query); |
141 | switch ($format) { |
141 | switch ($format) { |
142 | case 'html': |
142 | case 'html': |
143 | $show = "<fieldset><legend>".$this->secure->checkStr($types["rtype"],1)."</legend>\n"; |
143 | $show = "<fieldset><legend>".$this->secure->checkStr($types["rtype"],1)."</legend>\n"; |
144 | while ($rq->fetchInto($types)) { |
144 | while ($rq->fetchInto($types)) { |
145 | $show .= "<div class='repository'><input type='checkbox' name='repository[]' value='".$element["rep_id"]."'> ".$this->secure->checkStr($element["repname"])." — ".$this->secure->checkStr($element["repinfo"])."</div>\n"; |
145 | $show .= "<div class='repository'><input type='checkbox' name='repository[]' value='".$element["rep_id"]."'> ".$this->secure->checkStr($element["repname"],1)." — ".$this->secure->checkStr($element["repinfo"],1)."</div>\n"; |
146 | }
|
146 | }
|
147 | $show .= "</fieldset>\n"; |
147 | $show .= "</fieldset>\n"; |
148 | break; |
148 | break; |
149 | case 'json': |
149 | case 'json': |
150 | //TODO Доделать JSON-вывод списка репозиториев
|
150 | //TODO Доделать JSON-вывод списка репозиториев
|