Редакция 684 | Редакция 686 | К новейшей редакции | Весь файл | Учитывать пробелы | Содержимое файла | Авторство | Последнее изменение | Открыть журнал | RSS
Редакция 684 | Редакция 685 | ||
---|---|---|---|
Строка 2388... | Строка 2388... | ||
2388 | }
|
2388 | }
|
2389 | 2389 | ||
2390 | return $result; |
2390 | return $result; |
2391 | }
|
2391 | }
|
2392 | 2392 | ||
- | 2393 | /**
|
|
- | 2394 | * Вывод списка настроек
|
|
- | 2395 | *
|
|
- | 2396 | * @author Alexander Wolf
|
|
- | 2397 | * @category Core
|
|
- | 2398 | *
|
|
- | 2399 | * @param string $name
|
|
- | 2400 | * @param string $actor
|
|
- | 2401 | * @param string $format
|
|
- | 2402 | * @return string
|
|
- | 2403 | */
|
|
2393 | public function showSettingsList($name, $actor, $format = 'list') { |
2404 | public function showSettingsList($name, $actor, $format = 'list') { |
2394 | $query = "SELECT * FROM ".$this->prefix."settings"; |
2405 | $query = "SELECT * FROM ".$this->prefix."settings"; |
2395 | $rq =& $this->db->query($query); |
2406 | $rq =& $this->db->query($query); |
2396 | $show = "<ul>\n"; |
2407 | $show = "<ul>\n"; |
2397 | while ($rq->fetchInto($element)) { |
2408 | while ($rq->fetchInto($element)) { |
2398 | $show .= "<li>[<a href='".$actor."?mode=".$name."&action=edit&uuid=".$this->secure->checkInt($element["opt_id"])."' class='edit'>править</a>][<a href='".$actor."?mode=".$name."&action=delete&uuid=".$this->secure->checkInt($element["opt_id"])."' class='delete'>удалить</a>] ".$this->secure->checkStr($element["optname"],1)."</li>\n"; |
2409 | $show .= "<li>[<a href='".$actor."?mode=".$name."&action=edit&uuid=".$this->secure->checkInt($element["opt_id"])."' class='edit'>править</a>][<a href='".$actor."?mode=".$name."&action=delete&uuid=".$this->secure->checkInt($element["opt_id"])."' class='delete'>удалить</a>] ".$this->secure->checkStr($element["optname"],1)."</li>\n"; |
2399 | }
|
2410 | }
|
2400 | $show .= "</ul>"; |
2411 | $show .= "</ul>"; |
- | 2412 | ||
- | 2413 | return $show; |
|
2401 | }
|
2414 | }
|
2402 | 2415 | ||
2403 | }
|
2416 | }
|
2404 | 2417 | ||
2405 | ?>
|
2418 | ?>
|
2406 | 2419 |