Редакция 558 | Редакция 560 | К новейшей редакции | Весь файл | Учитывать пробелы | Содержимое файла | Авторство | Последнее изменение | Открыть журнал | RSS
Редакция 558 | Редакция 559 | ||
---|---|---|---|
Строка 1122... | Строка 1122... | ||
1122 | * @return string
|
1122 | * @return string
|
1123 | */
|
1123 | */
|
1124 | public function showRepType($reptype = 0, $name = "") { |
1124 | public function showRepType($reptype = 0, $name = "") { |
1125 | $sRT = $this->secure->checkInt($reptype); |
1125 | $sRT = $this->secure->checkInt($reptype); |
1126 | $sNM = $this->secure->checkStr($name,1); |
1126 | $sNM = $this->secure->checkStr($name,1); |
1127 | $query = "SELECT * FORM ".$this->prefix."rtype"; |
1127 | $query = "SELECT * FROM ".$this->prefix."rtype"; |
1128 | $rq =& $this->db->query($query); |
1128 | $rq =& $this->db->query($query); |
1129 | $show = "<select name='".$sNM."' id='".$sNM."'>\n"; |
1129 | $show = "<select name='".$sNM."' id='".$sNM."'>\n"; |
1130 | while ($rq->fetchInto($element)) { |
1130 | while ($rq->fetchInto($element)) { |
1131 | if ($element["rtype_id"]==$sRT) { |
1131 | if ($element["rtype_id"]==$sRT) { |
1132 | $show .= "<option value='".$this->secure->checkInt($element["rtype_id"])."' selected>".$this->secure->checkStr($element["rtype"],1)."</option>\n"; |
1132 | $show .= "<option value='".$this->secure->checkInt($element["rtype_id"])."' selected>".$this->secure->checkStr($element["rtype"],1)."</option>\n"; |