299,14 → 299,14 |
* @return string |
*/ |
public function showRepList($version, $reptype, $format = 'html') { |
// $query = "SELECT rtype FROM ".$this->prefix."rtype WHERE rtype_id='".$this->secure->checkInt($reptype)."'"; |
// $rq =& $this->db->query($query); |
// $rq->fetchInto($types); |
$query = "SELECT rtype FROM ".$this->prefix."rtype WHERE rtype_id='".$this->secure->checkInt($reptype)."'"; |
$rq =& $this->db->query($query); |
$rq->fetchInto($types); |
$query = "SELECT * FROM ".$this->prefix."repository WHERE version='".$this->secure->checkInt($version)."' AND rtype_id='".$this->secure->checkInt($reptype)."'"; |
$rq =& $this->db->query($query); |
switch ($format) { |
case 'html': |
$show = "<fieldset><legend>".$this->secure->checkStr($types["rtype"],1)."</legend>\n"; |
$show = $version.":".$reptype."<fieldset><legend>".$this->secure->checkStr($types["rtype"],1)."</legend>\n"; |
while ($rq->fetchInto($types)) { |
$show .= "<div class='repository'><input type='checkbox' name='repository[]' value='".$element["rep_id"]."'> ".$this->secure->checkStr($element["repname"],1)." — ".$this->secure->checkStr($element["repinfo"],1)."</div>\n"; |
} |