当前位置: 首页>>代码示例>>PHP>>正文


PHP Pagination::getPreviousPage方法代码示例

本文整理汇总了PHP中Pagination::getPreviousPage方法的典型用法代码示例。如果您正苦于以下问题:PHP Pagination::getPreviousPage方法的具体用法?PHP Pagination::getPreviousPage怎么用?PHP Pagination::getPreviousPage使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Pagination的用法示例。


在下文中一共展示了Pagination::getPreviousPage方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: Pagination

 function generate_inner_html()
 {
     $Pagination = new Pagination();
     $Pagination->setPaging($this->Paging);
     $this->page_prev = $Pagination->getPreviousPage();
     $this->page_next = $Pagination->getNextPage();
     $this->page_links = $Pagination->getPageLinks();
     $inner_template = NULL;
     switch ($this->mode) {
         case 'relations':
         case 'in_relations':
             $inner_template = PA::$blockmodule_path . '/' . get_class($this) . '/center_inner_public_relation.tpl';
             break;
         default:
             $inner_template = PA::$blockmodule_path . '/' . get_class($this) . '/center_inner_public_relation.tpl';
     }
     $obj_inner_template = new Template($inner_template, $this);
     $obj_inner_template->set_object('links', $this->links);
     $obj_inner_template->set_object('gid', @$this->gid);
     $obj_inner_template->set('sub_title', @$this->sub_title);
     $obj_inner_template->set('total', $this->Paging['count']);
     $obj_inner_template->set('reciprocated_relationship_set', @$this->reciprocated_relationship_set);
     $obj_inner_template->set('relations', @$this->relations);
     $obj_inner_template->set('in_relations', @$this->in_relations);
     $obj_inner_template->set('user_name', $this->page_user);
     $obj_inner_template->set('page_prev', $this->page_prev);
     $obj_inner_template->set('page_next', $this->page_next);
     $obj_inner_template->set('page_links', $this->page_links);
     $obj_inner_template->set('view_type', $this->view_type);
     $inner_html = $obj_inner_template->fetch();
     return $inner_html;
 }
开发者ID:Cyberspace-Networks,项目名称:PeopleAggregator,代码行数:32,代码来源:FaceBookModule.php

示例2: Pagination

 function generate_inner_html()
 {
     global $current_theme_path, $base_url;
     $Pagination = new Pagination();
     $Pagination->setPaging($this->Paging);
     $this->page_prev = $Pagination->getPreviousPage();
     $this->page_next = $Pagination->getNextPage();
     $this->page_links = $Pagination->getPageLinks();
     $tmp_file = dirname(__FILE__) . '/center_inner_public.tpl';
     $inner_html_gen =& new Template($tmp_file);
     $inner_html_gen->set('current_theme_path', $current_theme_path);
     $inner_html_gen->set('base_url', $base_url);
     $inner_html_gen->set('forum_details', $this->forum_details);
     $inner_html_gen->set('parent_id', $this->parent_id);
     $inner_html_gen->set('parent_name_hidden', $this->parent_name_hidden);
     $inner_html_gen->set('parent_type', $this->parent_type);
     $inner_html_gen->set('header_title', $this->header_title);
     $inner_html_gen->set('title_form', $this->title_form);
     $inner_html_gen->set('body', $this->body);
     $inner_html_gen->set('msg', $this->msg);
     $inner_html_gen->set('name', $this->name);
     $inner_html_gen->set('email', $this->email);
     $inner_html_gen->set('is_member', $this->is_member);
     $inner_html_gen->set('page_prev', $this->page_prev);
     $inner_html_gen->set('page_next', $this->page_next);
     $inner_html_gen->set('page_links', $this->page_links);
     $inner_html_gen->set('group_access_type', $this->group_access_type);
     $inner_html_gen->set('group_owner', $this->group_owner_id);
     $inner_html_gen->set('ccid', $_GET['ccid']);
     $inner_html = $inner_html_gen->fetch();
     return $inner_html;
 }
开发者ID:CivicCommons,项目名称:oldBellCaPA,代码行数:32,代码来源:GroupForumPermalinkModule.php

