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;
 }
 function generate_inner_html()
 {
     global $current_blockmodule_path;
     global $number_user;
     $msg = @$this->msg;
     $Pagination = new Pagination();
     $Pagination->setPaging($this->Paging);
     $this->page_first = $Pagination->getFirstPage($this->search_data);
     $this->page_last = $Pagination->getLastPage($this->search_data);
     $this->page_links = $Pagination->getPageLinks($this->search_data);
     switch ($this->mode) {
         default:
             //$tmp_file = dirname(__FILE__).'/center_inner_public.tpl';
             $tmp_file = dirname(__FILE__) . '/facewall.tpl';
     }
     $inner_html_gen =& new Template($tmp_file);
     $inner_html_gen->set('links', $this->users_data);
     $inner_html_gen->set('error_msg', $msg);
     $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_gen->set('people_count', $this->Paging["count"]);
     $row_count = ceil($this->Paging["count"] / FACEWALL_COLUMN_COUNT) > 10 ? 10 : ceil($this->Paging["count"] / FACEWALL_COLUMN_COUNT);
     $number_user = $this->Paging["count"];
     $inner_html_gen->set("row_count", $row_count);
     $inner_html_gen->set('show_advance_search_options', $this->show_advance_search_options);
     $inner_html_gen->set('search_data', $this->search_data);
     $inner_html = $inner_html_gen->fetch();
     return $inner_html;
 }
 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);
             }
         }
     }
 }
 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;
 }
 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;
 }
 function generate_inner_html()
 {
     $links = $this->media_data;
     // Here we get all the comment of that content
     $comment = new Comment();
     $comment->parent_id = $links->content_id;
     $comment->parent_type = TYPE_CONTENT;
     $this->Paging["count"] = $comment->get_multiples_comment($cnt = TRUE);
     $result = $comment->get_multiples_comment($cnt = FALSE, $this->Paging["show"], $this->Paging["page"]);
     $this->comments = $result;
     $param = $this->handle_field_param($links);
     $Pagination = new Pagination();
     $Pagination->setPaging($this->Paging);
     $this->page_first = $Pagination->getFirstPage();
     $this->page_last = $Pagination->getLastPage();
     $this->page_links = $Pagination->getPageLinks();
     switch ($this->mode) {
         default:
             $inner_template = dirname(__FILE__) . '/center_inner_public.tpl';
     }
     $info =& new Template($inner_template);
     $info->set_object('param', $param);
     $info->set_object('uid', $this->uid);
     $info->set_object('links', $links);
     $info->set_object('comments', $this->comments);
     $info->set('back', $_SERVER['HTTP_REFERER']);
     $info->set('page_first', $this->page_first);
     $info->set('page_last', $this->page_last);
     $info->set('page_links', $this->page_links);
     $inner_html = $info->fetch();
     return $inner_html;
 }
 function generate_inner_html()
 {
     global $app;
     switch ($this->type) {
         case 'forum':
             $inner_template = PA::$blockmodule_path . '/' . get_class($this) . '/forum_inner_template.tpl';
             break;
         default:
             $inner_template = PA::$blockmodule_path . '/' . get_class($this) . '/center_inner_private.tpl';
     }
     $Pagination = new Pagination();
     $Pagination->setPaging($this->Paging);
     $this->page_first = $Pagination->getFirstPage();
     $this->page_last = $Pagination->getLastPage();
     $this->page_links = $Pagination->getPageLinks();
     $inner_html_gen = new Template($inner_template);
     $inner_html_gen->set('links', $this->links);
     $inner_html_gen->set('back_page', PA::$url . $app->current_route);
     $inner_html_gen->set('type', $this->type);
     $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;
 }
 function initializeModule($request_method, $request_data)
 {
     $this->groupCount = array();
     $classname = ucfirst($this->directoryType) . "TypedGroupEntity";
     $instance = new $classname();
     $this->profilefields = $instance->get_profile_fields();
     if (!empty($_REQUEST['sort_by'])) {
         $this->sort_by = $_REQUEST['sort_by'];
     } else {
         $this->sort_by = 'name';
     }
     $this->sortFields = array(array('name' => 'name', 'label' => __('Name')));
     foreach ($this->profilefields as $i => $field) {
         if (!empty($field['sort'])) {
             $this->sortFields[] = array('name' => $field['name'], 'label' => $field['label']);
         }
     }
     // get TypedGroupEntities for this type and build paging etc
     if (!empty($request_data['page'])) {
         $this->page = (int) $request_data['page'];
     }
     $this->Paging['page'] = $this->page;
     $this->Paging['show'] = $this->show;
     $this->groupCount[$this->directoryType] = TypedGroupentity::get_count($this->directoryType);
     // load list of entities
     $this->typedGroupEntities = TypedGroupentity::get_entities($this->directoryType, $this->sort_by, $this->page, $this->show);
     $this->Paging['count'] = $this->groupCount[$this->directoryType];
     $Pagination = new Pagination();
     $Pagination->setPaging($this->Paging);
     $this->page_first = $Pagination->getFirstPage();
     $this->page_last = $Pagination->getLastPage();
     $this->page_links = $Pagination->getPageLinks();
 }
 function generate_inner_html($links)
 {
     global $network_info;
     if ($this->market_report == TRUE) {
         // if marketting report is to be viewed
         $params = NULL;
         $inner_template = dirname(__FILE__) . '/center_inner_market_report.tpl';
         $next_prev_navigation = 'marketing_report';
         if ($this->email_sorting == NULL || $this->email_sorting == 'all') {
             $params = array('network_id' => $network_info->network_id, 'neglect_owner' => FALSE, 'cnt' => TRUE);
             // setting variables for pagination
             $this->Paging["count"] = Network::get_members($params);
             unset($params['cnt']);
             $params['show'] = $this->Paging['show'];
             $params['page'] = $this->Paging['page'];
             $users = Network::get_members($params);
             $this->email_addresses = $users['users_data'];
         } else {
             if ($this->email_sorting == 'dormant') {
                 $params = array("order_by" => 3);
                 // 3 for sort by dormant user
             }
             $this->Paging["count"] = Ranking::get_top_ranked_users(TRUE, $params);
             $params['show'] = $this->Paging['show'];
             $params['page'] = $this->Paging['page'];
             $this->email_addresses = Ranking::get_top_ranked_users(FALSE, $params);
         }
         // Set pagination variable
         $Pagination = new Pagination();
         $Pagination->setPaging($this->Paging);
         $this->page_first = $Pagination->getFirstPage();
         $this->page_last = $Pagination->getLastPage();
         $this->page_links = $Pagination->getPageLinks();
     } else {
         $inner_template = dirname(__FILE__) . '/center_inner_private.tpl';
         $next_prev_navigation = 'mis_count';
     }
     $obj_inner_template =& new Template($inner_template);
     $obj_inner_template->set('links', $links);
     $obj_inner_template->set('email_domain_array', $this->email_domain_array);
     $obj_inner_template->set('blog_post', $this->blog_post);
     $obj_inner_template->set('images', $this->images);
     $obj_inner_template->set('profile_views', $this->profile_views);
     $obj_inner_template->set('profile_visits_by_user', $this->profile_visits_by_user);
     $obj_inner_template->set('relationship_stats', $this->relationship_stats);
     $obj_inner_template->set('emails', $this->email_addresses);
     $obj_inner_template->set('page_first', $this->page_first);
     $obj_inner_template->set('page_last', $this->page_last);
     $obj_inner_template->set('page_links', $this->page_links);
     $obj_inner_template->set('parameters', Ranking::get_parameters());
     $obj_inner_template->set('config_navigation_url', network_config_navigation($next_prev_navigation));
     $inner_html = $obj_inner_template->fetch();
     return $inner_html;
 }
 function generate_inner_html()
 {
     $tmp_file = dirname(__FILE__) . '/center_inner_public.tpl';
     $inner_html_gen =& new Template($tmp_file);
     $inner_html_gen->set('links', $this->links);
     $Pagination = new Pagination();
     $Pagination->setPaging($this->Paging);
     $this->page_first = $Pagination->getFirstPage();
     $this->page_last = $Pagination->getLastPage();
     $this->page_links = $Pagination->getPageLinks();
     $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;
 }
 function generate_inner_html()
 {
     $tmp_file = PA::$blockmodule_path . '/' . get_class($this) . '/center_inner_public.tpl';
     $inner_html_gen = new Template($tmp_file, $this);
     $inner_html_gen->set('links', $this->links);
     $inner_html_gen->set('mode', $this->mode);
     $Pagination = new Pagination();
     //    $Pagination->page_var = 'pg';
     $Pagination->setPaging($this->Paging);
     $this->page_first = $Pagination->getFirstPage();
     $this->page_last = $Pagination->getLastPage();
     $this->page_links = $Pagination->getPageLinks();
     $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;
 }
 function generate_inner_html()
 {
     $links = $this->get_links();
     // set links for pagination
     $Pagination = new Pagination();
     $Pagination->setPaging($this->Paging);
     $this->page_first = $Pagination->getFirstPage();
     $this->page_last = $Pagination->getLastPage();
     $this->page_links = $Pagination->getPageLinks();
     $tmp_file = PA::$blockmodule_path . '/' . get_class($this) . '/center_inner_private.tpl';
     $inner_html_gen = new Template($tmp_file, $this);
     $inner_html_gen->set('links', $links);
     $inner_html_gen->set('edit', $this->edit);
     $inner_html_gen->set('form_data', $this->form_data);
     $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;
 }
 function generate_inner_html()
 {
     switch ($this->mode) {
         default:
             $inner_template = PA::$blockmodule_path . '/' . get_class($this) . '/center_inner_private.tpl';
     }
     $Pagination = new Pagination();
     $Pagination->setPaging($this->Paging);
     $this->page_first = $Pagination->getFirstPage();
     $this->page_last = $Pagination->getLastPage();
     $this->page_links = $Pagination->getPageLinks();
     $inner_html_gen = new Template($inner_template);
     $inner_html_gen->set('links', $this->links);
     $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_gen->set('super_user_and_mothership', $this->super_user_and_mothership);
     $inner_html = $inner_html_gen->fetch();
     return $inner_html;
 }
 function generate_inner_html()
 {
     $links = $this->get_links();
     // set links for pagination
     $Pagination = new Pagination();
     $Pagination->setPaging($this->Paging);
     $this->page_first = $Pagination->getFirstPage();
     $this->page_last = $Pagination->getLastPage();
     $this->page_links = $Pagination->getPageLinks();
     $tmp_file = dirname(__FILE__) . '/center_inner_private.tpl';
     $inner_html_gen =& new Template($tmp_file);
     $inner_html_gen->set('links', $links);
     $inner_html_gen->set('selected', $this->selected);
     $inner_html_gen->set('form_data', @$this->form_data);
     $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;
 }
 /** this function set variable for tpls
  * and fetches the respective tpl
  */
 function generate_inner_html()
 {
     switch ($this->mode) {
         default:
             $inner_template = PA::$blockmodule_path . '/' . get_class($this) . '/center_inner_private.tpl';
     }
     $Pagination = new Pagination();
     $Pagination->setPaging($this->Paging);
     $this->page_first = $Pagination->getFirstPage();
     $this->page_last = $Pagination->getLastPage();
     $this->page_links = $Pagination->getPageLinks();
     $inner_html_gen = new Template($inner_template);
     $inner_html_gen->set('links', $this->links);
     $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_gen->set('config_navigation_url', network_config_navigation('moderate_content'));
     $inner_html = $inner_html_gen->fetch();
     return $inner_html;
 }
 function generate_inner_html()
 {
     switch ($this->mode) {
         default:
             $inner_template = dirname(__FILE__) . '/center_inner_public.tpl';
     }
     $Pagination = new Pagination();
     $Pagination->setPaging($this->Paging);
     $this->page_first = $Pagination->getFirstPage();
     $this->page_last = $Pagination->getLastPage();
     $this->page_links = $Pagination->getPageLinks();
     $inner_html_gen =& new Template($inner_template);
     $inner_html_gen->set('links', $this->links);
     $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_gen->set('config_navigation_url', network_config_navigation('manage_comments'));
     $inner_html = $inner_html_gen->fetch();
     return $inner_html;
 }
