+ $cnt = 0;
+ $notice = Notice::publicStream(($page-1)*NOTICES_PER_PAGE,
+ NOTICES_PER_PAGE + 1);
+
+ if ($notice) {
+ common_element_start('ul', array('id' => 'notices'));
+ while ($notice->fetch()) {
+ $cnt++;
+ if ($cnt > NOTICES_PER_PAGE) {
+ break;
+ }
+ $this->show_notice($notice);
+ }
+ common_element_end('ul');