+ if ($cnt > 0) {
+ common_element_start('ul', array('id' => 'notices'));
+ $iMax = min($cnt, NOTICES_PER_PAGE);
+ for ($i = 0; $i < $iMax; $i++) {
+ if ($notice->fetch()) {
+ $this->show_notice($notice);
+ } else {
+ // shouldn't happen!
+ break;
+ }
+ }
+ common_element_end('ul');