示例3: initializeModule

 public function initializeModule($request_method, $request_data)
 {
     global $paging;
     $this->Paging = $paging;
     if (!empty($this->shared_data['group_info'])) {
         $this->family = $this->shared_data['group_info'];
         $this->set_id = $this->family->collection_id;
     } else {
         if (!empty($request_data['gid'])) {
             $this->family = ContentCollection::load_collection((int) $request_data['gid']);
             $this->set_id = $request_data['gid'];
         } else {
             return 'skip';
         }
     }
     if (!empty($request_data['action']) && $request_data['action'] == 'addChild') {
         $this->set_inner_template('add_child.tpl');
     } else {
         if (!empty($request_data['view'])) {
             $this->view = $request_data['view'];
             if ($this->view == 'members') {
                 $Pagination = new Pagination();
                 $Pagination->setPaging($this->Paging);
                 $this->page_prev = $Pagination->getPreviousPage();
                 $this->page_next = $Pagination->getNextPage();
                 $this->page_links = $Pagination->getPageLinks();
                 $this->get_links();
                 $this->set_inner_template('center_inner_public.tpl');
                 $templ_vars = array('links' => $this->members_data, 'page_prev' => $this->page_prev, 'page_next' => $this->page_next, 'page_links' => $this->page_links, 'page_first' => $this->page_first, 'page_last' => $this->page_last, 'family_id' => $this->set_id, 'div_visible_for_moderation' => $this->view);
                 $this->inner_HTML = $this->generate_inner_html($templ_vars);
             }
         }
     }
 }
开发者ID:Cyberspace-Networks,项目名称:PeopleAggregator,代码行数:34,代码来源:FamilyModerationModule.php

示例4: Pagination

 function generate_inner_html()
 {
     global $current_theme_path, $base_url;
     $button_display = FALSE;
     $Pagination = new Pagination();
     $Pagination->setPaging($this->Paging);
     $this->page_prev = $Pagination->getPreviousPage();
     $this->page_next = $Pagination->getNextPage();
     $this->page_links = $Pagination->getPageLinks();
     if ($this->is_member || $this->is_admin) {
         $button_display = TRUE;
     }
     $tmp_file = dirname(__FILE__) . '/center_inner_public.tpl';
     $inner_html_gen =& new Template($tmp_file);
     $inner_html_gen->set('current_theme_path', $current_theme_path);
     $inner_html_gen->set('base_url', $base_url);
     $inner_html_gen->set('forum_details', $this->forum_details);
     $inner_html_gen->set('group_name', $this->group_name);
     $inner_html_gen->set('topic_count', $this->topic_count);
     $inner_html_gen->set('page_prev', $this->page_prev);
     $inner_html_gen->set('page_next', $this->page_next);
     $inner_html_gen->set('page_links', $this->page_links);
     $inner_html_gen->set('button_display', $button_display);
     $inner_html_gen->set('group_owner_id', $this->group_details->author_id);
     $inner_html = $inner_html_gen->fetch();
     return $inner_html;
 }
开发者ID:CivicCommons,项目名称:oldBellCaPA,代码行数:27,代码来源:GroupForumModule.php

示例5: switch

 function generate_inner_html($links)
 {
     global $current_blockmodule_path;
     switch ($this->mode) {
         default:
             $tmp_file = "{$current_blockmodule_path}/GroupModerateContentModule/center_inner_public.tpl";
     }
     $inner_html_gen =& new Template($tmp_file);
     $this->get_moderation_queue();
     $Pagination = new Pagination();
     $Pagination->setPaging($this->Paging);
     $this->page_prev = $Pagination->getPreviousPage();
     $this->page_next = $Pagination->getNextPage();
     $this->page_links = $Pagination->getPageLinks();
     $inner_html_gen->set('links', $this->content_data);
     $inner_html_gen->set('page_prev', $this->page_prev);
     $inner_html_gen->set('page_next', $this->page_next);
     $inner_html_gen->set('page_links', $this->page_links);
     $inner_html_gen->set('group_id', $this->set_id);
     $inner_html = $inner_html_gen->fetch();
     return $inner_html;
 }
开发者ID:CivicCommons,项目名称:oldBellCaPA,代码行数:22,代码来源:GroupModerateContentModule.php

