コード例 #1
0
 function generate_inner_html()
 {
     $CNPagination = new CNPagination();
     $group = new group();
     $user_group_ids = array();
     if ($_SESSION['user']['id']) {
         $user_group_ids = $group->get_user_groups($_SESSION['user']['id']);
         $user_group_ids = $this->get_user_group_id($user_group_ids);
     }
     $CNPagination->setPaging($this->Paging);
     $this->page_first = $CNPagination->getFirstPage();
     $this->page_last = $CNPagination->getLastPage();
     $this->page_links = $CNPagination->getPageLinks();
     $inner_template = NULL;
     switch ($this->mode) {
         default:
             $inner_template = PA::$blockmodule_path . '/' . get_class($this) . '/cnmodule_content.php';
     }
     $inner_html_gen = new Template($inner_template);
     $this->links = objtoarray($this->links);
     $inner_html_gen->set('title', NULL);
     // $this->title
     $inner_html_gen->set('links', $this->links);
     $inner_html_gen->set('total', $this->total);
     $inner_html_gen->set('search_str', get_groups_search_options());
     $inner_html_gen->set('user_group_ids', $user_group_ids);
     $inner_html_gen->set('current_theme_path', PA::$theme_url);
     $inner_html_gen->set('page_first', $this->page_first);
     $inner_html_gen->set('page_last', $this->page_last);
     $inner_html_gen->set('page_links', $this->page_links);
     $inner_html = $inner_html_gen->fetch();
     return $inner_html;
 }
コード例 #2
0
 function generate_inner_html()
 {
     global $current_theme_path, $base_url, $current_blockmodule_path;
     $Pagination = new Pagination();
     $group = new group();
     $user_group_ids = array();
     if (@$_SESSION['user']['id']) {
         $user_group_ids = $group->get_user_groups($_SESSION['user']['id']);
         $user_group_ids = $this->get_user_group_id($user_group_ids);
     }
     $Pagination->setPaging($this->Paging);
     $this->page_first = $Pagination->getFirstPage();
     $this->page_last = $Pagination->getLastPage();
     $this->page_links = $Pagination->getPageLinks();
     $inner_template = NULL;
     switch ($this->mode) {
         default:
             $inner_template = dirname(__FILE__) . '/center_inner_public.tpl';
     }
     $inner_html_gen =& new Template($inner_template);
     $this->links = objtoarray($this->links);
     $inner_html_gen->set('links', $this->links);
     $inner_html_gen->set('total', $this->total);
     $inner_html_gen->set('search_str', get_groups_search_options());
     $inner_html_gen->set('user_group_ids', $user_group_ids);
     $inner_html_gen->set('current_theme_path', $current_theme_path);
     $inner_html_gen->set('base_url', $base_url);
     $inner_html_gen->set('page_first', $this->page_first);
     $inner_html_gen->set('page_last', $this->page_last);
     $inner_html_gen->set('page_links', $this->page_links);
     $inner_html = $inner_html_gen->fetch();
     return $inner_html;
 }