81,12 → 81,12 |
} |
|
// Получение и отображение списка дистрибутивов |
public function showDistributionList($name, $info = "", $format = 'html') { |
public function showDistributionList($name, $head = "", $info = "", $format = 'html') { |
$query = "SELECT * FROM ".$this->prefix."distribution ORDER BY dist_id ASC"; |
$rq =& $this->db->query($query); |
switch ($format) { |
case 'html': |
$show = "<fieldset><legend>".$info."</legend>\n<select id='".$name."' name='".$name."'>\n"; |
$show = "<fieldset><legend>".$head."</legend>\n<select id='".$name."' name='".$name."'>\n"; |
$show .= "<option value=''>".$info."</option>\n"; |
while ($rq->fetchInto($element)) { |
$show .= "<option value='".$this->secure->checkInt($element["dist_id"])."'>".$this->secure->checkStr($element["distname"],1)."</option>\n"; |