コード例 #1
0
ファイル: association_c.php プロジェクト: Diaosir/ziku
 public function manageNotify($page = 1)
 {
     $this->authority(21);
     $notify_table = new NotifyTable();
     $count = $notify_table->count();
     $page = Util::calculate_page($count, 10, $page);
     $notifications = $notify_table->select_ten($page['start_num']);
     $view_data = array('notifications' => $notifications, 'page' => $page);
     $this->my_render('manage_notify', $view_data);
 }
コード例 #2
0
ファイル: index_c.php プロジェクト: Diaosir/ziku
 public function index()
 {
     $asso_table = new AssociationTable();
     $asso_name = $asso_table->get('association_name');
     $asso_intro = $asso_table->get('association_intro');
     $notify_table = new NotifyTable();
     $notifications = $notify_table->select_ten(0);
     $news_table = new NewsTable();
     $news = $news_table->select_ten(0);
     $view_data = array('asso_name' => $asso_name, 'asso_intro' => $asso_intro, 'notifications' => $notifications, 'news' => $news);
     $this->my_render('index', $view_data);
 }