ここの情報は古いです。ご理解頂いた上でお取り扱いください。

source: OpenPNE3/trunk/apps/pc_frontend/modules/member/templates/searchSuccess.php @ 10197

Last change on this file since 10197 was 10197, checked in by ebihara, 14 years ago

fixed member/sarch doesn't work correctly when a member doesn't write its self_intro

File size: 1.0 KB
Line 
1<?php
2$options = array(
3  'form'   => $filters,
4  'url'    => 'member/search',
5  'button' => __('検索'),
6);
7
8include_box('searchMember', __('メンバー検索'), '', $options);
9?>
10
11<?php use_helper('Date'); ?>
12
13<?php if ($pager->getNbResults()): ?>
14<?php
15$list = array();
16foreach ($pager->getResults() as $key => $member)
17{
18  $list[$key] = array();
19  $list[$key][__('ニックネーム')] = $member->getName();
20  if ($member->getProfile('self_intro'))
21  {
22    $list[$key][$member->getProfile('self_intro')->getCaption()] = $member->getProfile('self_intro');
23  }
24  $list[$key][__('最終ログイン')] = distance_of_time_in_words($member->getLastLoginTime());
25}
26
27$options = array(
28  'pager'          => $pager,
29  'link_to_page'   => 'member/search?page=%d',
30  'link_to_detail' => 'member/profile?id=%d',
31  'list'           => $list,
32);
33
34include_parts('searchResultList', 'searchCommunityResult', $options);
35?>
36<?php else: ?>
37<?php include_box('searchMemberResult', __('検索結果'), __('該当するメンバーはいませんでした。')) ?>
38<?php endif; ?>
Note: See TracBrowser for help on using the repository browser.