Example #17
0
 function generate_inner_html()
 {
     $Pagination = new Pagination();
     $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);
     $inner_html_gen->set('links', $this->links);
     $inner_html_gen->set('search_str', get_tag_search_option());
     $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;
 }
 function generate_inner_html()
 {
     switch ($this->mode) {
         default:
             $inner_template = PA::$blockmodule_path . '/' . get_class($this) . '/center_inner_public.tpl';
     }
     $Pagination = new Pagination();
     $Pagination->setPaging($this->Paging);
     $this->page_first = $Pagination->getFirstPage();
     $this->page_last = $Pagination->getLastPage();
     $this->page_links = $Pagination->getPageLinks();
     $inner_html_gen = new Template($inner_template);
     $inner_html_gen->set('links', $this->links);
     $inner_html_gen->set('show_view', $this->show_view);
     $inner_html_gen->set('item_id', $this->item_id);
     $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;
 }
 function generate_inner_html()
 {
     $links = $this->get_links();
     // set links for pagination
     $Pagination = new Pagination();
     $Pagination->setPaging($this->Paging);
     $this->page_first = $Pagination->getFirstPage();
     $this->page_last = $Pagination->getLastPage();
     $this->page_links = $Pagination->getPageLinks();
     $tmp_file = dirname(__FILE__) . '/center_inner_public.tpl';
     $inner_html_gen =& new Template($tmp_file);
     $inner_html_gen->set('links', $links);
     $inner_html_gen->set('edit', $this->edit);
     $inner_html_gen->set('form_data', $this->form_data);
     $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_gen->set('config_navigation_url', network_config_navigation('manage_ad_center'));
     $inner_html = $inner_html_gen->fetch();
     return $inner_html;
 }
 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;
 }
 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;
 }
 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));
     }
 }
 function generate_inner_html()
 {
     switch ($this->type) {
         case 'forum':
             $inner_template = dirname(__FILE__) . '/forum_inner_template.tpl';
             break;
         default:
             $inner_template = dirname(__FILE__) . '/center_inner_private.tpl';
     }
     $Pagination = new Pagination();
     $Pagination->setPaging($this->Paging);
     $this->page_first = $Pagination->getFirstPage();
     $this->page_last = $Pagination->getLastPage();
     $this->page_links = $Pagination->getPageLinks();
     $inner_html_gen =& new Template($inner_template);
     $inner_html_gen->set('links', $this->links);
     $inner_html_gen->set('type', $this->type);
     $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;
 }
 function generate_inner_html()
 {
     $links = $this->media_data;
     // Here we get all the comment of that content
     $comment = new Comment();
     $comment->parent_id = $links->content_id;
     $comment->parent_type = TYPE_CONTENT;
     $this->Paging["count"] = $comment->get_multiples_comment($cnt = TRUE);
     $result = $comment->get_multiples_comment($cnt = FALSE, $this->Paging["show"], $this->Paging["page"]);
     $this->comments = $result;
     $param = $this->handle_field_param($links);
     $Pagination = new Pagination();
     $Pagination->setPaging($this->Paging);
     $this->page_first = $Pagination->getFirstPage();
     $this->page_last = $Pagination->getLastPage();
     $this->page_links = $Pagination->getPageLinks();
     switch ($this->mode) {
         default:
             $inner_template = PA::$blockmodule_path . '/' . get_class($this) . '/center_inner_public.tpl';
     }
     $info = new Template($inner_template);
     $info->set_object('param', $param);
     $info->set_object('uid', $this->uid);
     $info->set_object('links', $links);
     $info->set_object('comments', $this->comments);
     $info->set('back', @$_SERVER['HTTP_REFERER']);
     $info->set('page_first', $this->page_first);
     $info->set('page_last', $this->page_last);
     $info->set('page_links', $this->page_links);
     // when we show Group media - check is user still Group member
     if (isset($_GET['gid'])) {
         $is_author_member = $this->is_author_group_member($links->author_id, $_GET['gid']);
         $info->set('is_author_member', $is_author_member);
     }
     $inner_html = $info->fetch();
     return $inner_html;
 }
 function generate_inner_html()
 {
     switch ($this->mode) {
         default:
             $inner_template = dirname(__FILE__) . '/center_inner_private.tpl';
     }
     $Pagination = new Pagination();
     $Pagination->setPaging($this->Paging);
     $this->page_first = $Pagination->getFirstPage();
     $this->page_last = $Pagination->getLastPage();
     $this->page_links = $Pagination->getPageLinks();
     $role = new Roles();
     $this->role_links = $role->get_multiple();
     $inner_html_gen =& new Template($inner_template);
     $inner_html_gen->set('links', $this->links);
     $inner_html_gen->set('link_role', $this->role_links);
     $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_gen->set('super_user_and_mothership', $this->super_user_and_mothership);
     $inner_html_gen->set('config_navigation_url', network_config_navigation('manage_user'));
     $inner_html = $inner_html_gen->fetch();
     return $inner_html;
 }
 function generate_inner_html()
 {
     switch ($this->mode) {
         default:
             $inner_template = PA::$blockmodule_path . '/' . get_class($this) . '/center_inner_private.tpl';
     }
     $Pagination = new Pagination();
     $Pagination->setPaging($this->Paging);
     $this->page_first = $Pagination->getFirstPage();
     $this->page_last = $Pagination->getLastPage();
     $this->page_links = $Pagination->getPageLinks();
     $role = new Roles();
     $this->role_links = $role->get_multiple(null, DB_FETCHMODE_ASSOC);
     $inner_html_gen = new Template($inner_template);
     $inner_html_gen->set('links', $this->links);
     $inner_html_gen->set('link_role', $this->role_links);
     $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_gen->set('super_user_and_mothership', $this->super_user_and_mothership);
     $inner_html_gen->set('config_navigation_url', network_config_navigation('manage_user'));
     $inner_html = $inner_html_gen->fetch();
     return $inner_html;
 }
 private function showPointsDirectory($request_data)
 {
     if (!empty($this->fid)) {
         $this->Paging["querystring"] = "fid={$this->fid}&gid={$this->fid}";
     } else {
         if (!empty($this->user_id)) {
             $this->Paging["querystring"] = "uid={$this->user_id}";
         }
     }
     $this->Paging['page'] = $this->page;
     $this->Paging['show'] = $this->limit;
     $this->Paging['count'] = PointsEntity::search($this->criteria, true);
     $pagination = new Pagination();
     $pagination->setPaging($this->Paging);
     $this->page_first = $pagination->getFirstPage();
     $this->page_last = $pagination->getLastPage();
     $this->page_links = $pagination->getPageLinks();
     $items = PointsEntity::search($this->criteria, false, "(SELECT attribute_value FROM entityattributes where attribute_name = 'created' AND id = EA.id) DESC", $this->page, $this->limit);
     $this->items = $this->build_list_of_items($items);
     $this->inner_HTML = $this->generate_inner_html(array('sub_title' => $this->sub_title, 'category' => $this->category, 'categories' => $this->categories, 'items' => $this->items, 'edit_perm' => $this->edit_perm, 'user_id' => $this->user_id, 'page_first' => $this->page_first, 'page_last' => $this->page_last, 'page_links' => $this->page_links, 'url_base' => $this->url_base, 'message' => isset($request_data['message']) ? $request_data['message'] : null, 'fid' => isset($this->fid) ? $this->fid : null, 'fam_members' => isset($this->fam_members) ? $this->fam_members : null));
 }
 function generate_inner_html($links)
 {
     global $login_uid, $page_uid;
     $usr = new User();
     $network = new Network();
     if ($links) {
         foreach ($links as $link_var) {
             if ($link_var->owner_id) {
                 $usr->load((int) $link_var->owner_id);
                 $owner_info[$link_var->network_id]['name'] = $usr->login_name;
             } else {
                 $owner_info[$link_var->network_id]['name'] = "None";
             }
         }
         // End of foreach
     }
     $users_network = NULL;
     if (@$_SESSION['user']['id']) {
         if ($login_uid == $page_uid) {
             $users_network = $network->get_networks_by_user($_SESSION['user']['id'], FALSE, 'ALL', 1, 'created', 'DESC', ALL_NETWORKS);
         } else {
             $users_network = $network->get_networks_by_user($_SESSION['user']['id']);
         }
         $users_network = $this->get_user_network_id($users_network);
     }
     $Pagination = new Pagination();
     $Pagination->setPaging($this->Paging);
     $this->page_first = $Pagination->getFirstPage();
     $this->page_last = $Pagination->getLastPage();
     $this->page_links = $Pagination->getPageLinks();
     switch ($this->mode) {
         default:
             $inner_template = dirname(__FILE__) . '/center_inner_public.tpl';
     }
     $this->Paging["count"] = @$this->uid ? count($links) : $this->Paging["count"];
     $inner_html_gen =& new Template($inner_template);
     $inner_html_gen->set('links', @$links);
     $inner_html_gen->set('owner_info', @$owner_info);
     $inner_html_gen->set('users_network', @$users_network);
     $inner_html_gen->set('total', $this->Paging["count"]);
     $inner_html_gen->set('search_str', get_network_search_options());
     $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;
 }
 function generate_inner_html()
 {
     global $number_user;
     $extra = unserialize(PA::$network_info->extra);
     $this->rel_term = __('Friend');
     // default title
     if (isset($extra['relationship_show_mode']['term'])) {
         $this->rel_term = $extra['relationship_show_mode']['term'];
     }
     $msg = @$this->msg;
     $Pagination = new Pagination();
     $Pagination->setPaging($this->Paging);
     $this->page_first = $Pagination->getFirstPage($this->search_data);
     $this->page_last = $Pagination->getLastPage($this->search_data);
     $this->page_links = $Pagination->getPageLinks($this->search_data);
     switch ($this->mode) {
         default:
             $tmp_file = PA::$blockmodule_path . '/' . get_class($this) . '/facewall.tpl';
     }
     $inner_html_gen = new Template($tmp_file);
     $inner_html_gen->set('links', $this->users_data);
     $inner_html_gen->set('error_msg', $msg);
     $inner_html_gen->set('page_first', $this->page_first);
     $inner_html_gen->set('page_last', $this->page_last);
     $inner_html_gen->set('facewall_path', @$this->facewall_path);
     $inner_html_gen->set('page_links', $this->page_links);
     $inner_html_gen->set('people_count', $this->Paging["count"]);
     $row_count = ceil($this->Paging["count"] / FACEWALL_COLUMN_COUNT) > 10 ? 10 : ceil($this->Paging["count"] / FACEWALL_COLUMN_COUNT);
     $number_user = $this->Paging["count"];
     $inner_html_gen->set("row_count", $row_count);
     $inner_html_gen->set('show_advance_search_options', $this->show_advance_search_options);
     $inner_html_gen->set('search_data', $this->search_data);
     $inner_html_gen->set('rel_term', $this->rel_term);
     $inner_html_gen->set('no_photo_ok', $this->no_photo_ok);
     $inner_html_gen->set('show_people_with_photo', $this->show_people_with_photo);
     $inner_html_gen->set('only_with_photo', $this->only_with_photo);
     $inner_html = $inner_html_gen->fetch();
     return $inner_html;
 }
 public function generate_inner_html($links)
 {
     $usr = new User();
     $network = new Network();
     if (!empty($links)) {
         foreach ($links as $link_var) {
             if ($link_var->owner_id) {
                 $usr->load((int) $link_var->owner_id);
                 $owner_info[$link_var->network_id]['name'] = $usr->login_name;
             } else {
                 $owner_info[$link_var->network_id]['name'] = "None";
             }
         }
         // End of foreach
     }
     $users_network = NULL;
     if (!is_null(PA::$login_uid) && PA::$login_uid == PA::$page_uid) {
         $users_network = $network->get_networks_by_user(PA::$login_uid, FALSE, 'ALL', 1, 'created', 'DESC', ALL_NETWORKS);
     } else {
         if (!is_null(PA::$login_uid)) {
             $users_network = $network->get_networks_by_user(PA::$login_uid);
             $users_network = $this->get_user_network_id($users_network);
         }
     }
     $Pagination = new Pagination();
     $Pagination->setPaging($this->Paging);
     $this->page_first = $Pagination->getFirstPage();
     $this->page_last = $Pagination->getLastPage();
     $this->page_links = $Pagination->getPageLinks();
     switch ($this->mode) {
         default:
             $inner_template = PA::$blockmodule_path . '/' . get_class($this) . '/center_inner_public.tpl';
     }
     $this->Paging["count"] = @$this->uid ? count($links) : $this->Paging["count"];
     $inner_html_gen = new Template($inner_template);
     $inner_html_gen->set('links', $links);
     if (!empty($owner_info)) {
         $inner_html_gen->set('owner_info', $owner_info);
     }
     $inner_html_gen->set('users_network', $users_network);
     $inner_html_gen->set('total', $this->Paging["count"]);
     $inner_html_gen->set('search_str', get_network_search_options());
     $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;
 }