function publishcol() { $condition = ''; if ($this->input['fid']) { $condition .= ' AND fid = ' . intval($this->input['fid']); } else { $condition .= ' AND fid = 0'; } if ($this->input['site_id']) { $condition .= ' AND site_id = ' . intval($this->input['site_id']); } $c = new content(); $data = $c->get_published_column($condition); if ($data) { foreach ($data as $val) { $this->addItem($val); } } $this->output(); }