1100,7 → 1100,15 |
* @param string $format |
* @return string |
*/ |
public function showRepositoriesList($name, $actor, $format = 'html') { |
public function showRepositoriesList($name, $actor, $format = 'list') { |
$query = "SELECT * FROM ".$this->prefix."repositories r "; |
$query .= "JOIN ".$this->prefix."rtype rt ON rt.rtype_id=r.rtype_id "; |
$rq =& $this->db->query($query); |
$show = "<ul>"; |
while ($rq->fetchInto($element)) { |
$show .= "<li>[<a href='".$actor."?mode=".$name."&action=edit&uuid=".$this->secure->checkInt($element["rep_id"])."' class='edit'>править</a>][<a href='".$actor."?mode=".$name."&action=delete&uuid=".$this->secure->checkInt($element["rep_id"])."' class='delete'>удалить</a>] ".$this->secure->checkStr($element["repname"],1)." (".$this->secure->checkStr($element["rtype"],1).")</li>\n"; |
} |
$show .= "</ul>"; |
return $show; |
} |
|