示例6: switch

 function generate_inner_html()
 {
     global $current_blockmodule_path;
     switch ($this->mode) {
         default:
             $tmp_file = dirname(__FILE__) . '/center_inner_public.tpl';
     }
     $inner_html_gen =& new Template($tmp_file);
     $Pagination = new Pagination();
     $Pagination->setPaging($this->Paging);
     $this->page_prev = $Pagination->getPreviousPage();
     $this->page_next = $Pagination->getNextPage();
     $this->page_links = $Pagination->getPageLinks();
     $inner_html_gen->set('links', $this->members_data);
     $inner_html_gen->set('page_prev', $this->page_prev);
     $inner_html_gen->set('page_next', $this->page_next);
     $inner_html_gen->set('page_links', $this->page_links);
     $inner_html_gen->set('group_id', $this->set_id);
     $inner_html_gen->set('div_visible_for_moderation', $this->view);
     $inner_html = $inner_html_gen->fetch();
     return $inner_html;
 }
开发者ID:CivicCommons,项目名称:oldBellCaPA,代码行数:22,代码来源:GroupModerationModule.php

示例7: initializeModule

 public function initializeModule($request_method, $request_data)
 {
     global $paging;
     if (empty(PA::$login_uid)) {
         return 'skip';
     }
     $this->uid = PA::$login_uid;
     $this->mid = !empty($request_data['mid']) ? $request_data['mid'] : NULL;
     $this->search_string = !empty($request_data['q']) ? $request_data['q'] : NULL;
     $this->folder_name = !empty($request_data['folder']) ? $request_data['folder'] : INBOX;
     $this->folders = Message::get_user_folders($this->uid);
     $this->Paging = $paging;
     if (!empty($this->Paging['page'])) {
         $this->page = $this->Paging['page'];
     }
     if (!isset($request_data['action'])) {
         if (!empty($this->search_string)) {
             $messages = Message::search($this->uid, $this->search_string);
             $this->Paging['count'] = count($messages);
             $messages = Message::search($this->uid, $this->search_string, $this->page, $this->Paging['show']);
             $this->title = __("Search Results");
         } else {
             $this->Paging['count'] = Message::load_folder_for_user($this->uid, $this->folder_name, true);
             $messages = Message::load_folder_for_user($this->uid, $this->folder_name, false, $this->page, (int) $this->Paging['show']);
         }
         $Pagination = new Pagination();
         // echo "<pre>".print_r($messages,1)."</pre>";exit;
         $Pagination->setPaging($this->Paging);
         $this->page_prev = $Pagination->getPreviousPage();
         $this->page_next = $Pagination->getNextPage();
         $this->page_links = $Pagination->getPageLinks();
         if (empty($this->search_string)) {
             $this->title .= ' : ' . ucfirst($this->folder_name);
         }
         $this->set_inner_template('center_inner_public.tpl');
         $this->inner_HTML = $this->generate_inner_html(array('messages' => $messages, 'page_prev' => $this->page_prev, 'page_next' => $this->page_next, 'page_links' => $this->page_links, 'folder_name' => $this->folder_name, 'folders' => $this->folders, 'current_theme_path' => PA::$theme_url, 'search_string' => $this->search_string));
     }
 }
开发者ID:Cyberspace-Networks,项目名称:PeopleAggregator,代码行数:38,代码来源:MessageModule.php

示例8: generate_inner_html

 public function generate_inner_html()
 {
     switch ($this->mode) {
         default:
             $tmp_file = PA::$blockmodule_path . '/' . get_class($this) . '/center_inner_public.tpl';
     }
     $inner_html_gen = new Template($tmp_file);
     $Pagination = new Pagination();
     $Pagination->setPaging($this->Paging);
     $this->page_prev = $Pagination->getPreviousPage();
     $this->page_next = $Pagination->getNextPage();
     $this->page_links = $Pagination->getPageLinks();
     $inner_html_gen->set('links', $this->members_data);
     $inner_html_gen->set('page_prev', $this->page_prev);
     $inner_html_gen->set('page_next', $this->page_next);
     $inner_html_gen->set('page_links', $this->page_links);
     $inner_html_gen->set('page_first', $this->page_first);
     $inner_html_gen->set('page_last', $this->page_last);
     $inner_html_gen->set('group_id', $this->set_id);
     $inner_html_gen->set('div_visible_for_moderation', $this->view);
     $inner_html = $inner_html_gen->fetch();
     return $inner_html;
 }
开发者ID:Cyberspace-Networks,项目名称:PeopleAggregator,代码行数:23,代码来源:GroupModerationModule.php

