Редакция 606 | Редакция 608 | К новейшей редакции | Весь файл | Учитывать пробелы | Содержимое файла | Авторство | Последнее изменение | Открыть журнал | RSS
Редакция 606 | Редакция 607 | ||
---|---|---|---|
Строка 304... | Строка 304... | ||
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 = $version.":".$reptype."<fieldset><legend>".$this->secure->checkStr($types["rtype"],1)."</legend>\n"; |
309 | $show = "<fieldset><legend>".$this->secure->checkStr($types["rtype"],1)."</legend>\n"; |
310 | while ($rq->fetchInto($types)) { |
310 | while ($rq->fetchInto($element)) { |
311 | $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"; |
311 | $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"; |
312 | }
|
312 | }
|
313 | $show .= "</fieldset>\n"; |
313 | $show .= "</fieldset>\n"; |
314 | break; |
314 | break; |
315 | case 'json': |
315 | case 'json': |