/branches/ant/0.9.x/lib/core.php |
---|
2389,6 → 2389,16 |
return $result; |
} |
public function showSettingsList($name, $actor, $format = 'list') { |
$query = "SELECT * FROM ".$this->prefix."settings"; |
$rq =& $this->db->query($query); |
$show = "<ul>\n"; |
while ($rq->fetchInto($element)) { |
$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"; |
} |
$show .= "</ul>"; |
} |
} |