Хранилища Subversion ant

Редакция

Редакция 393 | Редакция 406 | К новейшей редакции | Весь файл | Не учитывать пробелы | Содержимое файла | Авторство | Последнее изменение | Открыть журнал | RSS

Редакция 393 Редакция 394
Строка 84... Строка 84...
84
    public function showDistributionList($name, $heads = "", $info = "", $format = 'html') {
84
    public function showDistributionList($name, $heads = "", $info = "", $format = 'html') {
85
        $query = "SELECT * FROM ".$this->prefix."distribution ORDER BY dist_id ASC";
85
        $query = "SELECT * FROM ".$this->prefix."distribution ORDER BY dist_id ASC";
86
        $rq =& $this->db->query($query);
86
        $rq =& $this->db->query($query);
87
        switch ($format) {
87
        switch ($format) {
88
            case 'html':
88
            case 'html':
89
                $show  = "<fieldset><legend>".$headss."</legend>\n<select id='".$name."' name='".$name."'>\n";
89
                $show  = "<fieldset><legend>".$heads."</legend>\n<select id='".$name."' name='".$name."'>\n";
90
                $show .= "<option value=''>".$info."</option>\n";
90
                $show .= "<option value=''>".$info."</option>\n";
91
                while ($rq->fetchInto($element)) {
91
                while ($rq->fetchInto($element)) {
92
                    $show .= "<option value='".$this->secure->checkInt($element["dist_id"])."'>".$this->secure->checkStr($element["distname"],1)."</option>\n";
92
                    $show .= "<option value='".$this->secure->checkInt($element["dist_id"])."'>".$this->secure->checkStr($element["distname"],1)."</option>\n";
93
                }
93
                }
94
                $show .= "</select></fieldset>";
94
                $show .= "</select></fieldset>";
Строка 132... Строка 132...
132
        $distname = $this->getDistName($distID);
132
        $distname = $this->getDistName($distID);
133
        $query = "SELECT * FROM ".$this->prefix."version WHERE dist_id='".$this->secure->checkInt($distID)."' ORDER BY version ASC";
133
        $query = "SELECT * FROM ".$this->prefix."version WHERE dist_id='".$this->secure->checkInt($distID)."' ORDER BY version ASC";
134
        $rq =& $this->db->query($query);
134
        $rq =& $this->db->query($query);
135
        switch ($format) {
135
        switch ($format) {
136
            case 'html':
136
            case 'html':
137
                $show = "<fieldset><legend>Версии ".$distname["DistName"]."</legend>\n<select id='".$name."' name='".$name."'>\n";                
137
                $show  = "<fieldset><legend>Версии ".$distname["DistName"]."</legend>\n<select id='".$name."' name='".$name."'>\n";
-
 
138
                $show .= "<option value=''>Выбери версию ".$distname["DistName"]."</option>\n";
138
                while ($rq->fetchInto($element)) {
139
                while ($rq->fetchInto($element)) {
139
                    $show .= "<option value='".$this->secure->checkInt($element["version_id"])."'>".$this->secure->checkStr($element["version"],1)." ".$this->secure->checkStr($element["vname"],1)."</option>\n";
140
                    $show .= "<option value='".$this->secure->checkInt($element["version_id"])."'>".$this->secure->checkStr($element["version"],1)." ".$this->secure->checkStr($element["vname"],1)."</option>\n";
140
                }
141
                }
141
                $show .= "</select></fieldset>";
142
                $show .= "</select></fieldset>";
142
                break;
143
                break;