示例9: switch

 function generate_inner_html()
 {
     switch ($this->mode) {
         default:
             $tmp_file = PA::$blockmodule_path . "/GroupModerateUserModule/center_inner_public.tpl";
     }
     $inner_html_gen = new Template($tmp_file);
     $this->get_moderation_queue();
     $Pagination = new Pagination();
     $Pagination->setPaging($this->Paging);
     $this->page_prev = $Pagination->getPreviousPage();
     $this->page_next = $Pagination->getNextPage();
     $this->page_links = $Pagination->getPageLinks();
     $inner_html_gen->set('links', $this->members_data);
     $inner_html_gen->set('page_prev', $this->page_prev);
     $inner_html_gen->set('page_next', $this->page_next);
     $inner_html_gen->set('page_links', $this->page_links);
     $inner_html_gen->set('group_id', $this->set_id);
     $inner_html = $inner_html_gen->fetch();
     return $inner_html;
 }
开发者ID:Cyberspace-Networks,项目名称:PeopleAggregator,代码行数:21,代码来源:GroupModerateUserModule.php

示例10: switch

 function generate_inner_html()
 {
     global $current_theme_path, $base_url;
     switch ($this->mode) {
         case 'view_mesage':
             $tmp_file = dirname(__FILE__) . '/view_message.tpl';
             break;
         case 'view_conversations':
             $tmp_file = dirname(__FILE__) . '/view_conversations.tpl';
             break;
         default:
             $tmp_file = dirname(__FILE__) . '/center_inner_public.tpl';
     }
     $folders = Message::get_user_folders($this->uid);
     $inner_html_gen =& new Template($tmp_file);
     $inner_html_gen->set('current_theme_path', $current_theme_path);
     $inner_html_gen->set('base_url', $base_url);
     $inner_html_gen->set('folders', $folders);
     if ($this->mode == 'view_mesage') {
         $message_details = Message::load_message(null, $this->mid, $this->uid);
         $this->folder_name = Message::get_message_folder($message_details['index_id']);
         $mess = Message::load_folder_for_user($this->uid, $this->folder_name, false, $this->page);
         $total_msg = count($mess);
         for ($counter = 0; $counter < $total_msg; $counter++) {
             if ($mess[$counter]['message_id'] == $this->mid) {
                 $prev_nxt_msg['previous'] = @$mess[$counter - 1]['message_id'];
                 $prev_nxt_msg['next'] = @$mess[$counter + 1]['message_id'];
                 break;
                 // ending the for loop
             }
         }
         $this->title .= ' : ' . ucfirst($this->folder_name);
         $inner_html_gen->set('prev_nxt_msg', $prev_nxt_msg);
         $inner_html_gen->set('message_details', $message_details);
         $inner_html_gen->set('mid', $this->mid);
         $inner_html_gen->set('search_string', $this->search_string);
     } else {
         if ($this->mode == 'view_conversations') {
             $conversations = Message::get_conversations($this->uid);
             $inner_html_gen->set('conversations', $conversations);
             $this->title .= ' : ' . __('Conversations');
         } else {
             if (empty($this->folder_name)) {
                 $this->folder_name = INBOX;
             }
             //$this->Paging['show'] = 1;
             //fetches all messages in the given folder
             if (!empty($this->search_string)) {
                 $messages = Message::search($this->uid, $this->search_string);
                 $this->Paging['count'] = count($messages);
                 $messages = Message::search($this->uid, $this->search_string, $this->page, $this->Paging['show']);
                 $inner_html_gen->set('search_string', $this->search_string);
             } else {
                 $this->Paging['count'] = Message::load_folder_for_user($this->uid, $this->folder_name, true);
                 $messages = Message::load_folder_for_user($this->uid, $this->folder_name, false, $this->page, $this->Paging['show']);
             }
             $Pagination = new Pagination();
             $Pagination->setPaging($this->Paging);
             $this->page_prev = $Pagination->getPreviousPage();
             $this->page_next = $Pagination->getNextPage();
             $this->page_links = $Pagination->getPageLinks();
             $this->title .= ' : ' . ucfirst($this->folder_name);
             $inner_html_gen->set('messages', $messages);
             $inner_html_gen->set('page_prev', $this->page_prev);
             $inner_html_gen->set('page_next', $this->page_next);
             $inner_html_gen->set('page_links', $this->page_links);
         }
     }
     $inner_html_gen->set('folder_name', $this->folder_name);
     $inner_html = $inner_html_gen->fetch();
     return $inner_html;
 }
开发者ID:CivicCommons,项目名称:oldBellCaPA,代码行数:72,代码来源:MessageModule.php


注:本文中的Pagination::getPreviousPage方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。