fix categories view event table (issue #610)

- $this->categoryid must be $this->catrow->id
- $row->odd was undefined so use local $row