Редакция 562 | Редакция 564 | К новейшей редакции | Весь файл | Учитывать пробелы | Содержимое файла | Авторство | Последнее изменение | Открыть журнал | RSS
Редакция 562 | Редакция 563 | ||
---|---|---|---|
Строка 628... | Строка 628... | ||
628 | $rq =& $this->db->query($query); |
628 | $rq =& $this->db->query($query); |
629 | while ($rq->fetchInto($element)) { |
629 | while ($rq->fetchInto($element)) { |
630 | $show .= "<input type='checkbox' name='".$name."[]' value='".$element["sect_id"]."' checked> ".$this->secure->checkStr($element["secname"],1)." "; |
630 | $show .= "<input type='checkbox' name='".$name."[]' value='".$element["sect_id"]."' checked> ".$this->secure->checkStr($element["secname"],1)." "; |
631 | }
|
631 | }
|
632 | $query = "SELECT s.* FROM ".$this->prefix."section s WHERE s.sect_id NOT IN (SELECT sect_id FROM ".$this->prefix."sect2rep WHERE rep_id='$repID')"; |
632 | $query = "SELECT s.* FROM ".$this->prefix."section s WHERE s.sect_id NOT IN (SELECT sect_id FROM ".$this->prefix."sect2rep WHERE rep_id='$repID')"; |
- | 633 | $rq =& $this->db->query($query); |
|
633 | while ($rq->fetchInto($element)) { |
634 | while ($rq->fetchInto($element)) { |
634 | $show .= "<input type='checkbox' name='".$name."[]' value='".$element["sect_id"]."'> ".$this->secure->checkStr($element["secname"],1)." "; |
635 | $show .= "<input type='checkbox' name='".$name."[]' value='".$element["sect_id"]."'> ".$this->secure->checkStr($element["secname"],1)." "; |
635 | }
|
636 | }
|
636 | }
|
637 | }
|
637 | 638 |